Changes
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