6,935 Pages

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

-- <pre>
local p         = {}
local data      = mw.loadData('Module:LoRData/data')

function p.cardData(cardCode) -- returns: table
    return data[cardCode]
end

function p.cardRefs(cardCode) -- returns: table
    return data[cardCode].cardRefs
end

function p.name(cardCode) -- returns: string
    return data[cardCode].name
end
 
function p.type(cardCode) -- returns: string
    return data[cardCode].type
end

function p.rarity(cardCode) -- returns: string
    return data[cardCode].rarity
end

function p.subtype(cardCode) -- returns: table
    return data[cardCode].subtype
end

function p.supertype(cardCode) -- returns: string
    return data[cardCode].supertype
end

function p.keywords(cardCode) -- returns: table
    return data[cardCode].keywords
end

function p.keywordRefs(cardCode) -- returns: table
    return data[cardCode].keywordRefs
end

function p.collectible(cardCode) -- returns: boolean
    return data[cardCode].collectible
end

function p.power(cardCode) -- returns: string
    return data[cardCode].power
end

function p.cost(cardCode) -- returns: string
    return data[cardCode].cost
end

function p.health(cardCode) -- returns: string
    return data[cardCode].health
end

function p.desc(cardCode) -- returns: string
    return data[cardCode].desc
end

function p.lvldesc(cardCode) -- returns: string
    return data[cardCode].lvldesc
end

function p.categoryRefs(cardCode) -- returns: table
    return data[cardCode].categoryRefs
end

function p.flavor(cardCode) -- returns: string
    return data[cardCode].flavor
end

function p.artist(cardCode) -- returns: string
    return data[cardCode].artist
end

function p.alternate(cardCode) -- returns: boolean
    return data[cardCode].alternate
end

function p.mode(cardCode) -- returns: string
    return data[cardCode].mode
end

function p.removed(cardCode) -- returns: boolean
    return data[cardCode].removed
end

return p
-- </pre>
-- [[Category:Lua]]
Community content is available under CC-BY-SA unless otherwise noted.