4,951
edits
Falterfire (talk | contribs) No edit summary |
Falterfire (talk | contribs) (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 | 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 | 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 |