mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 05:43:18 +08:00
fixed NaN FL pp
This commit is contained in:
parent
30fe7a87a1
commit
e4b50e06e3
@ -101,8 +101,8 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
|||||||
+ cognitionValue) * multiplier;
|
+ cognitionValue) * multiplier;
|
||||||
|
|
||||||
// Fancy stuff for better visual display of FL pp
|
// Fancy stuff for better visual display of FL pp
|
||||||
double flashlightPortion = Math.Pow(flashlightValue, flPower) / Math.Pow(flashlightARValue, flPower);
|
double flashlightPortion = flashlightARValue > 0 ? Math.Pow(flashlightValue, flPower) / Math.Pow(flashlightARValue, flPower) : 0;
|
||||||
double flashlightARPortion = flashlightARValue / (flashlightARValue + readingHDValue);
|
double flashlightARPortion = flashlightARValue > 0 ? flashlightARValue / (flashlightARValue + readingHDValue) : 0;
|
||||||
|
|
||||||
// Filter reading difficulty out of FL
|
// Filter reading difficulty out of FL
|
||||||
double visualFlashlightValue = cognitionValue * flashlightARPortion * flashlightPortion;
|
double visualFlashlightValue = cognitionValue * flashlightARPortion * flashlightPortion;
|
||||||
|
Loading…
Reference in New Issue
Block a user