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:
parent
ca602e7bec
commit
08cb7c377a
@ -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
|
||||
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user