Skip to content

Commit 23c9ffc

Browse files
authored
Fix comparison tooltips for builds with Time-Lost Jewels (#709)
* remove old flag to skip processing time lost jewels on comparison * spellchecker
1 parent a7d012b commit 23c9ffc

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

src/Classes/ItemsTab.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,9 +707,7 @@ holding Shift will put it in the second.]])
707707
end
708708

709709
-- Adding Mod
710-
self.build.treeTab.skipTimeLostJewelProcessing = true
711710
self:AddModComparisonTooltip(tooltip, mod)
712-
self.build.treeTab.skipTimeLostJewelProcessing = false
713711
end
714712
end
715713
end
@@ -3066,10 +3064,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
30663064
for _, compareSlot in pairs(compareSlots) do
30673065
if not main.slotOnlyTooltips or (slot and (slot.nodeId == compareSlot.nodeId or slot.slotName == compareSlot.slotName)) or not slot or slot == compareSlot then
30683066
local selItem = self.items[compareSlot.selItemId]
3069-
-- short term fix for Time-Lost jewel processing
3070-
self.build.treeTab.skipTimeLostJewelProcessing = true
30713067
local output = calcFunc({ repSlotName = compareSlot.slotName, repItem = item ~= selItem and item or nil})
3072-
self.build.treeTab.skipTimeLostJewelProcessing = false
30733068
local header
30743069
if item == selItem then
30753070
header = "^7Removing this item from "..compareSlot.label.." will give you:"

src/Classes/TreeTab.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
3232
self.specList[1] = new("PassiveSpec", build, latestTreeVersion)
3333
self:SetActiveSpec(1)
3434
self:SetCompareSpec(1)
35-
self.skipTimeLostJewelProcessing = false
3635

3736
self.anchorControls = new("Control", nil, {0, 0, 0, 20})
3837

@@ -162,7 +161,7 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
162161

163162
self.tradeLeaguesList = { }
164163
-- Find Timeless Jewel Button
165-
-- Add button back if/when we figure out how to serch for them again
164+
-- Add button back if/when we figure out how to search for them again
166165
--self.controls.findTimelessJewel = new("ButtonControl", { "LEFT", self.controls.treeSearch, "RIGHT" }, { 8, 0, 150, 20 }, "Find Timeless Jewel", function()
167166
--self:FindTimelessJewel()
168167
--end)

src/Modules/CalcSetup.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,11 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
126126
if rad.type == "Other" and rad.nodes[node.id] and rad.nodes[node.id].type ~= "Mastery" then
127127
if rad.item.baseName:find("Time%-Lost") == nil then
128128
rad.func(node, modList, rad.data)
129-
elseif not node.isAttribute and (node.type == "Normal" or node.type == "Notable") and not env.build.treeTab.skipTimeLostJewelProcessing then
129+
elseif not node.isAttribute and (node.type == "Normal" or node.type == "Notable") then
130130
local cache = GlobalCache.cachedData[env.mode].radiusJewelData[rad.nodeId]
131131
if not cache or (cache.hash ~= rad.jewelHash) then
132132
refreshJewelStatCache(env)
133133
end
134-
-- too aggressive, need to account for scaled values and not just size of lists
135-
--and #node.finalModList == #env.build.spec.tree.nodes[node.id].modList then
136134
if node.type == "Normal" and cache and #cache.smallModList > 0 then
137135
modList:AddList(cache.smallModList)
138136
elseif node.type == "Notable" and cache and #cache.notableModList > 0 then

0 commit comments

Comments
 (0)