From b25fd961f6e1618d80ac80ee7bef613f20e3112e Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Sat, 5 Mar 2016 19:00:37 +0100 Subject: [PATCH] [gauges] Make gauges immortal --- mods/gauges/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/gauges/init.lua b/mods/gauges/init.lua index 968923ec..cc7cb487 100755 --- a/mods/gauges/init.lua +++ b/mods/gauges/init.lua @@ -8,6 +8,9 @@ local hp_bar = { textures = {"20.png"}, -- The texture is changed later in the code. visual_size = {x = 1.5, y = 0.09375, z = 1.5}, -- Y value is (1 / 16) * 1.5. wielder = nil, + on_activate = function(self) + self.object:set_armor_groups({immortal = 1}) + end, } function hp_bar:on_step(dtime)