Anonymous

Module:Items/UseTables: Difference between revisions

From Melvor Idle
I believe I fixed the issues with spell descriptions.
(Fixed use list for Shards to also check for the Summoning category)
(I believe I fixed the issues with spell descriptions.)
Line 624: Line 624:
     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)
     if spell.type == 'Spells' then
     rowTxt = rowTxt..'||'..Magic.getSpellStat(spell, 'description')
      rowTxt = rowTxt..'||Combat spell with a max hit of '..(spell.maxHit * 10)
    else
      rowTxt = rowTxt..'||'..spell.description
    end
     rowTxt = rowTxt..'||style="text-align:center"|'
     rowTxt = rowTxt..'||style="text-align:center"|'
     rowTxt = rowTxt..Magic._getSpellRunes(spell)
     rowTxt = rowTxt..Magic._getSpellRunes(spell)