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

FACTO-171: Fixed base generator not decaying based on radius

This commit is contained in:
Aaron Veden 2022-06-12 21:29:33 -07:00
parent 602f75ffa1
commit 67c7b24763
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,7 @@ Version: 3.1.2
- Fixed sent aggressive squads count could be negative
- Added missing sent and max siege groups on debug log
- Fixed small amounts of death generator not being rounded to nil
- Fixed enemy base pheromone missing decay based on radius
Framework:
- Updated visualizer tool for debugging

View File

@ -378,6 +378,7 @@ function pheromoneUtils.processStaticPheromone(map, chunk)
chunk[BASE_PHEROMONE] = chunkBase * chunkPathRating
end
chunkEnemy = chunkEnemy * 0.9
pheromone = (getNestCount(map, chunk) + getHiveCount(map, chunk)) * ENEMY_PHEROMONE_MULTIPLER
if chunkEnemy < pheromone then
chunk[ENEMY_PHEROMONE] = pheromone * chunkPathRating