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 06:16, 14 March 2018
155 bytes added
,
6 years ago
m
no edit summary
Line 85:
Line 85:
-- overrides ShipData:card
-- overrides ShipData:card
card = function(ship)
card = function(ship)
−
return ShipBattleCardKai:Asset({ ship:name("/") })
+
if ship.hp then
+
return ShipBattleCardKai:Asset({ ship:name("/") })
+
else
+
return EquipmentCardKai:Asset({ ship:name(), size = "75px" })
+
end
end,
end,
−
+
−
ecard = function(e)
−
return EquipmentCardKai:Asset({ e:name(), size = "75px" })
−
end,
−
format_morale = function(ship)
format_morale = function(ship)
local morale = ship:morale() or 49
local morale = ship:morale() or 49
Line 246:
Line 246:
key = part
key = part
ship = Ship(key)
ship = Ship(key)
−
shipCapabilities = ShipCapabilities{ ship = ship }
+
if ship:id() then
+
shipCapabilities = ShipCapabilities{ ship = ship }
+
else
+
ship = Equipment(key)
+
end
else
else
interpret_setter(part)
interpret_setter(part)
がか
cssedit, gkautomate
6,928
edits