Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:ShipData
(view source)
Revision as of 16:59, 29 September 2017
344 bytes added
,
6 years ago
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
6,928
edits