Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NodeInfo
(view source)
Revision as of 13:33, 3 March 2018
152 bytes added
,
6 years ago
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