mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 11:43:22 +08:00
add extra FL guard for safety
This commit is contained in:
parent
dfc6659ae4
commit
3e1424f821
@ -212,6 +212,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty
|
|||||||
|
|
||||||
private double computeFlashlightRating(double flashlightDifficultyValue, Mod[] mods, int totalHits, double overallDifficulty)
|
private double computeFlashlightRating(double flashlightDifficultyValue, Mod[] mods, int totalHits, double overallDifficulty)
|
||||||
{
|
{
|
||||||
|
if (!mods.Any(m => m is OsuModFlashlight))
|
||||||
|
return 0;
|
||||||
|
|
||||||
double flashlightRating = Math.Sqrt(flashlightDifficultyValue) * difficulty_multiplier;
|
double flashlightRating = Math.Sqrt(flashlightDifficultyValue) * difficulty_multiplier;
|
||||||
|
|
||||||
if (mods.Any(m => m is OsuModTouchDevice))
|
if (mods.Any(m => m is OsuModTouchDevice))
|
||||||
|
Loading…
Reference in New Issue
Block a user