mirror of
https://github.com/veden/Rampant.git
synced 2025-01-14 02:23:01 +02:00
FACTO-64: Adding lower limit for death decay to be set to nil
This commit is contained in:
parent
035ecb2bd7
commit
728b104f5e
@ -472,7 +472,12 @@ end
|
||||
function chunkPropertyUtils.decayDeathGenerator(map, chunk)
|
||||
local gen = map.chunkToDeathGenerator[chunk.id]
|
||||
if gen then
|
||||
map.chunkToDeathGenerator[chunk.id] = gen * MOVEMENT_GENERATOR_PERSISTANCE
|
||||
local v = gen * MOVEMENT_GENERATOR_PERSISTANCE
|
||||
if v <= 0.001 then
|
||||
map.chunkToDeathGenerator[chunk.id] = nil
|
||||
else
|
||||
map.chunkToDeathGenerator[chunk.id] = v
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user