Anonymous

Module:Navboxes: Difference between revisions

From Melvor Idle
m
Added alt magic
mNo edit summary
m (Added alt magic)
Line 31: Line 31:
   local auroras = {}
   local auroras = {}
   local ancients = {}
   local ancients = {}
  local altmagic = {}


   for i, spell in Shared.skpairs(MagicData.Spells) do
   for i, spell in Shared.skpairs(MagicData.Spells) do
Line 43: Line 44:
   for i, spell in Shared.skpairs(MagicData.Ancient) do
   for i, spell in Shared.skpairs(MagicData.Ancient) do
     table.insert(ancients, Icons.Icon({spell.name, type='spell'}))
     table.insert(ancients, Icons.Icon({spell.name, type='spell'}))
  end
  for i, spell in Shared.skpairs(MagicData.AltMagic) do
    table.insert(altmagic, Icons.Icon({spell.name, type='spell'}))
   end
   end


Line 55: Line 59:
   result = result..'\r\n|-\r\n!scope="row"|Ancient Magicks'
   result = result..'\r\n|-\r\n!scope="row"|Ancient Magicks'
   result = result..'\r\n|style="text-align:center;|'..table.concat(ancients, ' • ')
   result = result..'\r\n|style="text-align:center;|'..table.concat(ancients, ' • ')
  result = result..'\r\n|-\r\n!scope="row"|Alt Magic'
  result = result..'\r\n|style="text-align:center;|'..table.concat(altmagic, ' • ')
   result = result..'\r\n|}'
   result = result..'\r\n|}'


444

edits