mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 15:27:20 +08:00
Add clamp back in
This commit is contained in:
parent
1ba01a7e9a
commit
c330093476
@ -130,7 +130,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
|
||||
if (Attributes.SliderCount > 0)
|
||||
{
|
||||
double estimateSliderEndsDropped = Math.Min(Math.Min(countOk + countMeh + countMiss, Attributes.MaxCombo - scoreMaxCombo), estimateDifficultSliders);
|
||||
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 *= sliderNerfFactor;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user