Module:TFTUnitData/getter

-- local p   = {} local data     = require('Module:TFTUnitData/data') local lib      = require('Module:Feature')

function p.allchampionsets(champname) -- returns: table return data[champname] end

function p.championset(champname, set) -- returns: table return lib.tbl(data[champname][set]) end function p.skin(champname, set) -- returns: string return data[champname][set].skin end function p.tier(champname, set) -- returns: string return data[champname][set].tier end

function p.square(champname, set) -- returns: string return data[champname][set].square end

function p.render(champname, set) -- returns: string return data[champname][set].render end

function p.origin(champname, set) -- returns: table return data[champname][set].origin end

function p.class(champname, set) -- returns: table return data[champname][set].class end

function p.abilityname(champname, set) -- returns: string return data[champname][set].abilityname end

function p.abilityicon(champname, set) -- returns: string return data[champname][set].abilityicon end

function p.passive(champname, set) -- returns: string return data[champname][set].passive end

function p.active(champname, set) -- returns: string return data[champname][set].active end

function p.health(champname, set) -- returns: string return data[champname][set].health end

function p.mana(champname, set) -- returns: string return data[champname][set].mana end

function p.startmana(champname, set) -- returns: string return data[champname][set].startmana end

function p.ad(champname, set) -- returns: string return data[champname][set].ad end

function p.range(champname, set) -- returns: string return data[champname][set].range end

function p.arm(champname, set) -- returns: string return data[champname][set].arm end

function p.mr(champname, set) -- returns: string return data[champname][set].mr end

function p.behavior(champname, set) -- returns: string return data[champname][set].behavior end

return p -- --