• 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
Show nicknames
Line 52: Line 52:  
},
 
},
 
_no_remodel_level = "-",
 
_no_remodel_level = "-",
 +
_nickname_template = "<br />Nicknamed ''${nickname}''",
 
_item_class = Ship,
 
_item_class = Ship,
 
})
 
})
Line 60: Line 61:  
local japanese_name = ship:japanese_name()
 
local japanese_name = ship:japanese_name()
 
if japanese_name and (text or link) ~= japanese_name then
 
if japanese_name and (text or link) ~= japanese_name then
table.insert(value, Formatting:format_stat(ship:japanese_name()))
+
table.insert(value, " ")
 +
table.insert(value, Formatting:format_stat(japanese_name))
 
end
 
end
return {values = {value = table.concat(value, " ")}, bg_color = self._transparent, text_align = self._center_align}
+
local nickname = ship:nick()
 +
if nickname then
 +
table.insert(value, format{self._nickname_template, nickname = Formatting:format_stat(nickname)})
 +
end
 +
return {values = {value = table.concat(value)}, bg_color = self._transparent, text_align = self._center_align}
 
end
 
end
  
Anonymous user

Navigation menu