Fix armor mod deleting player's immortal group

This commit is contained in:
Wuzzy 2019-12-17 01:44:11 +01:00
parent a5b4a261dc
commit bab4529e4d

View File

@ -169,7 +169,10 @@ armor.set_player_armor = function(self, player)
if #textures > 0 then
armor_texture = table.concat(textures, "^")
end
local armor_groups = {fleshy=100}
local armor_groups = player:get_armor_groups()
armor_groups.fleshy = 100
armor_groups.level = nil
armor_groups.radiation = nil
if armor_level > 0 then
armor_groups.level = math.floor(armor_level / 20)
armor_groups.fleshy = 100 - armor_level