mirror of
https://github.com/ppy/osu
synced 2024-12-28 01:42:57 +00:00
Merge pull request #15758 from GoldenMine0502/speedbug
Make speed skill consider only the shortest movement distance
This commit is contained in:
commit
74db8da11b
@ -154,7 +154,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
if (strainTime < min_speed_bonus)
|
||||
speedBonus = 1 + 0.75 * Math.Pow((min_speed_bonus - strainTime) / speed_balancing_factor, 2);
|
||||
|
||||
double distance = Math.Min(single_spacing_threshold, osuCurrObj.TravelDistance + osuCurrObj.JumpDistance);
|
||||
double distance = Math.Min(single_spacing_threshold, osuCurrObj.TravelDistance + osuCurrObj.MovementDistance);
|
||||
|
||||
return (speedBonus + speedBonus * Math.Pow(distance / single_spacing_threshold, 3.5)) / strainTime;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user