• 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 16: Line 16:  
     _header_template = nil,
 
     _header_template = nil,
 
     _calculated_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |Effective Line of Sight: ${elos} // Fighter Power: ${fighter_power}]],
 
     _calculated_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |Effective Line of Sight: ${elos} // Fighter Power: ${fighter_power}]],
     _route_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |Route Taken: ${route}]],
+
     _added_cell_template = [[| colspan="6" style="background: ${bg_color}; text-align: center; font-weight: bold;" |${content}]],
 
     _column_cell_templates = {
 
     _column_cell_templates = {
 
         ship = [[| rowspan="4" style="background: white;" |${values.ship_card}]],
 
         ship = [[| rowspan="4" style="background: white;" |${values.ship_card}]],
Line 247: Line 247:  
         elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61)),
 
         elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61)),
 
         fighter_power = self._fighter_power,
 
         fighter_power = self._fighter_power,
         bg_color = self._extra_cells_bg
+
         bg_color = self._extra_cells_bg,
 
     })
 
     })
 
     table.insert(self._rows, self._row_starter)
 
     table.insert(self._rows, self._row_starter)
     table.insert(self._rows, format{self._route_cell_template,
+
     table.insert(self._rows, format{self._added_cell_template,
         route = self._route,
+
         content = "Route Taken: " .. self._route,
         bg_color = self._extra_cells_bg
+
         bg_color = self._extra_cells_bg,
 
     })
 
     })
 +
    if self._args["!difficulty"] then
 +
        table.insert(self._rows, self._row_starter)
 +
        table.insert(self._rows, format{self._added_cell_template,
 +
            content = "Difficulty Chosen: " .. self._args["!difficulty"],
 +
            bg_color = self._extra_cells_bg,
 +
        })
 +
    end
 +
    if self._args["!drops"] then
 +
        table.insert(self._rows, self._row_starter)
 +
        --Drops will be a bunch of ship names separated by /
 +
        local drops_str = self._args["!drops"]
 +
        local drops = {}
 +
        while mw.ustring.find(drops_str, '/') do
 +
            local split = mw.ustring.find(drops_str, '/')
 +
            local ship = Ship(mw.ustring.sub(drops_str, 1, split - 1), "")
 +
            local battle_card = ShipCardKai:battle_card{ship = ship, link = ship:link(), caption = ship:name()}
 +
            table.insert(drops, battle_card)
 +
            drops_str = mw.ustring.sub(drops_str, 2)
 +
        end
 +
        local battle_card = ShipCardKai:battle_card{ship = Ship(drops_str, ""), link = ship:link(), caption = ship:name()}
 +
        table.insert(drops, battle_card)
 +
        table.insert(self._rows, format{self._added_cell_template,
 +
            content = "Notable Drops: " .. table.concat(drops, " "),
 +
            bg_color = self._extra_cells_bg,
 +
        })
 +
    end
 
end
 
end
    
return NanaminFleet
 
return NanaminFleet
48

edits

Navigation menu