mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +08:00
added slider calc bonus
This commit is contained in:
parent
587cf09d2a
commit
8c6a035369
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user