mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
temperament point bonus tweak
This commit is contained in:
parent
c3355d136d
commit
0d146d42d0
@ -52,6 +52,7 @@ Date: 23. 11. 2021
|
||||
- Now one spawner covered in pollution is worth 15 destroyed enemy structures to offset temperament contribution
|
||||
- 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
|
||||
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
|
||||
|
@ -124,11 +124,13 @@ local function planning(map, evolution_factor, tick)
|
||||
local points = ((AI_POINT_GENERATOR_AMOUNT * universe.random()) + (map.activeNests * 0.003) +
|
||||
(AI_POINT_GENERATOR_AMOUNT * mMax(evolution_factor ^ 2.5, 0.1)))
|
||||
|
||||
if (map.temperament < 0.05) or (map.temperament > 0.95) then
|
||||
if (map.temperament == 0) or (map.temperament == 1) then
|
||||
points = points + 0.5
|
||||
elseif (map.temperament < 0.20) or (map.temperament > 0.80) then
|
||||
points = points + 0.3
|
||||
elseif (map.temperament < 0.25) or (map.temperament > 0.75) then
|
||||
elseif (map.temperament < 0.35) or (map.temperament > 0.65) then
|
||||
points = points + 0.2
|
||||
elseif (map.temperament < 0.40) or (map.temperament > 0.60) then
|
||||
elseif (map.temperament < 0.45) or (map.temperament > 0.55) then
|
||||
points = points + 0.1
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user