Skip to content

Commit 6dbebbf

Browse files
committed
Force negative values in reduction patterns (#223 - 1)
1 parent 64ff9b6 commit 6dbebbf

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

libs/StatLogic/StatLogic.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,6 +2129,9 @@ do
21292129
for i, valuePosition in ipairs(valuePositions) do
21302130
local statGroup = statList[i]
21312131
local value, position = unpack(valuePosition)
2132+
if statList.reduction then
2133+
value = value * -1
2134+
end
21322135
AddStat(statGroups, statGroup, value, itemLink, color, position)
21332136
end
21342137
if statList.ignoreSum then

libs/StatLogic/locales/GlobalPatterns.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ addon.ReforgeSuffix = "%s*" .. REFORGE_TOOLTIP_LINE:format(0, "", "", ".*"):utf8
143143
-------------------------
144144
---@class SubstitutionEntry
145145
---@field ignoreSum boolean?
146+
---@field reduction boolean?
146147
---@field [number] Stat[] | false
147148
---@type { [string]: SubstitutionEntry }
148149
addon.StatIDLookup = setmetatable({}, lowerMT)

0 commit comments

Comments
 (0)