[gauges] Make gauges immortal

This commit is contained in:
LeMagnesium 2016-03-05 19:00:37 +01:00
parent 7dbac7b8ca
commit b25fd961f6
1 changed files with 3 additions and 0 deletions

View File

@ -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)