mirror of
https://github.com/veden/Rampant.git
synced 2025-01-30 04:30:52 +02:00
tweaks to temperament scoring
This commit is contained in:
parent
1a60d01243
commit
302f703e71
@ -44,9 +44,12 @@ Date: 23. 11. 2021
|
||||
- Reduced player, enemy, resource scanned chunks to 2 every 7 ticks
|
||||
- Reduced pheromone map processed chunks to 105 every 7 ticks
|
||||
- All random numbers now are based of the mod settings seed added with the map seed. This means that the AI should always perform the same actions when loading a save.
|
||||
- Reduced active nest contribution to temperament by 50% which causes expansions more frequently
|
||||
- Increased nest activeness duration upto 2 minutes between checks
|
||||
- Increased deathThreshold for adaptation to 4500<50%evo, 7500<75%evo, 11000<90%evo, 16000
|
||||
- Now one spawner covered in pollution is worth 25 raid spawners to offset temperament contribution
|
||||
- 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
|
||||
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
|
||||
|
@ -344,17 +344,17 @@ local function temperamentPlanner(map)
|
||||
if lostEnemyUnits > 0 then
|
||||
local multipler
|
||||
if map.evolutionLevel < 0.3 then
|
||||
multipler = 0.000434
|
||||
elseif map.evolutionLevel < 0.5 then
|
||||
multipler = 0.000217
|
||||
elseif map.evolutionLevel < 0.7 then
|
||||
elseif map.evolutionLevel < 0.5 then
|
||||
multipler = 0.000108
|
||||
elseif map.evolutionLevel < 0.9 then
|
||||
elseif map.evolutionLevel < 0.7 then
|
||||
multipler = 0.000054
|
||||
elseif map.evolutionLevel < 0.9 then
|
||||
multipler = 0.000027
|
||||
else
|
||||
elseif map.evolutionLevel < 0.9 then
|
||||
multipler = 0.0000135
|
||||
else
|
||||
multipler = 0.00000675
|
||||
end
|
||||
local val = (multipler * lostEnemyUnits)
|
||||
if (currentTemperament > 0) then
|
||||
@ -365,7 +365,7 @@ local function temperamentPlanner(map)
|
||||
end
|
||||
|
||||
if lostEnemyBuilding > 0 then
|
||||
local val = (0.072317 * lostEnemyBuilding)
|
||||
local val = (0.0015 * lostEnemyBuilding)
|
||||
if (currentTemperament > 0) then
|
||||
delta = delta - val
|
||||
else
|
||||
@ -373,8 +373,8 @@ local function temperamentPlanner(map)
|
||||
end
|
||||
end
|
||||
|
||||
if (builtEnemyBuilding > 0) then
|
||||
local val = (0.004339 * builtEnemyBuilding)
|
||||
if builtEnemyBuilding > 0 then
|
||||
local val = (0.0006818 * builtEnemyBuilding)
|
||||
if (currentTemperament > 0) then
|
||||
delta = delta - val
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user