• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 251: Line 251:  
function ShipData:hp_max()
 
function ShipData:hp_max()
 
return self._hp_max
 
return self._hp_max
 +
end
 +
 +
function ShipData:hp_mod()
 +
    local hp = self:hp()
 +
    local hp_max = self:hp_max()
 +
    return hp and hp_max and hp_max - hp > 0 and math.min(2, hp_max - hp)
 +
end
 +
 +
function ShipData:hp_mod_married()
 +
    local hp = self:hp_married()
 +
    local hp_max = self:hp_max()
 +
    return hp and hp_max and hp_max - hp > 0 and math.min(2, hp_max - hp)
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu