• 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
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
  
Bots, gkautomate
12,680

edits

Navigation menu