@@ -12,11 +12,6 @@ local m_max = math.max
1212local m_floor = math.floor
1313
1414local toolTipText = " Prefix tag searches with a colon and exclude tags with a dash. e.g. :fire:lightning:-cold:area"
15- local nonLegacyAwakened = {
16- [" SupportAwakenedEmpower" ] = true ,
17- [" SupportAwakenedEnlighten" ] = true ,
18- [" SupportAwakenedEnhance" ] = true ,
19- }
2015local altQualMap = {
2116 [" Default" ] = " " ,
2217 [" Alternate1" ] = " Anomalous " ,
@@ -121,7 +116,7 @@ function GemSelectClass:PopulateGemList()
121116 local levelRequirement = gemData .grantedEffect .levels [1 ].levelRequirement or 1
122117 if characterLevel >= levelRequirement or not matchLevel then
123118 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
119+ if self .skillsTab .showLegacyGems or not gemData .grantedEffect . legacy then
125120 self .gems [" Default:" .. gemId ] = gemData
126121 end
127122 elseif showNormal or showAll then
144139
145140function GemSelectClass :FilterSupport (gemId , gemData )
146141 local showSupportTypes = self .skillsTab .showSupportGemTypes
147- if gemData .name : match ( " ^Awakened " ) and not self .skillsTab .showLegacyGems and not nonLegacyAwakened [ gemData . grantedEffectId ] then
142+ if gemData .grantedEffect . legacy and not self .skillsTab .showLegacyGems then
148143 return false
149144 end
150145 return (not gemData .grantedEffect .support
@@ -615,6 +610,11 @@ function GemSelectClass:AddGemTooltip(gemInstance)
615610 local grantedEffect = gemInstance .gemData .grantedEffect
616611 self .tooltip :AddLine (fontSizeTitle , colorCodes .GEM .. altQualMap [gemInstance .qualityId ].. grantedEffect .name , " FONTIN SC" )
617612 self .tooltip :AddSeparator (10 )
613+ if grantedEffect .legacy then
614+ self .tooltip :AddLine (fontSizeTitle , colorCodes .WARNING .. " Legacy Gem" , " FONTIN SC" )
615+ self .tooltip :AddLine (fontSizeBig , colorCodes .WARNING .. " Gem only exists in Standard League" , " FONTIN SC" )
616+ self .tooltip :AddSeparator (10 )
617+ end
618618 self .tooltip :AddLine (fontSizeBig , " ^x7F7F7F" .. gemInstance .gemData .tagString , " FONTIN SC" )
619619 self :AddCommonGemInfo (gemInstance , grantedEffect , true , secondary and secondary .support and secondary )
620620 end
0 commit comments