Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:EquipmentLink
(view source)
Revision as of 06:12, 10 March 2020
226 bytes added
,
4 years ago
no edit summary
Line 4:
Line 4:
local Equipment = require("Module:Equipment")
local Equipment = require("Module:Equipment")
local EquipmentCardKai = require("Module:EquipmentCardKai")
local EquipmentCardKai = require("Module:EquipmentCardKai")
+
local EquipmentGraphicKai = require("Module:EquipmentGraphicKai")
local EquipmentLink = {}
local EquipmentLink = {}
Line 24:
Line 25:
for _, arg in ipairs(args) do
for _, arg in ipairs(args) do
local equip = arg ~= "-" and Equipment(arg)
local equip = arg ~= "-" and Equipment(arg)
−
table.insert(cards, arg == "-" and "<br />" or EquipmentCardKai:get{ equip = equip, size = size })
+
table.insert(
+
cards,
+
arg == "-" and
+
"<br />" or
+
equip:id() > 500 and
+
EquipmentGraphicKai:get{ equip = equip, size = size } or
+
EquipmentCardKai:get{ equip = equip, size = size }
+
)
end
end
がか
cssedit, gkautomate
7,064
edits