1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-28 21:08:22 +02:00

added more raiding at lower temperament values

This commit is contained in:
Aaron Veden 2021-12-12 10:18:34 -08:00
parent 05e42b21a5
commit 704b42e910
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 15 additions and 4 deletions

View File

@ -59,7 +59,10 @@ Date: 23. 11. 2021
- 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
- Reduced vengence chance by 50% so 1 out 100 units @ 0evo upto 4 out 100 units @ 100evo
- Reduced vengence chance by 25% so 2 out 100 units @ 0evo upto 6 out 100 units @ 100evo
- Changed out aggressive state for raiding between (0.2, 0.4) temperament
- Added raiding state to temperament (0.4, 0.6) at 10% chance
- Reduced peaceful state only to 25% and added migration at 25% chance at (0.4, 0.6) temperament
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

@ -200,7 +200,9 @@ local function planning(map, evolution_factor, tick)
end
elseif (map.temperament < 0.4) then -- 0.2 - 0.4
if (universe.enabledMigration) then
if (roll < 0.2) then
if (roll < 0.2) and universe.raidAIToggle then
map.state = AI_STATE_RAIDING
elseif (roll < 0.2) then
map.state = AI_STATE_AGGRESSIVE
elseif (roll < 0.8) then
map.state = AI_STATE_MIGRATING
@ -210,7 +212,11 @@ local function planning(map, evolution_factor, tick)
map.state = AI_STATE_MIGRATING
end
else
if (roll < 0.6) then
if (roll < 0.3) then
map.state = AI_STATE_AGGRESSIVE
elseif (roll < 0.6) and universe.raidAIToggle then
map.state = AI_STATE_RAIDING
elseif (roll < 0.6) then
map.state = AI_STATE_AGGRESSIVE
elseif universe.peacefulAIToggle then
map.state = AI_STATE_PEACEFUL
@ -221,7 +227,9 @@ local function planning(map, evolution_factor, tick)
elseif (map.temperament < 0.6) then -- 0.4 - 0.6
if (roll < 0.4) then
map.state = AI_STATE_AGGRESSIVE
elseif universe.peacefulAIToggle then
elseif (roll < 0.5) and universe.raidAIToggle then
map.state = AI_STATE_RAIDING
elseif (roll < 0.75) and universe.peacefulAIToggle then
map.state = AI_STATE_PEACEFUL
else
if universe.enabledMigration then