mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
added rhythm multiplier for strain sections
This commit is contained in:
@ -34,6 +34,12 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
{
|
||||
}
|
||||
|
||||
private double calculateRhythmBonus(double time)
|
||||
{
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
|
||||
protected override double StrainValueOf(DifficultyHitObject current)
|
||||
{
|
||||
if (current.BaseObject is Spinner)
|
||||
@ -66,5 +72,14 @@ namespace osu.Game.Rulesets.Osu.Difficulty.Skills
|
||||
|
||||
return (1 + (speedBonus - 1) * 0.75) * angleBonus * (0.95 + speedBonus * Math.Pow(distance / single_spacing_threshold, 3.5)) / osuCurrent.StrainTime;
|
||||
}
|
||||
protected override double GetTotalCurrentStrain(DifficultyHitObject current)
|
||||
{
|
||||
return base.GetTotalCurrentStrain(current) * calculateRhythmBonus(current.StartTime);
|
||||
}
|
||||
|
||||
protected override double GetPeakStrain(double time)
|
||||
{
|
||||
return base.GetPeakStrain(time) * calculateRhythmBonus(time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user