Reset Evolution and Pollution

by Strath

Reset evolution, clear pollution, and kill all active enemies.

Content
3 years ago
0.16 - 1.1
1.99K
Cheats

g Just kill the biters

3 years ago

Hi!

I would just like to kill the biters and not change the pollution and evolution.
Can you provide a separate option to clean up the pollution and kill all the biters?

Thanks

3 years ago

I changed my local version, changing the doit () function, commenting on the evolution and pollution changes and switching to killing all enemies, including bases and worms.

This will suit me at the moment, but it would be nice to have an option to choose what to do.


--for _, surface in pairs (game.surfaces) do surface.clear_pollution() end
--game.forces["enemy"].reset_evolution()
local surface=player.surface
for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do
entity.destroy()
end

New response