• 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
add air power in tooltips
Line 220: Line 220:     
        local ship = EnemyShip(ship_name, ship_suffix)
 
        local ship = EnemyShip(ship_name, ship_suffix)
 +
        local ship_air_power = ship:air_power(tags.raid)
 +
 
        local ship_caption =
 
        local ship_caption =
 
            (ship:name() or "?")
 
            (ship:name() or "?")
 
            .. " (" .. Formatting:format_enemy_stat(ship:api_id()) .. "): "
 
            .. " (" .. Formatting:format_enemy_stat(ship:api_id()) .. "): "
 
            .. (ship:armor() or "?") .. " Armor, " .. (ship:hp() or "?") .. " HP"
 
            .. (ship:armor() or "?") .. " Armor, " .. (ship:hp() or "?") .. " HP"
        table.insert(fleet, ShipBattleCardKai:get{ship = ship, caption = ship_caption, link = ship:link(), flagship = #fleet == 0})
+
            .. (ship_air_power and ", " .. ship_air_power .. " AP" or "")
 +
 
 +
        table.insert(fleet, ShipBattleCardKai:get{
 +
            ship = ship,
 +
            caption = ship_caption,
 +
            link = ship:link(),
 +
            flagship = #fleet == 0
 +
                })
   −
        local ship_air_power = ship:air_power(tags.raid)
   
        if ship_air_power then
 
        if ship_air_power then
 
            as_rating = as_rating + ship_air_power
 
            as_rating = as_rating + ship_air_power
cssedit, gkautomate
6,941

edits

Navigation menu