- 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 8:
Line 8:
− +
Line 24:
Line 24:
+
+
+
no edit summary
function ShipData:name(raw)
function ShipData:name(raw)
if self._suffix then
if self:suffix() and (raw or self:display_suffix() ~= false) then
return self:base_name() .. " " .. (raw and self:suffix() or self:display_suffix())
return self:base_name() .. " " .. (raw and self:suffix() or self:display_suffix())
else
else
function ShipData:display_suffix()
function ShipData:display_suffix()
if self._display_suffix == false then
return self._display_suffix
end
return self._display_suffix or self._suffix
return self._display_suffix or self._suffix
end
end