From 6674e4015d191a5aecb4f9d20a70a2fff62d771e Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Thu, 25 Nov 2021 11:24:54 -0800 Subject: [PATCH] noctural mode doesn't get points anymore from factorio spawned groups during the day --- changelog.txt | 1 + control.lua | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/changelog.txt b/changelog.txt index 2feab26..0eb5bb2 100644 --- a/changelog.txt +++ b/changelog.txt @@ -21,6 +21,7 @@ Date: 23. 11. 2021 - Fixed new enemy adaptation due to damage type not correctly calculating probability for adaptation - Fixed squad cleanup would periodically skip a squad when cleaning up dead unit groups - Fixed enemy destroying a player structure only processing half of the chunks it should have been + - Fixed unit groups spawned by factorio in noctural mode during the day would give points to the AI (Thanks Deathlymad) --------------------------------------------------------------------------------------------------- Version: 1.1.4 diff --git a/control.lua b/control.lua index 812b5ac..9c2e459 100644 --- a/control.lua +++ b/control.lua @@ -895,10 +895,6 @@ local function onUnitGroupCreated(event) end else if not (surface.darkness > 0.65) then - map.points = map.points + AI_SQUAD_COST - if universe.aiPointsPrintGainsToChat then - game.print(map.surface.name .. ": Points: +" .. AI_SQUAD_COST .. ". [Squad Refund] Total: " .. string.format("%.2f", map.points)) - end group.destroy() return end