2,869
edits
(Update for v1.3) |
(Add icon overrides for Abyssal currencies) |
||
Line 9: | Line 9: | ||
local Icons = require('Module:Icons') | local Icons = require('Module:Icons') | ||
local iconTable = { | |||
['GP'] = Icons.GP(amount), | |||
['SC'] = Icons.SC(amount), | |||
['AP'] = Icons.AP(amount), | |||
['ASC'] = Icons.ASC(amount), | |||
} | |||
local function getItemIcon(itemName, amount) | local function getItemIcon(itemName, amount) | ||
return iconTable[itemName] or Icons.Icon({itemName, type='item', qty = amount, notext=true}) | |||
end | end | ||
edits