Anonymous

Module:Items: Difference between revisions

From Melvor Idle
12 bytes removed ,  24 September 2020
Fixed issue caused by changing over to ItemData.Items
No edit summary
(Fixed issue caused by changing over to ItemData.Items)
Line 166: Line 166:
     --Currently using 'herbloreMasteryID' as shorthand to find details, could be a better method
     --Currently using 'herbloreMasteryID' as shorthand to find details, could be a better method
     local potionID = item.herbloreMasteryID
     local potionID = item.herbloreMasteryID
     local potionData = SkillData.Herblore.ItemData.Items[potionID + 1]
     local potionData = SkillData.Herblore.ItemData[potionID + 1]
     lvl = potionData.herbloreLevel
     lvl = potionData.herbloreLevel
     xp = potionData.herbloreXP
     xp = potionData.herbloreXP
Line 334: Line 334:
   --HerbCheck:
   --HerbCheck:
   if item.herbloreMasteryID ~= nil then
   if item.herbloreMasteryID ~= nil then
     local potionData = SkillData.Herblore.ItemData.Items[item.herbloreMasteryID + 1].herbloreLevel
     local potionData = SkillData.Herblore.ItemData[item.herbloreMasteryID + 1].herbloreLevel
     table.insert(lineArray, Icons._SkillReq("Herblore", potionData))
     table.insert(lineArray, Icons._SkillReq("Herblore", potionData))
   end
   end