Module:Magic: Difference between revisions

From Melvor Idle
(fixed an error when getting spell descriptions sometimes)
(Substitute links with Icons.Icon() where possible to benefit from ambiguous link handling)
Line 277: Line 277:
     rowTxt = rowTxt..Icons.Icon({spell.name, type='spell', notext=true, size=50})
     rowTxt = rowTxt..Icons.Icon({spell.name, type='spell', notext=true, size=50})
   end
   end
   rowTxt = rowTxt..'||[['..spell.name..']]'
   rowTxt = rowTxt..'||'..Icons.Icon({spell.name, type='spell', noicon=true})
   rowTxt = rowTxt..'||data-sort-value="'..spell.level..'"|'..Icons._SkillReq('Magic', spell.level)
   rowTxt = rowTxt..'||data-sort-value="'..spell.level..'"|'..Icons._SkillReq('Magic', spell.level)
   --Handle required items/dungeon clears
   --Handle required items/dungeon clears