From d370dbfa272d22f7d5d3c1228d97f002338bcafb Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sat, 3 Nov 2012 13:21:01 -0500 Subject: [PATCH] Show zero scores for trinkets with sockets --- WeightsWatcher.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua index d23f409..b28e384 100644 --- a/WeightsWatcher.lua +++ b/WeightsWatcher.lua @@ -1022,7 +1022,10 @@ function WeightsWatcher.displayItemStats(tooltip, ttname) end end - if not weightsShown and not showDebugInfo then + local bareLink = splitLink(link) + local bareItemInfo = ww_bareItemCache[bareLink] + + if not weightsShown and not (bareItemInfo.nonStats.slot == ww_localizedSlotNames["trinket"] and #(bareItemInfo.sockets) > 0) then return end @@ -1032,8 +1035,6 @@ function WeightsWatcher.displayItemStats(tooltip, ttname) local showEnhancementStats = ww_keyDetectors[ww_vars.options.tooltip.showEnhancementStats]() local showAlternateEnhancements = ww_keyDetectors[ww_vars.options.tooltip.showAlternateEnhancements]() - local bareLink = splitLink(link) - local bareItemInfo = ww_bareItemCache[bareLink] local itemInfo = ww_itemCache[link] local compareMethod, compareLink, compareBareLink, compareLink2, compareBareLink2 = getCompareInfo(ttname, bareLink, bareItemInfo) @@ -1055,7 +1056,7 @@ function WeightsWatcher.displayItemStats(tooltip, ttname) for _, weight in pairs(ww_charVars.activeWeights[class]) do if ww_vars.weightsList[class][weight] then local currentScore = ww_weightCache[class][weight][link] - if showZeroScores or currentScore > 0 then + if showZeroScores or currentScore > 0 or (bareItemInfo.nonStats.slot == ww_localizedSlotNames["trinket"] and #(bareItemInfo.sockets) > 0) then local compareScore, compareScore2 local str = weight if ww_vars.options.tooltip.showClassNames == "Always" or (ww_vars.options.tooltip.showClassNames == "Others" and class ~= WeightsWatcher.player.class) then -- 1.7.9.5