Fix tincture quality rounding issue (#8874)

This commit is contained in:
NL
2025-07-21 12:38:07 -04:00
committed by GitHub
parent 81e0b5537f
commit bf3de469ac

View File

@@ -1558,7 +1558,9 @@ function calcs.perform(env, skipEHP)
if item.rarity == "MAGIC" then
tinctureEffectInc = tinctureEffectInc + effectIncMagic
end
local effectMod = (1 + (tinctureEffectInc) / 100) * (1 + (item.quality or 0) / 100)
-- Compute tincture effect multiplier.
-- Tincture effect multiplier is rounded to 2 decimal places before applying it.
local effectMod = math.floor((1 + (tinctureEffectInc) / 100) * (1 + (item.quality or 0) / 100) * 100) / 100
-- same deal as flasks, go look at the comment there
if buffModList[1] then