--血量上限
if self.healthmax ~= inst.components.health.maxhealth then
if self.healthupamount == 1 and inst.components.inventory then
local item = inst.components.inventory:GetEquippedItem(EQUIPSLOTS.BODY)
if item ~= nil and item.prefab == "armorruins" then
local health_percent = inst.components.health:GetPercent()
inst.components.health:SetMaxHealth(inst.components.health.maxhealth + 100)
inst.components.health:SetPercent(health_percent)
self.healthmax = inst.components.health.maxhealth
end
end