Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Module:Fleet
(view source)
Revision as of 15:27, 30 April 2023
156 bytes removed
,
1 year ago
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