Skip to content

Commit 9e3c379

Browse files
github-actions[bot]LocalIdentityLocalIdentity
authored
[pob1-port] Remove alternate quality code (#1794)
* Apply changes from PathOfBuildingCommunity/PathOfBuilding#9758 * Fix conflicts --------- Co-authored-by: LocalIdentity <LocalIdentity@users.noreply.github.com> Co-authored-by: LocalIdentity <localidentity2@gmail.com>
1 parent 9906ace commit 9e3c379

3 files changed

Lines changed: 1 addition & 14 deletions

File tree

src/Classes/GemSelectControl.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ function GemSelectClass:PopulateGemList()
105105
end
106106
end
107107

108-
function GemSelectClass:GetQualityType(gemId)
109-
return gemId and gemId:gsub(":.+","") or "Default"
110-
end
111-
112108
function GemSelectClass:FilterSupport(gemId, gemData)
113109
local showSupportTypes = self.skillsTab.showSupportGemTypes
114110
return (not gemData.grantedEffect.support
@@ -354,7 +350,7 @@ function GemSelectClass:UpdateGem(setText, addUndo)
354350
if setText then
355351
self:SetText(self.gemName)
356352
end
357-
self.gemChangeFunc(self.gemId and self.gemId:gsub("%w+:", ""), self:GetQualityType(self.gemId), addUndo and self.gemName ~= self.initialBuf)
353+
self.gemChangeFunc(self.gemId and self.gemId:gsub("%w+:", ""), addUndo and self.gemName ~= self.initialBuf)
358354
end
359355

360356
function GemSelectClass:ScrollSelIntoView()

src/Classes/SkillsTab.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ local sortGemTypeList = {
7070
{ label = "Effective Hit Pool", type = "TotalEHP" },
7171
}
7272

73-
local alternateGemQualityList ={
74-
{ label = "Default", type = "Default" },
75-
{ label = "Anomalous", type = "Alternate1" },
76-
{ label = "Divergent", type = "Alternate2" },
77-
{ label = "Phantasmal", type = "Alternate3" },
78-
}
79-
8073
local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Control", function(self, build)
8174
self.UndoHandler()
8275
self.ControlHost()

src/Modules/CalcSetup.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,6 @@ function calcs.initEnv(build, mode, override, specEnv)
15851585
grantedEffect = grantedEffect,
15861586
level = gemInstance.level,
15871587
quality = gemInstance.quality,
1588-
qualityId = gemInstance.qualityId,
15891588
srcInstance = gemInstance,
15901589
gemData = gemInstance.gemData,
15911590
superseded = false,
@@ -1655,7 +1654,6 @@ function calcs.initEnv(build, mode, override, specEnv)
16551654
grantedEffect = grantedEffect,
16561655
level = gemInstance.level,
16571656
quality = gemInstance.quality,
1658-
qualityId = gemInstance.qualityId,
16591657
srcInstance = gemInstance,
16601658
gemData = gemInstance.gemData,
16611659
}

0 commit comments

Comments
 (0)