From a211d276c0f7673215fd4b327d9c9841de6ca8d3 Mon Sep 17 00:00:00 2001 From: Givikap120 Date: Thu, 16 Jan 2025 13:03:30 +0200 Subject: [PATCH] add check for different delta time --- osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs b/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs index 4b1554b1ee..a0f4cb5b3a 100644 --- a/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs +++ b/osu.Game.Rulesets.Osu/Difficulty/Evaluators/AimEvaluator.cs @@ -172,6 +172,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Evaluators double relevantStrainTime = Math.Max(osuLast0Obj.StrainTime, osuLast2Obj.StrainTime); doubletapHitWindow *= DifficultyCalculationUtils.Smoothstep(doubletapHitWindow, relevantStrainTime / 2, relevantStrainTime); + // Don't nerf if difference in straintimes is too big + doubletapHitWindow *= DifficultyCalculationUtils.ReverseLerp(osuLast0Obj.StrainTime, osuCurrObj.StrainTime * 0.4, osuCurrObj.StrainTime * 0.9); + // Divide by 2 because only half of hitwindow is used to abuse consecutive jumps double strainTimeAdjust = doubletappability * doubletapHitWindow / 2;