Skip to content

Commit e9537fc

Browse files
Add [Retained] label to cluster jewel notables from previous enchant
Grey out notables in the affix dropdown that only appear because they are currently selected but have zero spawn weight on the active enchantment. This makes it clear which mods were carried over from a different cluster jewel enchant.
1 parent 5d30556 commit e9537fc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1785,10 +1785,14 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
17851785
end
17861786
local selAffix = item[outputTable][outputIndex] and item[outputTable][outputIndex].modId
17871787
local affixList = { }
1788+
local retainedAffixes = { }
17881789
for modId, mod in pairs(item.affixes) do
17891790
if mod.type == type and not excludeGroups[mod.group] and not item:CheckIfModIsDelve(mod) then
1790-
if item:GetModSpawnWeight(mod, extraTags) > 0 or modId == selAffix then
1791+
if item:GetModSpawnWeight(mod, extraTags) > 0 then
17911792
t_insert(affixList, modId)
1793+
elseif modId == selAffix then
1794+
t_insert(affixList, modId)
1795+
retainedAffixes[modId] = true
17921796
end
17931797
end
17941798
end
@@ -1824,7 +1828,9 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
18241828
end
18251829
local modString = table.concat(mod, "/")
18261830
local label = modString
1827-
if item.type == "Flask" then
1831+
if retainedAffixes[modId] then
1832+
label = "^8[Retained] " .. modString
1833+
elseif item.type == "Flask" then
18281834
label = mod.affix .. " ^8[" .. modString .. "]"
18291835
end
18301836
control.list[i + 1] = {

0 commit comments

Comments
 (0)