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