5,355 Pages

-- <pre>
local p    = {}
local data      = require('Module:TFTTraitData/data')
 
function p.sets(traitname) -- returns: table
    return data[traitname]
end
 
function p.traitset(traitname, set) -- returns: table
    return data[traitname][set]
end
 
function p.icon(traitname, set) -- returns: string
    return data[traitname][set].icon
end
 
function p.innate(traitname, set) -- returns: string
    return data[traitname][set].innate
end
 
function p.synergy(traitname, set) -- returns: string
    return data[traitname][set].synergy
end
 
function p.levels(traitname, set) -- returns: table
    return data[traitname][set].levels
end
 
function p.levelunique(traitname, set) -- returns: boolean
    return data[traitname][set].levelunique
end
 
function p.diamondtrait(traitname, set) -- returns: boolean
    return data[traitname][set].diamondtrait
end
 
function p.item(traitname, set) -- returns: string
    return data[traitname][set].item
end
 
return p
-- </pre>
-- [[Category:Lua]]
Community content is available under CC-BY-SA unless otherwise noted.