Skip to content

Commit 0b8a522

Browse files
author
LocalIdentity
committed
Only use sort cache on support for imbued dropdown making it way faster
The sortCache now only runs on non-exceptional supports to loads a lot faster when clicked
1 parent 456bb41 commit 0b8a522

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/Classes/GemSelectControl.lua

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,19 @@ function GemSelectClass:PopulateGemList()
107107
if (self.sortGemsBy and gemData.tags[self.sortGemsBy] == true or not self.sortGemsBy) then
108108
local levelRequirement = gemData.grantedEffect.levels[1].levelRequirement or 1
109109
if characterLevel >= levelRequirement or not matchLevel then
110-
if (showExceptional or showAll) and ((gemData.grantedEffect.legacy and gemData.grantedEffect.plusVersionOf) or gemData.tagString:match("Exceptional")) then
111-
if self.skillsTab.showLegacyGems or not gemData.grantedEffect.legacy then
110+
if self.imbuedSelect then
111+
-- Imbued dropdown only allows non-exceptional support gems.
112+
if gemData.grantedEffect.support and not gemData.tagString:match("Exceptional") then
113+
self.gems["Default:" .. gemId] = gemData
114+
end
115+
else
116+
if (showExceptional or showAll) and ((gemData.grantedEffect.legacy and gemData.grantedEffect.plusVersionOf) or gemData.tagString:match("Exceptional")) then
117+
if self.skillsTab.showLegacyGems or not gemData.grantedEffect.legacy then
118+
self.gems["Default:" .. gemId] = gemData
119+
end
120+
elseif showNormal or showAll then
112121
self.gems["Default:" .. gemId] = gemData
113122
end
114-
elseif showNormal or showAll then
115-
self.gems["Default:" .. gemId] = gemData
116123
end
117124
end
118125
end

0 commit comments

Comments
 (0)