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

FACTO-168: Reduced resource pheromone when covered by enemy structures

This commit is contained in:
Aaron Veden 2022-06-12 19:11:49 -07:00
parent 394de4a081
commit b2b6b5db0b
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
Version: 3.1.2
Tweaks:
- Siege groups have their attraction to resource patches reduced by 50%
- Reduced resource patch pheromone when enemy structures exist on chunk by 100x
Bugfixes:
- Fixed sent aggressive squads count could be negative
- Added missing sent and max siege groups on debug log

View File

@ -394,13 +394,13 @@ function pheromoneUtils.processStaticPheromone(map, chunk)
if clear then
chunk[RESOURCE_PHEROMONE] = pheromone * chunkPathRating
else
chunk[RESOURCE_PHEROMONE] = pheromone * chunkPathRating * 0.01
chunk[RESOURCE_PHEROMONE] = pheromone * chunkPathRating * 0.0001
end
else
if clear then
chunk[RESOURCE_PHEROMONE] = chunkResource * chunkPathRating
else
chunk[RESOURCE_PHEROMONE] = chunkResource * chunkPathRating * 0.01
chunk[RESOURCE_PHEROMONE] = chunkResource * chunkPathRating * 0.0001
end
end
end