Changes
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