diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index b9d86e4..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "libs/LibProcessable"] - path = libs/LibProcessable - url = git@github.com:p3lim-wow/LibProcessable.git diff --git a/OpenThosePouches.lua b/OpenThosePouches.lua index 0cb74cb..df1bd8c 100644 --- a/OpenThosePouches.lua +++ b/OpenThosePouches.lua @@ -50,19 +50,17 @@ local ignoredItems = { } local function IsPouch(container, slot) - local texture, count, locked, quality, readable, lootable, itemLink = GetContainerItemInfo(container, slot) - if itemLink == nil then + local itemInfo = C_Container.GetContainerItemInfo(container, slot) + if itemInfo == nil then return false end - if lootable == false then + if itemInfo["hasLoot"] == false then return false end - local itemId = GetContainerItemID(container, slot) - for _i, lockedItemId in ipairs(ignoredItems) do - if lockedItemId == itemId then + if lockedItemId == itemInfo["itemID"] then return false end end @@ -74,9 +72,8 @@ local function OpenNextPouch() -- print("Looking for pouches") for container = BACKPACK_CONTAINER, NUM_BAG_SLOTS do - for slot = 1, GetContainerNumSlots(container) do + for slot = 1, C_Container.GetContainerNumSlots(container) do if IsPouch(container, slot) == true then - -- print("Opening ", itemLink) UseContainerItem(container, slot) C_Timer.After(delayBetweenSearches, OpenNextPouch) return diff --git a/OpenThosePouches.toc b/OpenThosePouches.toc index ae8ba5f..cd4f350 100644 --- a/OpenThosePouches.toc +++ b/OpenThosePouches.toc @@ -1,8 +1,8 @@ -## Interface: 90207 +## Interface: 10002 ## Title: Open Those Pouches ## Notes: Automatically opens and tries to loot any backpacks, satchels, or pouches as you loot them ## Author: @icbat -## Version: 9 +## Version: 10 ## X-WoWI-ID: 26222