Changes

no edit summary
Line 2: Line 2:  
local ships = {}
 
local ships = {}
   −
local ShipData = require('Module:ShipData')
+
local ShipData
 +
 
 +
function Ship:_prepareShipData()
 +
ShipData = ShipData or require('Module:ShipData')
 +
end
    
function Ship:get(stat, name, model)
 
function Ship:get(stat, name, model)
Line 9: Line 13:     
function Ship:create(name, model)
 
function Ship:create(name, model)
 +
self:_prepareShipData()
 
if name == nil then
 
if name == nil then
 
return ShipData()
 
return ShipData()
Anonymous user