Anonymous

Module:Icons: Difference between revisions

From Melvor Idle
Added Alt. Magic override
(Squaring icons better)
(Added Alt. Magic override)
Line 31: Line 31:
   local imgSize = args.size ~= nil and args.size or 25
   local imgSize = args.size ~= nil and args.size or 25
   local qty = args.qty
   local qty = args.qty
  local img = args.img ~= nil and args.img or link


  local img = link
   --MANUAL OVERRIDES
   --MANUAL OVERRIDES
   if link == 'Melee' then
   if link == 'Melee' then
Line 44: Line 44:
   elseif link == 'Spider2' then
   elseif link == 'Spider2' then
     link = 'Spider (lv. 52)'
     link = 'Spider (lv. 52)'
  elseif link == 'Alt. Magic' or link == 'Alternative Magic' or link == 'Alt Magic' then
    img = 'Magic'
    link = 'Alternative Magic'
    type = 'skill'
   end
   end