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 17:08, 8 August 2019
24 bytes added
,
5 years ago
m
no edit summary
Line 269:
Line 269:
else
else
--Fleets are of variable size, so we append onto a string until we hit the next node declaration
--Fleets are of variable size, so we append onto a string until we hit the next node declaration
+
local id = tonumber(item_key)
+
if id then
+
item_key = ShipsByApiId[id] or item_key
+
end
+
local split = mw.ustring.find(item_key, '/')
local split = mw.ustring.find(item_key, '/')
local ship_name, ship_suffix
local ship_name, ship_suffix
Line 279:
Line 284:
end
end
−
local id = tonumber(ship_name)
−
if id then
−
ship_name = ShipsByApiId[id]
−
end
−
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_air_power = ship:air_power(tags.raid)
がか
cssedit, gkautomate
7,064
edits