• 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 237: Line 237:  
     },
 
     },
 
     ["Light Cruisers"] = {
 
     ["Light Cruisers"] = {
         ships = { "Abukuma", "Agano", "Isuzu", "Jintsuu", "Katori", "Kinu", "Kiso", "Kitakami", "Kuma", "Nagara", "Naka", "Natori", "Noshiro", "Ooi", "Ooyodo", "Sakawa", "Sendai", "Tama", "Tatsuta", "Tenryuu", "Yahagi", "Yura", "Yuubari" }
+
         ships = { "Abukuma", "Agano", "Isuzu", "Jintsuu", "Kinu", "Kiso", "Kitakami", "Kuma", "Nagara", "Naka", "Natori", "Noshiro", "Ooi", "Ooyodo", "Sakawa", "Sendai", "Tama", "Tatsuta", "Tenryuu", "Yahagi", "Yura", "Yuubari" }
 
     },
 
     },
 
     ["Heavy Cruisers"] = {
 
     ["Heavy Cruisers"] = {
Line 259: Line 259:  
     ["NPC"] = {
 
     ["NPC"] = {
 
         ships = { "Irako", "Mamiya" }
 
         ships = { "Irako", "Mamiya" }
 +
    },
 +
    ["Bosses"] = {
 +
        ships = { "Northern Princess" }
 
     },
 
     },
 
}
 
}
   −
local Seasonal = {}
+
function find_type(ship)
 +
    for type, data in pairs(types) do
 +
        if data.ships and Utils.find(data.ships, ship) then
 +
            return type
 +
        end
 +
    end
 +
    return "?"
 +
end
    
function gen(args, tbl, format)
 
function gen(args, tbl, format)
Line 274: Line 284:  
             i = i + 1
 
             i = i + 1
 
             n = n + #ships
 
             n = n + #ships
             local ships_str = table.concat(Utils.map(ships, function(ship) return string.format("[[#%s|%s]]", ship, ship) end), ", ")
+
             local ships_str = table.concat(Utils.map(ships, function(ship) return string.format("[[#%s|%s]]", args.art and (tbl.type == "types" and k or find_type(ship)) or ship, ship) end), ", ")
 
             if data.url then
 
             if data.url then
 
                 result = result .. string.format("|-\n|[%s %s]\n|%s\n", data.url, k, ships_str)
 
                 result = result .. string.format("|-\n|[%s %s]\n|%s\n", data.url, k, ships_str)
Line 286: Line 296:  
     return format(result, i, n)
 
     return format(result, i, n)
 
end
 
end
 +
 +
local Seasonal = {}
    
function Seasonal.toc(frame)
 
function Seasonal.toc(frame)
cssedit, gkautomate
7,064

edits

Navigation menu