• 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
no edit summary
Line 10: Line 10:     
--Return the full name of the ship.
 
--Return the full name of the ship.
function ShipData:name()
+
function ShipData:name(sep)
 +
    sep = sep or " "
 
local suffix = self:display_suffix()
 
local suffix = self:display_suffix()
 
if suffix then
 
if suffix then
return self:base_name() .. " " .. suffix
+
return self:base_name() .. sep .. suffix
 
else
 
else
 
return self:base_name()
 
return self:base_name()
Line 22: Line 23:  
--Differs from name() for some boss enemies that have a legacy role suffix,
 
--Differs from name() for some boss enemies that have a legacy role suffix,
 
--which isn't shown for unique_name().
 
--which isn't shown for unique_name().
function ShipData:unique_name()
+
function ShipData:unique_name(sep)
 +
    sep = sep or " "
 
local suffix = self:suffix()
 
local suffix = self:suffix()
 
if suffix then
 
if suffix then
return self:base_name() .. " " .. self:suffix()
+
return self:base_name() .. sep .. self:suffix()
 
else
 
else
 
return self:base_name()
 
return self:base_name()
cssedit, gkautomate
7,064

edits

Navigation menu