Module:Items/UseTables: Difference between revisions

Fix currency function calls
(Fixed XP and Levels for Abyssal recipes in UseTables)
(Fix currency function calls)
Line 604: Line 604:
local gpText = nil
local gpText = nil
if type(row.gp) == 'number' and row.gp > 0 then
if type(row.gp) == 'number' and row.gp > 0 then
gpText = Icons.GP(row.gp)
gpText = Icons._Currency('melvorD:GP', row.gp)
elseif type(row.gp) == 'string' then
elseif type(row.gp) == 'string' then
gpText = row.gp
gpText = row.gp
Line 613: Line 613:
local scText = nil
local scText = nil
if type(row.sc) == 'number' and row.sc > 0 then
if type(row.sc) == 'number' and row.sc > 0 then
scText = Icons.SC(row.sc)
scText = Icons._Currency('melvorD:SlayerCoins', row.sc)
elseif type(row.sc) == 'string' then
elseif type(row.sc) == 'string' then
scText = row.sc
scText = row.sc
Line 622: Line 622:
local rcText = nil
local rcText = nil
if type(row.rc) == 'number' and row.rc > 0 then
if type(row.rc) == 'number' and row.rc > 0 then
rcText = Icons.RC(row.rc)
rcText = Icons._Currency('melvorD:RaidCoins', row.rc)
elseif type(row.rc) == 'string' then
elseif type(row.rc) == 'string' then
rcText = row.rc
rcText = row.rc