1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-11 13:39:14 +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

@ -266,7 +266,7 @@ function Public.detonate_chest(entity)
if not amount then
return false
end
if amount < 599 then
if amount < 99 then
return false
end

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
)