Skip to content

Commit 23af7f0

Browse files
committed
fix round values for less slow
1 parent c006522 commit 23af7f0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Modules/CalcPerform.lua

+1-7
Original file line numberDiff line numberDiff line change
@@ -759,19 +759,13 @@ local function applySlowMagnitude(env)
759759
local slowMagnitude = modDB:Sum("INC", nil, "EnemySlowMagnitude")
760760
local lessSlow = enemyDB:More("MORE", nil, "Slow", "Less Slow")
761761
slowMagnitude = slowMagnitude * lessSlow / 100
762-
763-
-- magic 34% in my current build
764-
-- rare 28% in my current build
765-
-- unique 20% in my current build
766762
for _, value in ipairs(enemyDB:Tabulate("INC", nil, "TemporalChainsActionSpeed", "ApexOfMomentSlow")) do
767763
local mod = value.mod
768764
if lessSlow ~= 0 then
769-
enemyDB:ReplaceMod(mod.name, mod.type, mod.value * lessSlow, mod.source, mod.flags, mod.keywordFlags, unpack(mod))
765+
enemyDB:ReplaceMod(mod.name, mod.type, -round(mod.value * -lessSlow, nil), mod.source, mod.flags, mod.keywordFlags, unpack(mod))
770766
end
771767

772768
enemyDB:ScaleAddMod(modLib.createMod(value.mod.name, value.mod.type, value.mod.value, "Slow Magnitude"), slowMagnitude)
773-
774-
ConPrintTable(value, false)
775769
end
776770
end
777771
end

0 commit comments

Comments
 (0)