• 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
no edit summary
Line 262: Line 262:  
         card = ShipCardKai:Asset({ name, link = "nil", damaged = damaged }),
 
         card = ShipCardKai:Asset({ name, link = "nil", damaged = damaged }),
 
     }
 
     }
 +
end
 +
 +
function getTitle(form, base_name, name, suffix)
 +
    if form.seasonal then
 +
        return form.season_suffix or not string.find(form.season, suffix) and suffix
 +
    else
 +
        return suffix == "" and (name == base_name and "Base" or name) or suffix
 +
    end
 
end
 
end
   Line 273: Line 281:  
         local name, suffix = Ship:process_ship_key(form.name)
 
         local name, suffix = Ship:process_ship_key(form.name)
 
         suffix = suffix or ""
 
         suffix = suffix or ""
         local title = form.seasonal and (form.season_suffix or suffix) or suffix == "" and (name == ship_name and "Base" or name) or suffix
+
         local title = getTitle(form, ship_name, name, suffix)
 
         if not first_seasonal and form.seasonal then
 
         if not first_seasonal and form.seasonal then
 
             first_seasonal = true
 
             first_seasonal = true
Line 279: Line 287:  
         end
 
         end
 
         if form.seasonal and (form.normal or form.damaged) then
 
         if form.seasonal and (form.normal or form.damaged) then
             if form.season and U.startsWith(form.season, title) then
+
             if form.season and not title then
 
                 table.insert(result, format{
 
                 table.insert(result, format{
 
                     "<h3>[[Seasonal/${season}|${season}]]</h3>",
 
                     "<h3>[[Seasonal/${season}|${season}]]</h3>",
cssedit, gkautomate
7,060

edits

Navigation menu