From bdc9318e43fa2117399cb81bde9d41207cada7f2 Mon Sep 17 00:00:00 2001 From: LocalIdentity Date: Fri, 19 Sep 2025 01:42:34 +1000 Subject: [PATCH] Fix stat values for some Tree nodes when using Hulking Form If Hulking form was allocated we were still scaling Notables by 1x and the gsub to scale the mod value would match multiple values in the line and replace them all with the scaled value e.g. 1% increased Damage per 15 Strength 1% would be scaled by 1x and then the gsub would replace both numbers in the line with 1 so it would become 1% increased Damage per 1 Strength --- src/Classes/PassiveTreeView.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Classes/PassiveTreeView.lua b/src/Classes/PassiveTreeView.lua index dba4dadd98..c53022dd92 100644 --- a/src/Classes/PassiveTreeView.lua +++ b/src/Classes/PassiveTreeView.lua @@ -1243,7 +1243,7 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build, incSmallPassi end -- Apply Inc Node scaling from Hulking Form + Radius Jewels only visually - if (incSmallPassiveSkillEffect + localIncEffect) > 0 and (node.type == "Normal" or node.type == "Notable") and not node.isAttribute and not node.ascendancyName and node.mods[i].list then + if ((incSmallPassiveSkillEffect + localIncEffect) > 0 and node.type == "Normal") or (localIncEffect > 0 and node.type == "Notable") and not node.isAttribute and not node.ascendancyName and node.mods[i].list then local scale = 1 + (node.type == "Normal" and incSmallPassiveSkillEffect or 0 + localIncEffect) / 100 local modsList = copyTable(node.mods[i].list) local scaledList = new("ModList") @@ -1259,7 +1259,7 @@ function PassiveTreeViewClass:AddNodeTooltip(tooltip, node, build, incSmallPassi elseif type(mod.value) == "table" then newValue = mod.value.mod.value end - line = line:gsub("%d*%.?%d+", math.abs(newValue)) + line = line:gsub("%d*%.?%d+", math.abs(newValue), 1) -- Only scale first number in line end -- line = line .. " ^8(Effect increased by "..incSmallPassiveSkillEffect.."%)" end