Lessen repeated angle nerf for objects further back in time

This commit is contained in:
MBmasher 2022-08-26 20:27:31 +10:00
parent d8854413cb
commit 08cb70b093
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current, bool hidd
OsuDifficultyHitObject lastObj = osuCurrent;
int angleRepeatCount = 0;
double angleRepeatCount = 0.0;
// We want to round angles to make abusing the nerf a bit harder.
double initialRoundedAngle = 0.0;
@ -82,8 +82,9 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current, bool hidd
{
double roundedAngle = Math.Round(MathUtils.RadiansToDegrees(currentObj.Angle.Value) / 2.0) * 2.0;
// Objects further back in time should count less for the nerf.
if (roundedAngle == initialRoundedAngle)
angleRepeatCount++;
angleRepeatCount += 1.0 - 0.1 * i;
}
}