Module:Calculator/AgilityObstacle: Difference between revisions

m
Fix derp again
(Fix derp)
m (Fix derp again)
Line 17: Line 17:


local function getItemIcon(itemName, amount)
local function getItemIcon(itemName, amount)
return iconTable[itemName] or Icons.Icon({itemName, type='item', qty = amount, notext=true})
local iconFunc = iconTable[itemName]
    if iconFunc then
        return iconFunc(amount)
    else
        return Icons.Icon({itemName, type='item', qty = amount, notext=true})
    end
end
end


2,875

edits