I would like to restart the game when the rocket is launched and change some map generation settings, like changing the available biomes and changing ressources. i thought of something like this:
Code: Select all
require "defines"
scrip.on_event(defines.events.on_rocket_launched, function(event)
-- maybe manipulate world generation
game.restart() --this does not exist
end)
Thanks in advance!