1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-11-25 22:32:18 +02:00

rpg and explosives tweak

This commit is contained in:
Gerkiz
2021-05-24 17:21:25 +02:00
parent ca602e7bec
commit 08cb7c377a
2 changed files with 4 additions and 2 deletions

View File

@@ -166,7 +166,9 @@ local repair_buildings =
rng = 0.4
end
local to_heal = entity.prototype.max_health * rng
entity.health = entity.health + to_heal
if entity.health and to_heal then
entity.health = entity.health + to_heal
end
end
end
)