Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Calc
(view source)
Revision as of 11:22, 29 June 2020
401 bytes added
,
4 years ago
no edit summary
Line 97:
Line 97:
air_power = function(ship)
air_power = function(ship)
return ship:air_power() or -1
return ship:air_power() or -1
+
end,
+
+
equipment_range = function(ship)
+
return U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.name):range() or 0 end), 0)
+
end,
+
+
equipment_range_diff = function(ship)
+
local equipment_range = U.imax(U.imap(ship._equipment or {}, function (e) return Equipment(e.name):range() or 0 end), 0)
+
return (ship:range() or 0) - equipment_range
end,
end,
がか
cssedit, gkautomate
7,064
edits