1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-08 00:39:30 +02:00
This commit is contained in:
MewMew 2020-04-21 10:11:10 +02:00
parent 4256fc497b
commit 7ac18862d7

View File

@ -18,7 +18,7 @@ Global.register(
end
)
function set_health_modifier(force_index, modifier)
function Public.set_health_modifier(force_index, modifier)
if not game.forces[force_index] then return end
if not modifier then return end
if not fhb[force_index] then fhb[force_index] = {} end
@ -72,4 +72,6 @@ local Event = require 'utils.event'
Event.on_init(on_init)
Event.add(defines.events.on_entity_damaged, on_entity_damaged)
Event.add(defines.events.on_entity_died, on_entity_died)
Event.add(defines.events.on_player_repaired_entity, on_player_repaired_entity)
Event.add(defines.events.on_player_repaired_entity, on_player_repaired_entity)
return Public