Module:Item

From Growtopia
Revision as of 15:55, 12 August 2019 by >NekoPillow
Jump to navigationJump to search

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