Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Module:ShipClassData
(view source)
Revision as of 12:26, 12 May 2021
387 bytes added
,
3 years ago
m
13 revisions imported
Line 5:
Line 5:
function ShipClassData:base_name()
function ShipClassData:base_name()
+
return type(self._name) == 'table' and self._name._name or self._name
+
end
+
+
function ShipClassData:base_name_test()
return self._name
return self._name
end
end
Line 25:
Line 29:
function ShipClassData:name_override()
function ShipClassData:name_override()
−
return
self._name_override
+
local result = {}
+
if self._prefix then
+
table.insert(result, self._prefix)
+
end
+
if self._name_override or self:base_name() then
+
table.insert(result,
self._name_override
or self:base_name())
+
end
+
if self._suffix then
+
table.insert(result, self._suffix)
+
end
+
return table.concat(result, " ")
end
end
Botkaze
Bots
, gkautomate
12,680
edits