mirror of
https://github.com/Refactorio/RedMew.git
synced 2024-12-12 10:04:40 +02:00
kill inactive turrets with 0 health
This commit is contained in:
parent
b723ccf36a
commit
e579783899
@ -23,6 +23,12 @@ entity_built_callback =
|
||||
return
|
||||
end
|
||||
|
||||
if entity.health == 0 then
|
||||
entity.active = true
|
||||
entity.die('enemy')
|
||||
return
|
||||
end
|
||||
|
||||
local tick = data.tick
|
||||
local now = game.tick
|
||||
if now >= tick then
|
||||
|
Loading…
Reference in New Issue
Block a user