• 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
Revision as of 12:35, 12 May 2021 by Botkaze (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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