Module:Item: Difference between revisions

From Growtopia
Jump to navigationJump to search
>NekoPillow
Removing all content from page
>NekoPillow
No edit summary
Line 1: Line 1:
local item = {}


local md5 = mw.loadData('Module:Md5')
local function getItemData(hash)
    local a = mw.loadData('Module:Item/Data')
    return a[hash] or {0, 0}
end
function item.SpriteByName(frame)
    local order = getItemData(md5.md5(frame.args[1]))[1]
    return order
end
return item

Revision as of 15:55, 12 August 2019

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

local item = {}

local md5 = mw.loadData('Module:Md5')

local function getItemData(hash)
    local a = mw.loadData('Module:Item/Data')
    return a[hash] or {0, 0}
end

function item.SpriteByName(frame)
    local order = getItemData(md5.md5(frame.args[1]))[1]
    return order
end

return item