Module:Items/UseTables: Difference between revisions

herbloreLevel -> level to resolve a bunch of script errors
(ensured gp cost shows up when crafting Thief's Moneysack)
(herbloreLevel -> level to resolve a bunch of script errors)
Line 439: Line 439:
           local xp = potionData.herbloreXP
           local xp = potionData.herbloreXP
           --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.level)
           local masteryLvl = potTierMastery[item2.potionTier]
           local masteryLvl = potTierMastery[item2.potionTier]
           if masteryLvl > 0 then
           if masteryLvl > 0 then
             rowReq = rowReq..'<br/>'..Icons._MasteryReq(item2.name, masteryLvl)
             rowReq = rowReq..'<br/>'..Icons._MasteryReq(item2.name, masteryLvl)
           end
           end
           local reqVal = potionData.herbloreLevel + (masteryLvl * 0.01)
           local reqVal = potionData.level + (masteryLvl * 0.01)
           table.insert(useArray, {item = item2, qty = 1, mats = mat, skill = 'Herblore', reqVal = reqVal, req = rowReq, xp = xp})
           table.insert(useArray, {item = item2, qty = 1, mats = mat, skill = 'Herblore', reqVal = reqVal, req = rowReq, xp = xp})
           break
           break