From dc79de6e97bf7df3032ebb3fa64998fd54a8695a Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 30 Dec 2025 20:36:33 +0100 Subject: [PATCH] Resets evolution on first visit of the orbited planet --- lignumis/scripts/init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lignumis/scripts/init.lua b/lignumis/scripts/init.lua index 359e84f..92a8326 100644 --- a/lignumis/scripts/init.lua +++ b/lignumis/scripts/init.lua @@ -77,6 +77,7 @@ end -- Watch Nauvis being visited for the first time Init.events[defines.events.on_player_changed_surface] = function(event) local player = game.get_player(event.player_index) + local first_visit = storage.nauvis_visited == false if player.controller_type ~= defines.controllers.character then return end @@ -90,6 +91,9 @@ Init.events[defines.events.on_player_changed_surface] = function(event) automation.enabled = true automation.researched = true end + if first_visit then + game.forces.enemy.set_evolution_factor(0.0, storage.target_planet) + end end end