• 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
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
6,928

edits

Navigation menu