Anonymous

Module:Magic: Difference between revisions

From Melvor Idle
No change in size ,  27 October 2022
Fixed a minor typo that was preventing spell requirements from including equipped items
(Further corrections to special attack description generation)
(Fixed a minor typo that was preventing spell requirements from including equipped items)
Line 121: Line 121:
     local resultPart = { Icons._SkillReq('Magic', spell.level) }
     local resultPart = { Icons._SkillReq('Magic', spell.level) }


     if spell.itemRequiredID ~= nil then
     if spell.requiredItemID ~= nil then
         local item = Items.getItemByID(spell.itemRequiredID)
         local item = Items.getItemByID(spell.requiredItemID)
         if item ~= nil then
         if item ~= nil then
             table.insert(resultPart, Icons.Icon({item.name, type='item', notext=true}) .. ' Equipped')
             table.insert(resultPart, Icons.Icon({item.name, type='item', notext=true}) .. ' Equipped')