- 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
Line 6:
Line 6:
− +
− +
Line 20:
Line 20:
+
+
+
+
Line 94:
Line 98:
− +
Line 105:
Line 109:
− +
Line 116:
Line 120:
− +
Line 127:
Line 131:
− +
Line 138:
Line 142:
− +
Line 149:
Line 153:
− +
no edit summary
local ShipData = BaseData()
local ShipData = BaseData()
function ShipData:name()
function ShipData:name(raw)
if self._suffix then
if self._suffix then
return self:base_name() .. " " .. (self._display_suffix or self:suffix())
return self:base_name() .. " " .. (raw and self:suffix() or self:display_suffix())
else
else
return self:base_name()
return self:base_name()
function ShipData:suffix()
function ShipData:suffix()
return self._suffix
return self._suffix
end
function ShipData:display_suffix()
return self._display_suffix or self._suffix
end
end
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_card(api_id, self:name(), self:suffix(), self:type(), self._card_extension)
return Formatting:ship_card(api_id, self:name(true), self:type(), self._card_extension)
end
end
return self._card
return self._card
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_card_damaged(api_id, self:name(), self:suffix(), self:type(), self._card_damaged_extension)
return Formatting:ship_card_damaged(api_id, self:name(true), self:type(), self._card_damaged_extension)
end
end
return self._card_damaged
return self._card_damaged
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_battle_card(api_id, self:name(), self:suffix(), self:type(), self._battle_card_extension)
return Formatting:ship_battle_card(api_id, self:name(true), self:type(), self._battle_card_extension)
end
end
return self._battle_card
return self._battle_card
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_battle_card_damaged(api_id, self:name(), self:suffix(), self:type(), self._battle_card_damaged_extension)
return Formatting:ship_battle_card_damaged(api_id, self:name(true), self:type(), self._battle_card_damaged_extension)
end
end
return self._battle_card_damaged
return self._battle_card_damaged
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_cg(api_id, self:name(), self:suffix(), self:type(), self._cg_extension)
return Formatting:ship_cg(api_id, self:name(true), self:type(), self._cg_extension)
end
end
return self._cg
return self._cg
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
return Formatting:ship_cg_damaged(api_id, self:name(), self:suffix(), self:type(), self._cg_damaged_extension)
return Formatting:ship_cg_damaged(api_id, self:name(true), self:type(), self._cg_damaged_extension)
end
end
return self._cg_damaged
return self._cg_damaged