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

FACTO-54: Fixed resource pheromone not being cancelled by enemy structures

This commit is contained in:
Aaron Veden 2022-06-12 21:48:27 -07:00
parent c56cf7efdb
commit 415a7805b0
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Version: 3.1.2
- 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
- Fixed resource pheromone generator not be cancelled out by enemy structures
Framework:
- Updated visualizer tool for debugging

View File

@ -129,7 +129,7 @@ function pheromoneUtils.processStaticPheromone(map, chunk)
local chunkEnemy = -MAGIC_MAXIMUM_NUMBER
local chunkPathRating = getPathRating(map, chunk)
local clear = getEnemyStructureCount(map, chunk)
local clear = getEnemyStructureCount(map, chunk) == 0
local tempNeighbors = getNeighborChunks(map, chunk.x, chunk.y)