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

FACTO-289: Fixed death pheromone 0 a chunk for pathing

This commit is contained in:
Aaron Veden 2023-04-04 22:48:39 -07:00
parent 71ebda55a7
commit ebec707d4e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ Version: 3.2.3
- Fixed occasionally compression number wouldn't appear on unit group
- Fixed squad compression could take place when attacking
- Fixed squad command timeout duration to account for 4 chunk pathing finding
- Fixed death pheromone could zero out a chunk for squad movement planning
---------------------------------------------------------------------------------------------------
Version: 3.2.2

View File

@ -368,8 +368,8 @@ function ChunkPropertyUtils.getCombinedDeathGeneratorRating(chunk)
local amount = 1 + ((chunk.deathGenerator or 0) + (chunk.permanentDeathGenerator or 0))
if (amount > 1) then
return 1
elseif (amount < 0) then
return 0
elseif (amount <= 0) then
return 0.001
else
return amount
end