Add ready rocket silo with custom GUI

This commit is contained in:
Simon Brodtmann 2025-01-26 16:06:55 +01:00
parent 0a795f5668
commit 51a61cd2e0
11 changed files with 441 additions and 98 deletions

View file

@ -0,0 +1,19 @@
local InitExisting = {}
-- Initialization for existing games
-- Don't send players to Lignumis but instead print a warning
InitExisting.on_init = function()
if game.tick == 0 then return end
storage.init = {}
for _, player in pairs(game.players) do
storage.init[player.index] = true
if player.physical_surface.name == "nauvis" then
storage.nauvis_visited = true
end
end
game.print { "", { "lignumis.start-new-game" } }
end
return InitExisting