Module:Items: Difference between revisions

Removed mastery requirement when it's level 0
(Did some stuff to make sure potions sort properly)
(Removed mastery requirement when it's level 0)
Line 992: Line 992:
           --Potions do have upgrade requirements though
           --Potions do have upgrade requirements though
           local rowReq = Icons._SkillReq('Herblore', potionData.herbloreLevel)
           local rowReq = Icons._SkillReq('Herblore', potionData.herbloreLevel)
           local masteryLvl = 0
           local masteryLvl = potTierMastery[item2.potionTier]
          if item2.potionTier ~= nil then
          if masteryLvl > 0 then
            masteryLvl = potTierMastery[item2.potionTier]
             rowReq = rowReq..'<br/>'..Icons._MasteryReq(item2.name, masteryLvl)
             rowReq = rowReq..'<br/>'..Icons._MasteryReq(item2.name, masteryLvl)
           end
           end