1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

Fix multiplying instead of dividing by scalingFactor

This commit is contained in:
MBmasher 2021-08-25 11:18:21 +10:00
parent 7188a3268f
commit c91feb2968

View File

@ -54,10 +54,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
// We want to nerf objects that can be easily seen within the Flashlight circle radius.
if (i == 0)
smallDistNerf = Math.Min(1.0, jumpDistance / 50.0);
smallDistNerf = Math.Min(1.0, jumpDistance / 75.0);
// We also want to nerf stacks so that only the first object of the stack is accounted for.
double stackNerf = Math.Min(1.0, osuPrevious.JumpDistance * scalingFactor / 50.0);
double stackNerf = Math.Min(1.0, (osuPrevious.JumpDistance / scalingFactor) / 25.0);
result += Math.Pow(0.8, i) * stackNerf * scalingFactor * jumpDistance / cumulativeStrainTime;
}