mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 13:22:56 +08:00
Convert estimateSliderEndsDropped assignment into '?:' expression
I would just like to say that I don't know why anyone would ever want this but github told me to do it
This commit is contained in:
parent
b921424461
commit
3b517e03aa
@ -135,10 +135,7 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
||||
if (attributes.SliderCount > 0)
|
||||
{
|
||||
double estimateSliderEndsDropped;
|
||||
if (usingClassicSliderAccuracy)
|
||||
estimateSliderEndsDropped = Math.Clamp(Math.Min(countOk + countMeh + countMiss, attributes.MaxCombo - scoreMaxCombo), 0, estimateDifficultSliders);
|
||||
else
|
||||
estimateSliderEndsDropped = Math.Min(countSliderEndsDropped + countLargeTickMiss, estimateDifficultSliders);
|
||||
estimateSliderEndsDropped = usingClassicSliderAccuracy ? Math.Clamp(Math.Min(countOk + countMeh + countMiss, attributes.MaxCombo - scoreMaxCombo), 0, estimateDifficultSliders) : Math.Min(countSliderEndsDropped + countLargeTickMiss, estimateDifficultSliders);
|
||||
|
||||
double sliderNerfFactor = 0;
|
||||
sliderNerfFactor = (1 - attributes.SliderFactor) * Math.Pow(1 - estimateSliderEndsDropped / estimateDifficultSliders, 3) + attributes.SliderFactor;
|
||||
|
Loading…
Reference in New Issue
Block a user