• 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
Lazy load equipment
Line 1: Line 1: −
local Equipment = require('Module:Equipment')
+
local Equipment
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 
local Ship
 
local Ship
Line 406: Line 406:  
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
Line 505: Line 506:  
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
  
Anonymous user

Navigation menu