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:25, 8 August 2019
200 bytes added
,
5 years ago
support vita smol ids
Line 99:
Line 99:
return { values = { node = Formatting:japanese_text(row.node) }, color = color, bg_color = bg_color }
return { values = { node = Formatting:japanese_text(row.node) }, color = color, bg_color = bg_color }
end
end
−
+
function NodeInfo:formation(row)
function NodeInfo:formation(row)
if row.tags.final then
if row.tags.final then
Line 271:
Line 271:
local id = tonumber(item_key)
local id = tonumber(item_key)
if id then
if id then
+
local isVita = self._params.fullpagename:sub(1, 13) == 'KanColle Kai:Sandbox'
+
if isVita and id >= 501 and id < 700 then
+
id = id + 1000
+
end
item_key = ShipsByApiId[id] or item_key
item_key = ShipsByApiId[id] or item_key
end
end
Line 283:
Line 287:
ship_suffix = ""
ship_suffix = ""
end
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