Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
fixed an issue with new magic table generation
(Added p.getCurseTable, p.getAuroraTable, and p.getAncientTable)
(fixed an issue with new magic table generation)
Line 292: Line 292:
   result = result..'!!style="width:275px"|Description'
   result = result..'!!style="width:275px"|Description'
   result = result..'!!Runes'
   result = result..'!!Runes'
   for i, spell in pairs(MagicData.Curses) do
  local spellList = {}
   for i, spell in Shared.skpairs(MagicData.Curses) do
     local rowTxt = p._getSpellRow(processSpell('Curses', i), false)
     local rowTxt = p._getSpellRow(processSpell('Curses', i), false)
     result = result..rowTxt
     result = result..rowTxt
Line 305: Line 306:
   result = result..'!!style="width:275px"|Description'
   result = result..'!!style="width:275px"|Description'
   result = result..'!!Runes'
   result = result..'!!Runes'
   for i, spell in pairs(MagicData.Auroras) do
   for i, spell in Shared.skpairs(MagicData.Auroras) do
     local rowTxt = p._getSpellRow(processSpell('Auroras', i), false)
     local rowTxt = p._getSpellRow(processSpell('Auroras', i), false)
     result = result..rowTxt
     result = result..rowTxt
Line 318: Line 319:
   result = result..'!!style="width:275px"|Description'
   result = result..'!!style="width:275px"|Description'
   result = result..'!!Runes'
   result = result..'!!Runes'
   for i, spell in pairs(MagicData.Ancient) do
   for i, spell in Shared.skpairs(MagicData.Ancient) do
     local rowTxt = p._getSpellRow(processSpell('Ancient', i), false)
     local rowTxt = p._getSpellRow(processSpell('Ancient', i), false)
     result = result..rowTxt
     result = result..rowTxt