1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-18 08:32:54 +08:00

add extra FL guard for safety

This commit is contained in:
tsunyoku 2024-12-29 22:20:21 +00:00
parent dfc6659ae4
commit 3e1424f821

View File

@ -212,6 +212,9 @@ namespace osu.Game.Rulesets.Osu.Difficulty
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;
if (mods.Any(m => m is OsuModTouchDevice))