Skip to content

Commit 5d30556

Browse files
Preserve cluster jewel notables when changing enchantment
Keep currently-selected affixes in the dropdown even when they can't naturally spawn on the new base. In 3.28 you can change a cluster jewel's enchantment without losing existing mods, so the affix list filter now skips the spawn weight check for whatever mod is already selected in each slot.
1 parent fb6cd05 commit 5d30556

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/Classes/ItemsTab.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,10 +1783,13 @@ function ItemsTabClass:UpdateAffixControl(control, item, type, outputTable, outp
17831783
extraTags[skill.tag] = true
17841784
end
17851785
end
1786+
local selAffix = item[outputTable][outputIndex] and item[outputTable][outputIndex].modId
17861787
local affixList = { }
17871788
for modId, mod in pairs(item.affixes) do
1788-
if mod.type == type and not excludeGroups[mod.group] and item:GetModSpawnWeight(mod, extraTags) > 0 and not item:CheckIfModIsDelve(mod) then
1789-
t_insert(affixList, modId)
1789+
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+
t_insert(affixList, modId)
1792+
end
17901793
end
17911794
end
17921795
table.sort(affixList, function(a, b)

0 commit comments

Comments
 (0)