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:
parent
71ebda55a7
commit
ebec707d4e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user