• 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 40: Line 40:  
     if row.boss then
 
     if row.boss then
 
         color = self._boss_battle_color
 
         color = self._boss_battle_color
 +
    end
 +
    if row.final then
 +
        row.node = node .. "(Final)"
 
     end
 
     end
 
     if row.time == "(Night Battle)" then
 
     if row.time == "(Night Battle)" then
Line 73: Line 76:  
end
 
end
   −
function NodeInfo:insert_item(node, time, boss, formation, fleet, as, item_key)
+
function NodeInfo:insert_item(node, time, boss, final, formation, fleet, as, item_key)
 
     local air_parity = string.format("%.1d", as * 0.666666666666)
 
     local air_parity = string.format("%.1d", as * 0.666666666666)
 
     local air_supremacy = tostring(as * 2)
 
     local air_supremacy = tostring(as * 2)
Line 81: Line 84:  
         time = time,
 
         time = time,
 
boss = boss,
 
boss = boss,
 +
final = final,
 
formation = Formatting:format_image{formation, caption = item_key, align = "center", valign = "center"},
 
formation = Formatting:format_image{formation, caption = item_key, align = "center", valign = "center"},
 
fleet = fleet,
 
fleet = fleet,
Line 89: Line 93:  
function NodeInfo:create_items()
 
function NodeInfo:create_items()
 
     local mode = 1
 
     local mode = 1
     local node, time, boss, formation_image, fleet, as_rating = nil, nil, false, nil, "", 0
+
     local node, time, boss, final, formation_image, fleet, as_rating = nil, nil, false, false, nil, "", 0
 
for index, item_key in ipairs(self._args) do
 
for index, item_key in ipairs(self._args) do
 
if item_key == "-" or mw.ustring.find(item_key, "#") then
 
if item_key == "-" or mw.ustring.find(item_key, "#") then
 
    if mode == 3 then
 
    if mode == 3 then
        self:insert_item(node, time, boss, formation_image, fleet, as_rating, item_key)
+
        self:insert_item(node, time, boss, final, formation_image, fleet, as_rating, item_key)
 
    end
 
    end
 
table.insert(self._items, "break")
 
table.insert(self._items, "break")
 
 
node, time, boss, formation_image, fleet, as_rating = nil, nil, false, nil, "", 0
+
node, time, boss, formation_image, fleet, as_rating = nil, nil, false, false, nil, "", 0
 
mode = 1
 
mode = 1
 
 
Line 123: Line 127:  
    --There's a second ! in the declaration, so it's a final form
 
    --There's a second ! in the declaration, so it's a final form
 
    if mw.ustring.sub(item_key, 1, 1) == "!" then
 
    if mw.ustring.sub(item_key, 1, 1) == "!" then
        node = node .. "<br />(Final)"
+
        final = true
 +
        item_key = mw.ustring.sub(item_key, 2)
 
    end
 
    end
 
     
 
     
Line 156: Line 161:  
     end
 
     end
 
     if mode == 3 then
 
     if mode == 3 then
         self:insert_item(node, time, boss, formation_image, fleet, as_rating, item_key)
+
         self:insert_item(node, time, boss, final, formation_image, fleet, as_rating, item_key)
 
     end
 
     end
 
end
 
end
48

edits

Navigation menu