Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1783,10 +1783,17 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
extraTags[skill.tag] = true
end
end
local selAffix = item[outputTable][outputIndex] and item[outputTable][outputIndex].modId
local affixList = { }
local retainedAffixes = { }
for modId, mod in pairs(item.affixes) do
if mod.type == type and not excludeGroups[mod.group] and item:GetModSpawnWeight(mod, extraTags) > 0 and not item:CheckIfModIsDelve(mod) then
t_insert(affixList, modId)
if mod.type == type and not excludeGroups[mod.group] and not item:CheckIfModIsDelve(mod) then
if item:GetModSpawnWeight(mod, extraTags) > 0 then
t_insert(affixList, modId)
elseif modId == selAffix then
t_insert(affixList, modId)
retainedAffixes[modId] = true
end
end
end
table.sort(affixList, function(a, b)
Expand Down Expand Up @@ -1821,7 +1828,9 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
end
local modString = table.concat(mod, "/")
local label = modString
if item.type == "Flask" then
if retainedAffixes[modId] then
label = "^8[Retained] " .. modString
elseif item.type == "Flask" then
label = mod.affix .. " ^8[" .. modString .. "]"
end
control.list[i + 1] = {
Expand Down