Module:Items: Difference between revisions

Added name to the Spell column where it belongs
(Added a Spell Use table)
(Added name to the Spell column where it belongs)
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|'..Icons.Icon({spell.name, type='spell', notext=true, size=50})
     local rowTxt = '\r\n|-\r\n|'..Icons.Icon({spell.name, type='spell', notext=true, size=50})
    rowTxt = rowTxt..'||'..spell.name
     rowTxt = rowTxt..'||'..spell.magicLevelRequired..'||'..Magic.getSpellTypeLink(spell.type)
     rowTxt = rowTxt..'||'..spell.magicLevelRequired..'||'..Magic.getSpellTypeLink(spell.type)
     if spell.type == 'Spells' then
     if spell.type == 'Spells' then