Skip to content

Commit 48cb29e

Browse files
author
LocalIdentity
committed
Adjust logic
1 parent dd08c61 commit 48cb29e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Classes/GemSelectControl.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ end
111111
function GemSelectClass:PopulateGemList()
112112
wipeTable(self.gems)
113113
local showAll = self.skillsTab.showSupportGemTypes == "ALL"
114-
local showAwakened = self.skillsTab.showSupportGemTypes == "AWAKENED"
114+
local showExceptional = self.skillsTab.showSupportGemTypes == "EXCEPTIONAL"
115115
local showNormal = self.skillsTab.showSupportGemTypes == "NORMAL"
116116
local matchLevel = self.skillsTab.defaultGemLevel == "characterLevel"
117117
local characterLevel = self.skillsTab.build and self.skillsTab.build.characterLevel or 1
@@ -120,8 +120,8 @@ function GemSelectClass:PopulateGemList()
120120
if (self.sortGemsBy and gemData.tags[self.sortGemsBy] == true or not self.sortGemsBy) then
121121
local levelRequirement = gemData.grantedEffect.levels[1].levelRequirement or 1
122122
if characterLevel >= levelRequirement or not matchLevel then
123-
if (showAwakened or showAll) and gemData.grantedEffect.plusVersionOf then
124-
if self.skillsTab.showLegacyGems or nonLegacyAwakened[gemData.grantedEffectId] then
123+
if (showExceptional or showAll) and gemData.grantedEffect.plusVersionOf then
124+
if self.skillsTab.showLegacyGems or nonLegacyAwakened[gemData.grantedEffectId] or not gemData.name:match("^Awakened") then
125125
self.gems["Default:" .. gemId] = gemData
126126
end
127127
elseif showNormal or showAll then
@@ -144,13 +144,13 @@ end
144144

145145
function GemSelectClass:FilterSupport(gemId, gemData)
146146
local showSupportTypes = self.skillsTab.showSupportGemTypes
147-
if gemData.grantedEffect.plusVersionOf and not self.skillsTab.showLegacyGems and not nonLegacyAwakened[gemData.grantedEffectId] then
147+
if gemData.name:match("^Awakened") and not self.skillsTab.showLegacyGems and not nonLegacyAwakened[gemData.grantedEffectId] then
148148
return false
149149
end
150150
return (not gemData.grantedEffect.support
151151
or showSupportTypes == "ALL"
152152
or (showSupportTypes == "NORMAL" and not gemData.grantedEffect.plusVersionOf)
153-
or (showSupportTypes == "AWAKENED" and gemData.grantedEffect.plusVersionOf))
153+
or (showSupportTypes == "EXCEPTIONAL" and gemData.grantedEffect.plusVersionOf))
154154
and (self.skillsTab.showAltQualityGems or (not self.skillsTab.showAltQualityGems and self:GetQualityType(gemId) == "Default"))
155155
end
156156

src/Classes/SkillsTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ This hides gems with a minimum level requirement above your character level, pre
5454

5555
local showSupportGemTypeList = {
5656
{ label = "All", show = "ALL" },
57-
{ label = "Non-Awakened", show = "NORMAL" },
58-
{ label = "Awakened", show = "AWAKENED" },
57+
{ label = "Non-Exceptional", show = "NORMAL" },
58+
{ label = "Exceptional", show = "EXCEPTIONAL" },
5959
}
6060

6161
local sortGemTypeList = {

0 commit comments

Comments
 (0)