Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Slight wording tweak on dungeon requirements
(Added required items & required dungeon completions to the getSpellUse table)
(Slight wording tweak on dungeon requirements)
Line 1,211: Line 1,211:
     if spell.requiredDungeonCompletion ~= nil then
     if spell.requiredDungeonCompletion ~= nil then
       local dung = Areas.getAreaByID('dungeon', spell.requiredDungeonCompletion[1])
       local dung = Areas.getAreaByID('dungeon', spell.requiredDungeonCompletion[1])
       rowTxt = rowTxt..'<br/>'..Icons.Icon({dung.name, type='dungeon', notext=true, qty=spell.requiredDungeonCompletion[2]})..' Completions'
       rowTxt = rowTxt..'<br/>'..Icons.Icon({dung.name, type='dungeon', notext=true, qty=spell.requiredDungeonCompletion[2]})..' Clears'
     end
     end
     rowTxt = rowTxt..'||data-sort-value="'..Magic.getSpellTypeIndex(spell.type)..'"|'
     rowTxt = rowTxt..'||data-sort-value="'..Magic.getSpellTypeIndex(spell.type)..'"|'