mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-04 09:43:00 +02:00
Add a migration for merging old enemy forces if they exist.
This commit is contained in:
parent
9b9e3937be
commit
6b3f199d3f
7
migrations/oarc-mod_V2.0.4.lua
Normal file
7
migrations/oarc-mod_V2.0.4.lua
Normal file
@ -0,0 +1,7 @@
|
||||
-- If "enemy-easy" and "enemy-medium" forces still exist, merge them into "enemy" force.
|
||||
if game.forces["enemy-easy"] then
|
||||
game.merge_forces("enemy-easy", "enemy")
|
||||
end
|
||||
if game.forces["enemy-medium"] then
|
||||
game.merge_forces("enemy-medium", "enemy")
|
||||
end
|
Loading…
Reference in New Issue
Block a user