1
0
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:
Oarcinae 2024-10-18 13:22:23 -04:00
parent 9b9e3937be
commit 6b3f199d3f

View 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