• 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 73: Line 73:     
function NanaminShipInfo:embed_table(entry)
 
function NanaminShipInfo:embed_table(entry)
if entry[3] == "" then
+
if entry[3] == "" then entry[3] = "N/A" end
    entry[3] = "N/A"
+
local name = entry[1]:nick() and entry[1]:nick() or entry[1]:name()
end
   
table.insert(self._rows, self._embedded_start)
 
table.insert(self._rows, self._embedded_start)
 
table.insert(self._rows, format{self._embedded_table,
 
table.insert(self._rows, format{self._embedded_table,
     name = entry[1]:name():gsub(" ", ""),
+
     name = name:gsub(" ", ""),
 
     class = entry[1]:class():name(),
 
     class = entry[1]:class():name(),
 
     extra_levels = entry[3] or "N/A",
 
     extra_levels = entry[3] or "N/A",
48

edits

Navigation menu