Module:PatchVariablesClass

local Class = require('Module:Class').Class local util_args = require('Module:ArgsUtil') local util_map = require('Module:MapUtil') local SetVariables = require('Module:SetVariablesClass') local m_champion = require('Module:Champion')

local VARS = { 'patch', 'disabled', 'hotfix', 'footnote' }

local h = {}

local p = Class(SetVariables)

function p:new self:super('SetPatch') end

function p:set(args) args.disabled = h.formatDisabledList(args.disabled) for _, var in ipairs(VARS) do		self:_set(var, args[var] or '') end end

function h.formatDisabledList(disabled) if not disabled then return nil end return util_map.splitAndConcat(disabled, nil, m_champion.championname, ', ') end

return p