1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

revert siege state only processing active and raid nest

This commit is contained in:
Aaron Veden 2021-12-12 09:56:31 -08:00
parent 94bd63799d
commit 05e42b21a5
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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