1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

FACTO-268: fixed vanilla unit groups not respecting initial peace

This commit is contained in:
Aaron Veden 2023-03-22 21:30:02 -07:00
parent 5783d46b4e
commit 1a398b7466
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 8 additions and 0 deletions

View File

@ -64,6 +64,7 @@ Version: 3.2.0
- Fixed /rampantSetAIState command could error if not provide correct parameters or didn't display a message if parameters were missing
- Fixed the pheromone processing could skip the inner most chunks or the outer most chunks of a map
- Fixed rallying units didn't use the base associated with the chunk for determining cost
- Fixed that vanilla unit groups didn't respect initial peace time
Optimizations:
- Moved most constants out of global
- Removed new enemy variations setting

View File

@ -724,6 +724,10 @@ local function onUnitGroupCreated(event)
if group.is_script_driven then
return
end
if not Universe.awake then
group.destroy()
return
end
local map = Universe.maps[surface.index]
if not map then
return
@ -800,6 +804,9 @@ local function onGroupFinishedGathering(event)
if not group.valid or (group.force.name ~= "enemy") then
return
end
if not Universe.awake then
group.destroy()
end
local map = Universe.maps[group.surface.index]
if not map then
return