diff --git a/RatingBuster.lua b/RatingBuster.lua index 56932c4..de9eb91 100644 --- a/RatingBuster.lua +++ b/RatingBuster.lua @@ -3337,7 +3337,7 @@ end function RatingBuster:StatSummary(tooltip, link) -- Hide stat summary for equipped items - if db.global.sumIgnoreEquipped and IsEquippedItem(link) then return end + if db.global.sumIgnoreEquipped and C_Item.IsEquippedItem(link) then return end -- Show stat summary only for highest level armor type and items you can use with uncommon quality and up if db.global.sumIgnoreUnused then diff --git a/libs/StatLogic/StatLogic.lua b/libs/StatLogic/StatLogic.lua index 654939c..a74d7a0 100644 --- a/libs/StatLogic/StatLogic.lua +++ b/libs/StatLogic/StatLogic.lua @@ -806,7 +806,7 @@ do local function update_armor_slot(slot) -- Set slot's bit to 0 if correct, else 1 local item = GetInventoryItemID("player", slot) - if item and select(7, GetItemInfoInstant(item)) == class_armor_specs[addon.class] then + if item and select(7, C_Item.GetItemInfoInstant(item)) == class_armor_specs[addon.class] then armor_bits = bit.band(armor_bits, bit.bnot(bit.lshift(1, slot - 1))) else armor_bits = bit.bor(armor_bits, bit.lshift(1, slot - 1)) @@ -973,7 +973,7 @@ addon.StatModValidators = { validate = function(case) local weapon = GetInventoryItemID("player", 16) if weapon then - local subclassID = select(7, GetItemInfoInstant(weapon)) + local subclassID = select(7, C_Item.GetItemInfoInstant(weapon)) return subclassID and case.weapon[subclassID] end end, @@ -1396,7 +1396,7 @@ do function StatLogic:RemoveExtraSockets(link) -- Only check belt, bracer and gloves - local itemEquipLoc = select(4, GetItemInfoInstant(link)) + local itemEquipLoc = select(4, C_Item.GetItemInfoInstant(link)) if not extraSocketInvTypes[itemEquipLoc] then return link end -- Count item's actual sockets @@ -1515,7 +1515,7 @@ function StatLogic:GetGemID(item) -- Scan tooltip for gem text local gemScanLink = "item:6948:0:%d:0:0:0:0:0" local itemLink = gemScanLink:format(itemID) - local _, gem1Link = GetItemGem(itemLink, 1) + local _, gem1Link = C_Item.GetItemGem(itemLink, 1) if gem1Link then tip:ClearLines() -- this is required or SetX won't work the second time its called tip:SetHyperlink(itemLink); diff --git a/libs/StatLogic/locales/GlobalPatterns.lua b/libs/StatLogic/locales/GlobalPatterns.lua index 5abf252..ba3b35e 100644 --- a/libs/StatLogic/locales/GlobalPatterns.lua +++ b/libs/StatLogic/locales/GlobalPatterns.lua @@ -39,7 +39,7 @@ local exclusions = { ITEM_DISENCHANT_NOT_DISENCHANTABLE, ITEM_REQ_HORDE, ITEM_REQ_ALLIANCE, - GetItemClassInfo(Enum.ItemClass.Projectile), + C_Item.GetItemClassInfo(Enum.ItemClass.Projectile), INVTYPE_AMMO, INVTYPE_HEAD, INVTYPE_NECK, @@ -84,8 +84,8 @@ local exclusions = { ITEM_QUALITY5_DESC, ITEM_QUALITY6_DESC, ITEM_QUALITY7_DESC, - GetItemSubClassInfo(Enum.ItemClass.Weapon, Enum.ItemWeaponSubclass.Thrown), - GetItemSubClassInfo(Enum.ItemClass.Miscellaneous, Enum.ItemMiscellaneousSubclass.Mount) + C_Item.GetItemSubClassInfo(Enum.ItemClass.Weapon, Enum.ItemWeaponSubclass.Thrown), + C_Item.GetItemSubClassInfo(Enum.ItemClass.Miscellaneous, Enum.ItemMiscellaneousSubclass.Mount) } for _, exclusion in pairs(exclusions) do @@ -93,7 +93,7 @@ for _, exclusion in pairs(exclusions) do end for _, subclass in pairs(Enum.ItemArmorSubclass) do - local subclassName = GetItemSubClassInfo(Enum.ItemClass.Armor, subclass) + local subclassName = C_Item.GetItemSubClassInfo(Enum.ItemClass.Armor, subclass) if subclassName then W[subclassName] = false end