Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/Classes/ItemsTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -707,9 +707,7 @@ holding Shift will put it in the second.]])
end

-- Adding Mod
self.build.treeTab.skipTimeLostJewelProcessing = true
self:AddModComparisonTooltip(tooltip, mod)
self.build.treeTab.skipTimeLostJewelProcessing = false
end
end
end
Expand Down Expand Up @@ -3066,10 +3064,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
for _, compareSlot in pairs(compareSlots) do
if not main.slotOnlyTooltips or (slot and (slot.nodeId == compareSlot.nodeId or slot.slotName == compareSlot.slotName)) or not slot or slot == compareSlot then
local selItem = self.items[compareSlot.selItemId]
-- short term fix for Time-Lost jewel processing
self.build.treeTab.skipTimeLostJewelProcessing = true
local output = calcFunc({ repSlotName = compareSlot.slotName, repItem = item ~= selItem and item or nil})
self.build.treeTab.skipTimeLostJewelProcessing = false
local header
if item == selItem then
header = "^7Removing this item from "..compareSlot.label.." will give you:"
Expand Down
3 changes: 1 addition & 2 deletions src/Classes/TreeTab.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ local TreeTabClass = newClass("TreeTab", "ControlHost", function(self, build)
self.specList[1] = new("PassiveSpec", build, latestTreeVersion)
self:SetActiveSpec(1)
self:SetCompareSpec(1)
self.skipTimeLostJewelProcessing = false

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

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

self.tradeLeaguesList = { }
-- Find Timeless Jewel Button
-- Add button back if/when we figure out how to serch for them again
-- Add button back if/when we figure out how to search for them again
--self.controls.findTimelessJewel = new("ButtonControl", { "LEFT", self.controls.treeSearch, "RIGHT" }, { 8, 0, 150, 20 }, "Find Timeless Jewel", function()
--self:FindTimelessJewel()
--end)
Expand Down
4 changes: 1 addition & 3 deletions src/Modules/CalcSetup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,11 @@ function calcs.buildModListForNode(env, node, incSmallPassiveSkill)
if rad.type == "Other" and rad.nodes[node.id] and rad.nodes[node.id].type ~= "Mastery" then
if rad.item.baseName:find("Time%-Lost") == nil then
rad.func(node, modList, rad.data)
elseif not node.isAttribute and (node.type == "Normal" or node.type == "Notable") and not env.build.treeTab.skipTimeLostJewelProcessing then
elseif not node.isAttribute and (node.type == "Normal" or node.type == "Notable") then
local cache = GlobalCache.cachedData[env.mode].radiusJewelData[rad.nodeId]
if not cache or (cache.hash ~= rad.jewelHash) then
refreshJewelStatCache(env)
end
-- too aggressive, need to account for scaled values and not just size of lists
--and #node.finalModList == #env.build.spec.tree.nodes[node.id].modList then
if node.type == "Normal" and cache and #cache.smallModList > 0 then
modList:AddList(cache.smallModList)
elseif node.type == "Notable" and cache and #cache.notableModList > 0 then
Expand Down