• 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
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

Navigation menu