• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Module:ShipAsset

From Kancolle Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:ShipAsset/doc

local BaseAsset = require('Module:BaseAsset')
local Ship = require('Module:Ship')

local ShipAsset = BaseAsset()

function ShipAsset:create_object(args)
	if args.name then
		return Ship(args.name, args.model)
	else
		return Ship(args[1])
	end
end

return ShipAsset