Skip to content
This repository was archived by the owner on Oct 21, 2025. It is now read-only.

Commit bc54dc6

Browse files
committed
Added special logic: Issue #112
Added special logic for gamblesprint to make it through to the tooltip. Previous logic filtered any line that had 0% in. Special case added for gamblesprint. Issue #112
1 parent 0583f51 commit bc54dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Modules/ItemTools.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ end
320320

321321
function itemLib.formatModLine(modLine, dbMode)
322322
local line = (not dbMode and modLine.range and itemLib.applyRange(modLine.line, modLine.range, modLine.valueScalar, modLine.corruptedRange)) or modLine.line
323-
if line:match("^%+?0%%? ") or (line:match(" %+?0%%? ") and not line:match("0 to [1-9]")) or line:match(" 0%-0 ") or line:match(" 0 to 0 ") then -- Hack to hide 0-value modifiers
323+
if not line:match("^Gain %d+%% to %d+%%") and (line:match("^%+?0%%? ") or (line:match(" %+?0%%? ") and not line:match("0 to [1-9]")) or line:match(" 0%-0 ") or line:match(" 0 to 0 ")) then -- Hack to hide 0-value modifiers
324324
return
325325
end
326326
local colorCode

0 commit comments

Comments
 (0)