Module:Items: Difference between revisions

More tweaks to getSpellsForRune
(Formatting fixes to getSpellUseTable)
(More tweaks to getSpellsForRune)
Line 1,197: Line 1,197:
   for i, spell in pairs(spellList) do
   for i, spell in pairs(spellList) do
     local rowTxt = '\r\n|-\r\n|data-sort-value="'..spell.name..'"|'
     local rowTxt = '\r\n|-\r\n|data-sort-value="'..spell.name..'"|'
     rowTxt = rowTxt..Icons.Icon({spell.name, type='spell', notext=true, size=50})
     if spell.type == 'Auroras' then
      rowTxt = rowTxt..Icons.Icon({spell.name, type='aurora', notext=true, size=50})
    elseif spell.type == 'Curses' then
      rowTxt = rowTxt..Icons.Icon({spell.name, type='curse', notext=true, size=50})
    else
      rowTxt = rowTxt..Icons.Icon({spell.name, type='spell', notext=true, size=50})
    end
     rowTxt = rowTxt..'||'..spell.name
     rowTxt = rowTxt..'||'..spell.name
     rowTxt = rowTxt..'||'..spell.magicLevelRequired
     rowTxt = rowTxt..'||'..spell.magicLevelRequired