@@ -1859,11 +1859,8 @@ function ItemsTabClass:AddModComparisonTooltip(tooltip, mod)
18591859 newItem :BuildAndParseRaw ()
18601860
18611861 local calcFunc = self .build .calcsTab :GetMiscCalculator ()
1862- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
1863- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
1864- local outputBase = calcFunc ({ repSlotName = slotName , repItem = self .displayItem }, {})
1865- local outputNew = calcFunc ({ repSlotName = slotName , repItem = newItem }, {})
1866- GlobalCache .useFullDPS = storedGlobalCacheDPSView
1862+ local outputBase = calcFunc ({ repSlotName = slotName , repItem = self .displayItem })
1863+ local outputNew = calcFunc ({ repSlotName = slotName , repItem = newItem })
18671864 self .build :AddStatComparesToTooltip (tooltip , outputBase , outputNew , " \n Adding this mod will give: " )
18681865end
18691866
@@ -2288,11 +2285,8 @@ function ItemsTabClass:AppendAnointTooltip(tooltip, node, actionText)
22882285 header = " ^7" .. actionText .. " nothing will give you: "
22892286 end
22902287 local calcFunc = self .build .calcsTab :GetMiscCalculator ()
2291- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
2292- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
2293- local outputBase = calcFunc ({ repSlotName = " Amulet" , repItem = self .displayItem }, {})
2294- local outputNew = calcFunc ({ repSlotName = " Amulet" , repItem = self :anointItem (node ) }, {})
2295- GlobalCache .useFullDPS = storedGlobalCacheDPSView
2288+ local outputBase = calcFunc ({ repSlotName = " Amulet" , repItem = self .displayItem })
2289+ local outputNew = calcFunc ({ repSlotName = " Amulet" , repItem = self :anointItem (node ) })
22962290 local numChanges = self .build :AddStatComparesToTooltip (tooltip , outputBase , outputNew , header )
22972291 if node and numChanges == 0 then
22982292 tooltip :AddLine (14 , " ^7" .. actionText .. " " .. node .dn .. " changes nothing." )
@@ -2303,11 +2297,8 @@ end
23032297--- @param tooltip table @The tooltip to append into
23042298--- @param node table @The passive tree node that will be added
23052299function ItemsTabClass :AppendAddedNotableTooltip (tooltip , node )
2306- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
2307- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
23082300 local calcFunc , calcBase = self .build .calcsTab :GetMiscCalculator ()
2309- local outputNew = calcFunc ({ addNodes = { [node ] = true } }, { requirementsItems = true , requirementsGems = true , skills = true })
2310- GlobalCache .useFullDPS = storedGlobalCacheDPSView
2301+ local outputNew = calcFunc ({ addNodes = { [node ] = true } })
23112302 local numChanges = self .build :AddStatComparesToTooltip (tooltip , calcBase , outputNew , " ^7Allocating " .. node .dn .. " will give you: " )
23122303 if numChanges == 0 then
23132304 tooltip :AddLine (14 , " ^7Allocating " .. node .dn .. " changes nothing." )
@@ -3650,10 +3641,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
36503641 tooltip :AddLine (14 , stat )
36513642 end
36523643 end
3653- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
3654- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
3655- local output = calcFunc ({ toggleFlask = item }, {})
3656- GlobalCache .useFullDPS = storedGlobalCacheDPSView
3644+ local output = calcFunc ({ toggleFlask = item })
36573645 local header
36583646 if self .build .calcsTab .mainEnv .flasks [item ] then
36593647 header = " ^7Deactivating this flask will give you:"
@@ -3689,10 +3677,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
36893677 tooltip :AddLine (14 , stat )
36903678 end
36913679 end
3692- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
3693- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
3694- local output = calcFunc ({ toggleTincture = item }, {})
3695- GlobalCache .useFullDPS = storedGlobalCacheDPSView
3680+ local output = calcFunc ({ toggleTincture = item })
36963681 local header
36973682 if self .build .calcsTab .mainEnv .tinctures [item ] then
36983683 header = " ^7Deactivating this tincture will give you:"
@@ -3739,10 +3724,7 @@ function ItemsTabClass:AddItemTooltip(tooltip, item, slot, dbMode)
37393724 for _ , compareSlot in pairs (compareSlots ) do
37403725 if not main .slotOnlyTooltips or (slot and (slot .nodeId == compareSlot .nodeId or slot .slotName == compareSlot .slotName )) or not slot or slot == compareSlot then
37413726 local selItem = self .items [compareSlot .selItemId ]
3742- local storedGlobalCacheDPSView = GlobalCache .useFullDPS
3743- GlobalCache .useFullDPS = GlobalCache .numActiveSkillInFullDPS > 0
3744- local output = calcFunc ({ repSlotName = compareSlot .slotName , repItem = item ~= selItem and item or nil }, {})
3745- GlobalCache .useFullDPS = storedGlobalCacheDPSView
3727+ local output = calcFunc ({ repSlotName = compareSlot .slotName , repItem = item ~= selItem and item or nil })
37463728 local header
37473729 if item == selItem then
37483730 header = " ^7Removing this item from " .. compareSlot .label .. " will give you:"
0 commit comments