From 05e42b21a52fe3a24a08d092de53346e2e161522 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sun, 12 Dec 2021 09:56:31 -0800 Subject: [PATCH] revert siege state only processing active and raid nest --- changelog.txt | 1 - libs/MapProcessor.lua | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index a69c3fe..d002e45 100644 --- a/changelog.txt +++ b/changelog.txt @@ -56,7 +56,6 @@ Date: 23. 11. 2021 - Now one spawner covered in pollution is worth 22 built enemy structures to offset temperament contribution - Now one spawner covered in pollution is worth (69:<30%evo, 138:<50%evo, 276:<70%evo, 552:<90%, 1104:>90%evo) lost enemy units to offset temperament contribution - Now +/-0.05 temperament from 0.5 gives an extra 0.1 points to AI each cycle, +/-0.15 gives 0.2, +/-0.30 gives 0.3, +/-0.5 gives 0.5 - - Siege state no longer uses all spawners only pollution covered and active raid spawners (raid spawners are a status, not necessarily tied to raiding AI state) - Increased migration ai state chance at min temperament by 5% and if migration is disabled increased raiding to 70% chance - Increased siege chance to 60% chance between temperament (0.05, 0.20) and if migration is disabled increased raiding to 60% - Settling group formed during AI siege state are 2.5x more likely to be kamikaze diff --git a/libs/MapProcessor.lua b/libs/MapProcessor.lua index 725b894..8a147a5 100644 --- a/libs/MapProcessor.lua +++ b/libs/MapProcessor.lua @@ -32,8 +32,9 @@ local CHUNK_TICK = constants.CHUNK_TICK local PROCESS_STATIC_QUEUE_SIZE = constants.PROCESS_STATIC_QUEUE_SIZE local AI_VENGENCE_SQUAD_COST = constants.AI_VENGENCE_SQUAD_COST -local AI_STATE_AGGRESSIVE = constants.AI_STATE_AGGRESSIVE +local AI_STATE_AGGRESSIVE = constants.AI_STATE_AGGRESSIVE +local AI_STATE_SIEGE = constants.AI_STATE_SIEGE local AI_STATE_PEACEFUL = constants.AI_STATE_PEACEFUL local AI_STATE_MIGRATING = constants.AI_STATE_MIGRATING @@ -486,7 +487,7 @@ local function processSpawnersBody(universe, iterator, chunks) return end if iterator == "processMigrationIterator" then - if (state ~= AI_STATE_MIGRATING) then + if (state ~= AI_STATE_MIGRATING) and (state ~= AI_STATE_SIEGE) then return end elseif iterator == "processActiveRaidSpawnerIterator" then