1
0
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:
Aaron Veden 2022-05-01 21:33:01 -07:00
parent 989f4b3a46
commit ecbdcb35b2
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 5 additions and 9 deletions

View File

@ -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]

View File

@ -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