• 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
Fix typed ship class, italicize nickname
Line 20: Line 20:  
_edit_link_text = "Edit",
 
_edit_link_text = "Edit",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
_nick_template = " (${nick} ${japanese_nick})",
+
_nick_template = " (''${nick} ${japanese_nick}'')",
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
| style="width: 36px; height: 36px; background-color: ${color};${extra_style}" | ${icon}
 
| style="width: 36px; height: 36px; background-color: ${color};${extra_style}" | ${icon}
Line 140: Line 140:  
function ShipInfoKai:type(ship)
 
function ShipInfoKai:type(ship)
 
local class = ship:class()
 
local class = ship:class()
local ship_type = ship:type()
+
local ship_type = Formatting:format_ship_type(ship:type())
 
if class and class:is_type() then
 
if class and class:is_type() then
 
ship_type = "(" .. ship_type .. ")"
 
ship_type = "(" .. ship_type .. ")"
 
end
 
end
return Formatting:format_ship_type(ship_type)
+
return ship_type
 
end
 
end
  
Anonymous user

Navigation menu