- 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
Line 112:
Line 112:
− +
Line 120:
Line 120:
− +
− +
Line 184:
Line 184:
− if fleet ~= "" then +
− fleet = fleet .. " " -- Actually matters
− end
− fleet = fleet .. Formatting:format_image{ship:battle_card(), caption = ship:name(), link = ship:base_name()}
Line 196:
Line 193:
− +
Use ShipCardKai to generate battle cards, flagship icon support
local node, formation = nil, nil
local node, formation = nil, nil
local fleet = ""
local fleet = {}
local as_rating = 0
local as_rating = 0
if item_key == "-" then
if item_key == "-" then
if mode == 6 then --We're at a break and have built a full row; time to insert it
if mode == 6 then --We're at a break and have built a full row; time to insert it
self:insert_item(node, formation, fleet, as_rating, tags)
self:insert_item(node, formation, table.concat(fleet, " "), as_rating, tags)
end
end
table.insert(self._items, "break")
table.insert(self._items, "break")
fleet, as_rating = "", 0
fleet, as_rating = {}, 0
tags = {}
tags = {}
mode = 1
mode = 1
local ship = EnemyShip(ship_name, ship_suffix)
local ship = EnemyShip(ship_name, ship_suffix)
table.insert(fleet, ShipCardKai:battle_card{ship = ship, caption = ship:name(), link = ship:base_name(), flagship = #fleet == 0})
if ship:air_power() then
if ship:air_power() then
end
end
if mode == 6 then
if mode == 6 then
self:insert_item(node, formation, fleet, as_rating, tags)
self:insert_item(node, formation, table.concat(fleet, " "), as_rating, tags)
end
end
end
end