1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 01:46:05 +08:00

add check for different delta time

This commit is contained in:
Givikap120 2025-01-16 13:03:30 +02:00
parent f4de5edecf
commit a211d276c0

View File

@ -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;