From 67c7b24763a87c353f2616734a4093b52a449ba7 Mon Sep 17 00:00:00 2001 From: Aaron Veden Date: Sun, 12 Jun 2022 21:29:33 -0700 Subject: [PATCH] FACTO-171: Fixed base generator not decaying based on radius --- changelog.txt | 1 + libs/PheromoneUtils.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index c39389d..633f992 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 diff --git a/libs/PheromoneUtils.lua b/libs/PheromoneUtils.lua index 556d03b..1b20bfe 100644 --- a/libs/PheromoneUtils.lua +++ b/libs/PheromoneUtils.lua @@ -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