Mercurial > wow > askmrrobot
comparison Junk.lua @ 185:a7f2ba17c39a v90
Shadowlands pre-patch update.
author | yellowfive |
---|---|
date | Tue, 13 Oct 2020 10:49:07 -0700 |
parents | eec8032ba9df |
children | 180cb1458674 |
comparison
equal
deleted
inserted
replaced
184:f374d84470db | 185:a7f2ba17c39a |
---|---|
34 local _, itemCount, _, _, _, _, itemLink = GetContainerItemInfo(bagId, slotId) | 34 local _, itemCount, _, _, _, _, itemLink = GetContainerItemInfo(bagId, slotId) |
35 if itemLink ~= nil then | 35 if itemLink ~= nil then |
36 local itemData = Amr.Serializer.ParseItemLink(itemLink) | 36 local itemData = Amr.Serializer.ParseItemLink(itemLink) |
37 if itemData ~= nil then | 37 if itemData ~= nil then |
38 -- see if this is an azerite item and read azerite power ids | 38 -- see if this is an azerite item and read azerite power ids |
39 loc:SetBagAndSlot(bagId, slotId) | 39 --[[loc:SetBagAndSlot(bagId, slotId) |
40 if C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(loc) then | 40 if C_AzeriteEmpoweredItem.IsAzeriteEmpoweredItem(loc) then |
41 local powers = Amr.ReadAzeritePowers(loc) | 41 local powers = Amr.ReadAzeritePowers(loc) |
42 if powers then | 42 if powers then |
43 itemData.azerite = powers | 43 itemData.azerite = powers |
44 end | 44 end |
45 end | 45 end]] |
46 | 46 |
47 -- see if it matches | 47 -- see if it matches |
48 local diffs = Amr.CountItemDifferences(matchItem, itemData) | 48 local diffs = Amr.CountItemDifferences(matchItem, itemData) |
49 if diffs == 0 then | 49 if diffs == 0 then |
50 usedItems[bagId][slotId] = true | 50 usedItems[bagId][slotId] = true |