diff --git a/src/filters/ItemType.lua b/src/filters/ItemType.lua index fa08040..6c2f77a 100644 --- a/src/filters/ItemType.lua +++ b/src/filters/ItemType.lua @@ -21,7 +21,7 @@ local GetContainerItemID = _G.C_Container and _G.C_Container.GetContainerItemID local GetItemInfoInstant = _G.GetItemInfoInstant local GetAuctionItemSubClasses -if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() then +if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() or AddOn:IsCataWow() then GetAuctionItemSubClasses = _G.GetAuctionItemSubClasses end @@ -128,6 +128,30 @@ if AddOn:IsWrathWow() then } end +if AddOn:IsCataWow() then + -- scanned Fri May 3 15:20:54 2024 - patch 4.4.0 + ItemTypes = { + [0]="Consumable", + [1]="Container", + [2]="Weapon", + [3]="Gem", + [4]="Armor", + [5]="Reagent", + [6]="Projectile", + [7]="Trade Goods", + [8]="Generic(OBSOLETE)", + [9]="Recipe", + [10]="Money(OBSOLETE)", + [11]="Quiver", + [12]="Quest", + [13]="Key", + [14]="Permanent(OBSOLETE)", + [15]="Miscellaneous", + [16]="Glyph", + [18]="WoW Token" + } +end + --[[ local ItemTypes = { ["Weapon"] = {"One-Handed Axes", "Two-Handed Axes", "Bows", "Guns", "One-Handed Maces", "Two-Handed Maces", "Polearms", "One-Handed Swords", "Two-Handed Swords", "Staves", "Fist Weapons", "Miscellaneous", "Daggers", "Thrown", "Crossbows", "Wands", "Fishing Poles"}, @@ -221,7 +245,7 @@ AddOn:AddCustomRule("ItemType", local tmp = {} tmp.ALL = _G.ALL if rule.itype and ItemTypes[rule.itype] then - if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() then + if AddOn:IsClassicWow() or AddOn:IsTBCWow() or AddOn:IsWrathWow() or AddOn:IsCataWow() then for _,k in pairs({GetAuctionItemSubClasses(rule.itype)}) do tmp[tostring(k)] = GetItemSubClassInfo(rule.itype, k) or "UNKNOWN" end