Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
Tweaking links for magic types again
(Attempting to fix issue with # link not working properly, also fixed runesRequiredAlt showing even if identical)
(Tweaking links for magic types again)
Line 238: Line 238:
function p.getSpellTypeLink(type)
function p.getSpellTypeLink(type)
   if type == 'Spells' then
   if type == 'Spells' then
     return Icons.Icon({'Magic#Standard Magic', 'Standard', img='Standard', type='spellType'})
     return Icons.Icon({'Magic', 'Standard', img='Standard', type='spellType'})
   elseif type == 'Curses' then
   elseif type == 'Curses' then
     return Icons.Icon({'Magic#Curses', 'Curse', img='Curse', type='spellType'})
     return Icons.Icon({'Curses', 'Curse', img='Curse', type='spellType'})
   elseif type == 'Auroras' then
   elseif type == 'Auroras' then
     return Icons.Icon({'Magic#Auroras', 'Aurora', img='Aurora', type='spellType'})
     return Icons.Icon({'Auroras', 'Aurora', img='Aurora', type='spellType'})
   elseif type == 'Ancient' then
   elseif type == 'Ancient' then
     return Icons.Icon({'Magic#Ancient Magicks', 'Ancient', img='Ancient', type='spellType'})
     return Icons.Icon({'Ancient Magicks', 'Ancient', img='Ancient', type='spellType'})
   elseif type == 'AltMagic' then
   elseif type == 'AltMagic' then
     return Icons.Icon({'Alt. Magic', type='skill'})
     return Icons.Icon({'Alt. Magic', type='skill'})