mirror of
https://github.com/veden/Rampant.git
synced 2024-12-28 21:08:22 +02:00
NA: Killed all units during faction and new enemy removal
This commit is contained in:
parent
2c6adbd3c0
commit
0c70b86dcb
@ -1080,6 +1080,7 @@ remote.add_interface("rampantTests",
|
|||||||
local function removeNewEnemies()
|
local function removeNewEnemies()
|
||||||
game.print({"description.rampant--removeNewEnemies"})
|
game.print({"description.rampant--removeNewEnemies"})
|
||||||
Universe.NEW_ENEMIES = false
|
Universe.NEW_ENEMIES = false
|
||||||
|
game.forces.enemy.kill_all_units()
|
||||||
for _,map in pairs(Universe.maps) do
|
for _,map in pairs(Universe.maps) do
|
||||||
local surface = map.surface
|
local surface = map.surface
|
||||||
if surface.valid then
|
if surface.valid then
|
||||||
@ -1142,6 +1143,7 @@ local function removeFaction(cmd)
|
|||||||
game.print({"description.rampant--removeFactionNames"})
|
game.print({"description.rampant--removeFactionNames"})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
game.forces.enemy.kill_all_units()
|
||||||
factionNames = split(factionNames)
|
factionNames = split(factionNames)
|
||||||
for _,factionName in pairs(factionNames) do
|
for _,factionName in pairs(factionNames) do
|
||||||
local found = false
|
local found = false
|
||||||
|
Loading…
Reference in New Issue
Block a user