Fix incorrect tooltip when crafting some flask mods (#9164)

When crafting mods on items that used a `less x` mod, we flipped the order of the values so they would smoothly transition between tiers instead of jumping
e.g. (45-49)% less Duration, (40-44)% less Duration, (35-39)% less Duration
We didn't update the range slider tooltip though so it was still jumping and was not representing the value on the item

Co-authored-by: LocalIdentity <localidentity2@gmail.com>
This commit is contained in:
LocalIdentity
2025-11-05 10:37:54 +11:00
committed by GitHub
parent 206482928a
commit dab3f7c31b

View File

@@ -852,6 +852,7 @@ holding Shift will put it in the second.]])
tooltip:Clear()
elseif tooltip:CheckForUpdate(val, modList) then
local index, range = slider:GetDivVal(val)
range = verifyRange(range, index, drop)
local modId = modList[index]
local mod = self.displayItem.affixes[modId]
for _, line in ipairs(mod) do