- 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
Line 1:
Line 1:
+
Line 256:
Line 257:
− +
− +
Refactor
local BaseTable = require('Module:BaseTable')
local BaseTable = require('Module:BaseTable')
local Ship = require('Module:Ship')
local Ship = require('Module:Ship')
local ShipBattleCardKai = require('Module:ShipBattleCardKai')
local ShipCardKai = require('Module:ShipCardKai')
local ShipCardKai = require('Module:ShipCardKai')
local Equipment = require('Module:Equipment')
local Equipment = require('Module:Equipment')
local split = mw.ustring.find(drops_str, '/')
local split = mw.ustring.find(drops_str, '/')
local ship = Ship(mw.ustring.sub(drops_str, 1, split - 1), "")
local ship = Ship(mw.ustring.sub(drops_str, 1, split - 1), "")
local battle_card = ShipCardKai:battle_card{ship = ship, link = ship:link(), caption = ship:name()}
local battle_card = ShipBattleCardKai:get{ship = ship, link = ship:link(), caption = ship:name()}
table.insert(drops, battle_card)
table.insert(drops, battle_card)
drops_str = mw.ustring.sub(drops_str, split + 1)
drops_str = mw.ustring.sub(drops_str, split + 1)
end
end
local ship = Ship(drops_str, "")
local ship = Ship(drops_str, "")
local battle_card = ShipCardKai:battle_card{ship = ship, link = ship:link(), caption = ship:name()}
local battle_card = ShipBattleCardKai:get{ship = ship, link = ship:link(), caption = ship:name()}
table.insert(drops, battle_card)
table.insert(drops, battle_card)