Module:Items: Difference between revisions

Change sellsForCurrency check to namespace check
(Add support for AbyssalLevel stat)
(Change sellsForCurrency check to namespace check)
Line 700: Line 700:


function p._getItemResistance(item)
function p._getItemResistance(item)
if item.sellsForCurrency == 'melvorItA:AbyssalPieces' then
local namespace = Shared.getLocalID(item.id)
if namespace == 'melvorItA' then
return p._getItemStat(item, 'resistance', true), 'Abyssal Resistance'
return p._getItemStat(item, 'resistance', true), 'Abyssal Resistance'
else
else