1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

added slider calc bonus

This commit is contained in:
Xexxar 2021-09-25 03:04:22 +00:00
parent 587cf09d2a
commit 8c6a035369

View File

@ -29,6 +29,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
private const double wide_angle_multiplier = 1.0;
private const double acute_angle_multiplier = 1.0;
private const double rhythm_variance_multiplier = 1.0;
private const double slider_multiplier = 6.5;
private const double slider_jump_multiplier = 0.875;
protected override double StrainValueOf(DifficultyHitObject current)
{
@ -86,6 +88,14 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
aimStrain += rhythmBonus * rhythm_variance_multiplier; // add in rhythm velocity.
}
if (osuCurrObj.TravelDistance != 0)
{
double sliderBonus = Math.Max(osuCurrObj.TravelDistance, slider_jump_multiplier * Math.Sqrt(osuCurrObj.TravelDistance * osuCurrObj.JumpDistance)) / osuCurrObj.StrainTime;
// Add in slider velocity.
aimStrain += sliderBonus * slider_multiplier;
}
return aimStrain;
}