- 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 406:
Line 406:
+
Line 505:
Line 506:
+
+
+
+
+
+
Lazy load equipment
local Equipment = require('Module:Equipment')
local Equipment
local Formatting = require('Module:Formatting')
local Formatting = require('Module:Formatting')
local Ship
local Ship
if equipment_slot then
if equipment_slot then
if type(equipment_slot.equipment) == "string" then
if type(equipment_slot.equipment) == "string" then
self:_prepare_Equipment()
equipment_slot.equipment = Equipment(equipment_slot.equipment)
equipment_slot.equipment = Equipment(equipment_slot.equipment)
end
end
function ShipData:seasonal()
function ShipData:seasonal()
return self._seasonal
return self._seasonal
end
function ShipData:_prepare_Equipment()
if not Equipment then
Equipment = require('Module:Equipment')
end
end
end