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

kamikaze settlers are 2.5x more likely during siege state

This commit is contained in:
Aaron Veden 2021-12-10 11:51:39 -08:00
parent 70df318897
commit 3f2bfab67c
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 7 additions and 1 deletions

View File

@ -58,6 +58,7 @@ Date: 23. 11. 2021
- 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
Bugfixes:
- Fixed chunks not processed due to chunk not being actually generated by game engine. You may notice a small delay before the spawners and worms convert to Rampant new enemy versions.
- Fixed vengence squads only processing half the expected chunks

View File

@ -240,7 +240,12 @@ function aiAttackWave.formSettlers(map, chunk)
if universe.NEW_ENEMIES then
squad.base = findNearbyBase(map, chunk)
end
squad.kamikaze = map.random() < calculateKamikazeThreshold(foundUnits, universe)
local kamikazeThreshold = calculateKamikazeThreshold(foundUnits, universe)
if map.state == AI_STATE_SIEGE then
kamikazeThreshold = kamikazeThreshold * 2.5
end
squad.kamikaze = map.random() < kamikazeThreshold
universe.builderCount = universe.builderCount + 1
map.points = map.points - AI_SETTLER_COST
if universe.aiPointsPrintSpendingToChat then