4,951
edits
Falterfire (talk | contribs) (Added name to the Spell column where it belongs) |
Falterfire (talk | contribs) (Formatting fixes to getSpellUseTable) |
||
Line 1,191: | Line 1,191: | ||
end | end | ||
local result = '{|class="wikitable"\r\n!colspan="2"|Spell' | local result = '{|class="wikitable sortable"\r\n!colspan="2"|Spell' | ||
result = result..'!!'..Icons.Icon({'Magic', type='skill', notext='true'})..' Level' | result = result..'!!'..Icons.Icon({'Magic', type='skill', notext='true'})..' Level' | ||
result = result..'!!Type!!Description' | result = result..'!!Type!!Description' | ||
result = result..'!!Runes' | result = result..'!!Runes' | ||
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|data-sort-value="'..spell.name..'"|' | ||
rowTxt = rowTxt..Icons.Icon({spell.name, type='spell', notext=true, size=50}) | |||
rowTxt = rowTxt..'||'..spell.name | rowTxt = rowTxt..'||'..spell.name | ||
rowTxt = rowTxt..'||'..spell.magicLevelRequired..'||'..Magic.getSpellTypeLink(spell.type) | rowTxt = rowTxt..'||'..spell.magicLevelRequired | ||
rowTxt = rowTxt..'||data-sort-value="'..Magic.getSpellTypeIndex(spell.type)..'"|' | |||
rowTxt = rowTxt..Magic.getSpellTypeLink(spell.type) | |||
if spell.type == 'Spells' then | if spell.type == 'Spells' then | ||
rowTxt = rowTxt..'||Combat spell with a max hit of '..(spell.maxHit * 10) | rowTxt = rowTxt..'||Combat spell with a max hit of '..(spell.maxHit * 10) |