mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 01:47:30 +09:00
Fix circle-only map NaN values
This commit is contained in:
parent
95bfb2c69b
commit
1ba01a7e9a
@ -127,10 +127,13 @@ 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.
|
// 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 estimateDifficultSliders = Attributes.SliderCount * 0.15;
|
||||||
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;
|
if (Attributes.SliderCount > 0)
|
||||||
aimValue *= sliderNerfFactor;
|
{
|
||||||
|
double estimateSliderEndsDropped = Math.Min(Math.Min(countOk + countMeh + countMiss, Attributes.MaxCombo - scoreMaxCombo), estimateDifficultSliders);
|
||||||
|
double sliderNerfFactor = (1 - Attributes.SliderFactor) * Math.Pow(1 - estimateSliderEndsDropped / estimateDifficultSliders, 3) + Attributes.SliderFactor;
|
||||||
|
aimValue *= sliderNerfFactor;
|
||||||
|
}
|
||||||
|
|
||||||
aimValue *= accuracy;
|
aimValue *= accuracy;
|
||||||
// It is important to also consider accuracy difficulty when doing that.
|
// It is important to also consider accuracy difficulty when doing that.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user