Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Amended for gameData changes
(format item stats)
(Amended for gameData changes)
Line 702: Line 702:
local namespace = Shared.getLocalID(item.id)
local namespace = Shared.getLocalID(item.id)
if namespace == 'melvorItA' then
if namespace == 'melvorItA' then
return p._getItemStat(item, 'resistance', true), 'Abyssal Resistance'
local eternalResistance = p._getItemStat(item, 'resistanceEternal', false)
if eternalResistance ~= nil then
return eternalResistance, 'Eternal Resistance'
else
return p._getItemStat(item, 'resistanceAbyssal', true), 'Abyssal Resistance'
end
else
else
return p._getItemStat(item, 'damageReduction', true), 'Damage Reduction'
return p._getItemStat(item, 'damageReduction', true), 'Damage Reduction'