1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-16 02:33:53 +02:00

moved base property setting to later upgrade stage

This commit is contained in:
Aaron Veden 2021-11-28 17:03:34 -08:00
parent bfe2aae1d5
commit 5ca4604451
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84

View File

@ -429,17 +429,6 @@ function upgrade.attempt(universe)
global.version = 116
universe.maxPoints = 0
if (universe.maps) then
for _,map in pairs(universe.maps) do
for _,base in pairs(map.bases) do
base.damagedBy = {}
base.deathEvents = 0
end
end
end
game.print("Rampant - Version 1.1.4")
end
if global.version < 121 then
global.version = 121
@ -458,6 +447,8 @@ function upgrade.attempt(universe)
end
tSort(map.processQueue, sorter)
for _,base in pairs(map.bases) do
base.damagedBy = {}
base.deathEvents = 0
base.mutations = 0
end
end