Changes

no edit summary
Line 8: Line 8:  
local EquipmentCardKai = require('Module:EquipmentCardKai')
 
local EquipmentCardKai = require('Module:EquipmentCardKai')
 
local ShipsByApiId = require('Module:Collection/ShipsByApiId')
 
local ShipsByApiId = require('Module:Collection/ShipsByApiId')
local EquipmentByApiId = require('Module:Collection/EquipmentByApiId')
      
local function getShipCard(ship, hp, maxHp)
 
local function getShipCard(ship, hp, maxHp)
Line 27: Line 26:     
local function getEquipmentCard(eq, cardSize)
 
local function getEquipmentCard(eq, cardSize)
    local id = tonumber(eq)
  −
    if id then
  −
        eq = EquipmentByApiId[id]
  −
    end
   
     return EquipmentCardKai:Asset({ eq, size = cardSize or '100px' })
 
     return EquipmentCardKai:Asset({ eq, size = cardSize or '100px' })
 
end
 
end
cssedit, gkautomate
7,064

edits