Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions osu.Game.Rulesets.Catch/Difficulty/Evaluators/MovementEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,30 @@ public static double EvaluateDifficultyOf(DifficultyHitObject current)
/ (CatchDifficultyHitObject.NORMALIZED_HALF_CATCHER_WIDTH * 6) / sqrtStrain;
}

// Linear spacing nerf.
double linearSpacingCount = 0;

for (int i = 0; i < Math.Min(current.Index, 10); i++)
{
var catchPrevObj = (CatchDifficultyHitObject)catchCurrent.Previous(i);

// Only same direction movements matter as they do not take any additional inputs.
if (Math.Sign(catchCurrent.DistanceMoved) != Math.Sign(catchPrevObj.DistanceMoved) || catchCurrent.DistanceMoved == 0 || catchPrevObj.DistanceMoved == 0)
break;

double currentSpacing = Math.Abs(catchCurrent.DistanceMoved / catchCurrent.StrainTime);
double prevSpacing = Math.Abs(catchPrevObj.DistanceMoved / catchPrevObj.StrainTime);

double relativeDifference = Math.Abs(currentSpacing / prevSpacing - 1);

if (relativeDifference > 0.05)
break;

linearSpacingCount++;
}

distanceAddition *= Math.Pow(0.7, linearSpacingCount);

// Bonus for edge dashes.
if (catchCurrent.LastObject.DistanceToHyperDash <= 20.0f)
{
Expand Down
Loading