From 84e548b1ee1c69b81148a81795e1929bdc741271 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Fri, 7 Jun 2024 00:24:11 -0700 Subject: [PATCH] Modules/Bags: use new appearance system if available --- ElvUI/Modules/Bags/Bags.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ElvUI/Modules/Bags/Bags.lua b/ElvUI/Modules/Bags/Bags.lua index e5f5cc5..480dd93 100644 --- a/ElvUI/Modules/Bags/Bags.lua +++ b/ElvUI/Modules/Bags/Bags.lua @@ -388,7 +388,12 @@ function B:UpdateSlot(frame, bagID, slotID) end slot.isUnlearnedVanity = VANITY_ITEMS[slot.id] and not C_VanityCollection.IsCollectionItemOwned(slot.id) and iType ~= "Consumable" - slot.isUnlearnedWardrobe = not (BAD_WARDROBE_SUBTYPES[iSubtype] and iType == "Weapon") and APPEARANCE_ITEM_INFO[slot.id] and not APPEARANCE_ITEM_INFO[slot.id]:GetCollectedID() + if C_Appearance then + local appearanceID = C_Appearance.GetItemAppearanceID(slot.id) + slot.isUnlearnedWardrobe = appearanceID and not C_AppearanceCollection.IsAppearanceCollected(appearanceID) + else + slot.isUnlearnedWardrobe = not (BAD_WARDROBE_SUBTYPES[iSubtype] and iType == "Weapon") and APPEARANCE_ITEM_INFO[slot.id] and not APPEARANCE_ITEM_INFO[slot.id]:GetCollectedID() + end slot.isJunk = (slot.rarity and slot.rarity == 0) and (itemPrice and itemPrice > 0) and (iType and iType ~= "Quest") slot.junkDesaturate = slot.isJunk and E.db.bags.junkDesaturate