fix: item mark icon

This commit is contained in:
Vati
2026-02-28 01:58:57 +04:00
parent 184d461e3e
commit 7b87c7f5a0
7 changed files with 137 additions and 154 deletions
+23 -1
View File
@@ -1032,8 +1032,9 @@ function CategoryManager:CategorizeItem(itemData, bagID, slotID, isOtherChar)
cacheMisses = cacheMisses + 1
-- Check item overrides first (flat map: itemID -> categoryId)
local itemID
if itemData and itemData.link then
local itemID = addon.Modules.Utils:ExtractItemID(itemData.link)
itemID = addon.Modules.Utils:ExtractItemID(itemData.link)
if itemID then
local cats = self:GetCategories()
if cats.itemOverrides then
@@ -1051,6 +1052,27 @@ function CategoryManager:CategorizeItem(itemData, bagID, slotID, isOtherChar)
end
end
-- Equipment set categories (higher priority than rule-based matching)
if itemID and addon.Modules.EquipmentSets then
local showEquipSets = addon.Modules.DB:GetSetting("showEquipSetCategories")
if showEquipSets ~= false then
if addon.Modules.EquipmentSets:IsInSet(itemID) then
local setNames = addon.Modules.EquipmentSets:GetSetNames(itemID)
if setNames and table.getn(setNames) > 0 then
table.sort(setNames)
local catId = "EquipSet:" .. setNames[1]
local catDef = self:GetCategory(catId)
if catDef and catDef.enabled then
if cacheKey then
categoryCache[cacheKey] = catId
end
return catId
end
end
end
end
end
local sortedCats = self:GetCategoriesByPriority()
-- Debug: show white item categorization