Module:EquipmentCardKai

Revision as of 12:16, 19 October 2017 by がか (talk | contribs)

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

local EquipmentAsset = require('Module:EquipmentAsset')
local Formatting = require('Module:Formatting')

local EquipmentCardKai = EquipmentAsset()

function EquipmentCardKai:get_source(equip)
	return equip:card()
end

function EquipmentCardKai:get(equip, args, link)
	if not args then
		args = equip
		equip = args.equipment or args.equip
		link = args.link
	end
	if args.icon then
        args[1] = equip:icon()
    else
        args[1] = self:get_source(equip)
    end
	args.link = link
	return Formatting:format_image(args)
end

return EquipmentCardKai