mirror of
https://github.com/veden/Rampant.git
synced 2024-12-28 21:08:22 +02:00
FACTO-129: Runtime number generator no longer uses map seed and startup
setting seed
This commit is contained in:
parent
989f4b3a46
commit
ecbdcb35b2
12
Upgrade.lua
12
Upgrade.lua
@ -561,15 +561,6 @@ function upgrade.attempt(universe)
|
||||
universe.maxPoints = 0
|
||||
universe.maxOverflowPoints = 0
|
||||
|
||||
if not universe.random then
|
||||
local combinedSeed = settings.startup["rampant--enemySeed"].value+game.default_map_gen_settings.seed
|
||||
if (combinedSeed > 4294967295) then
|
||||
universe.random = game.create_random_generator(combinedSeed % 4294967295)
|
||||
elseif not universe.random then
|
||||
universe.random = game.create_random_generator(combinedSeed)
|
||||
end
|
||||
end
|
||||
|
||||
universe.proxyEntityLookup = {}
|
||||
universe.vanillaEntityLookups = {}
|
||||
|
||||
@ -618,7 +609,10 @@ function upgrade.attempt(universe)
|
||||
if global.version < 304 then
|
||||
global.version = 304
|
||||
|
||||
universe.random = game.create_random_generator()
|
||||
|
||||
for _,map in pairs(universe.maps) do
|
||||
map.random = universe.random
|
||||
local processQueue = map.processQueue
|
||||
for i=1,#processQueue do
|
||||
local chunk = processQueue[i]
|
||||
|
@ -2,6 +2,8 @@
|
||||
Version: 3.1.0
|
||||
Improvements:
|
||||
- Readded enemy pheromone for pathfinding incorporating enemy bases
|
||||
Tweaks:
|
||||
- Runtime number generator just uses the map seed now
|
||||
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 3.0.3
|
||||
|
Loading…
Reference in New Issue
Block a user