Anonymous

Module:Items: Difference between revisions

From Melvor Idle
Formatting tweaks
(More tweaks to getSpellsForRune)
(Formatting tweaks)
Line 1,193: Line 1,193:
   local result = '{|class="wikitable sortable"\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!!style="width:275px"|Description'
   result = result..'!!Runes'
   result = result..'!!Runes'
   for i, spell in pairs(spellList) do
   for i, spell in pairs(spellList) do
Line 1,205: Line 1,205:
     end
     end
     rowTxt = rowTxt..'||'..spell.name
     rowTxt = rowTxt..'||'..spell.name
     rowTxt = rowTxt..'||'..spell.magicLevelRequired
     rowTxt = rowTxt..'||data-sort-value="'..spell.magicLevelRequired..'"|'..Icons._SkillReq('Magic', spell.magicLevelRequired)
     rowTxt = rowTxt..'||data-sort-value="'..Magic.getSpellTypeIndex(spell.type)..'"|'
     rowTxt = rowTxt..'||data-sort-value="'..Magic.getSpellTypeIndex(spell.type)..'"|'
     rowTxt = rowTxt..Magic.getSpellTypeLink(spell.type)
     rowTxt = rowTxt..Magic.getSpellTypeLink(spell.type)