Clamp slider end estimate to 0

This commit is contained in:
apollo-dw
2021-11-11 12:46:22 +00:00
parent 7075108062
commit 95bfb2c69b
2 changed files with 4 additions and 4 deletions

View File

@ -127,10 +127,10 @@ namespace osu.Game.Rulesets.Osu.Difficulty
// We assume 15% of sliders in a map are difficult since there's no way to tell from the performance calculator.
double estimateDifficultSliders = Attributes.SliderCount * 0.15;
double estimateSliderEndsDropped = Math.Min(estimateDifficultSliders, Math.Min(countOk + countMeh + countMiss, Attributes.MaxCombo - scoreMaxCombo));
double estimateSliderEndsDropped = Math.Clamp(Math.Min(countOk + countMeh + countMiss, Attributes.MaxCombo - scoreMaxCombo), 0, estimateDifficultSliders);
double sliderNerfFactor = (1 - Attributes.SliderFactor) * Math.Pow(1 - estimateSliderEndsDropped / estimateDifficultSliders, 3) + Attributes.SliderFactor;
aimValue *= Math.Max(Attributes.SliderFactor, sliderNerfFactor);
aimValue *= sliderNerfFactor;
aimValue *= accuracy;
// It is important to also consider accuracy difficulty when doing that.