1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 01:23:21 +08:00

Update OsuDifficultyCalculator.cs

This commit is contained in:
Givikap120 2024-09-10 16:05:51 +03:00
parent 3069cdd118
commit 7b72e1cc49

View File

@ -51,13 +51,14 @@ namespace osu.Game.Rulesets.Osu.Difficulty
double sliderFactor = aimRating > 0 ? aimRatingNoSliders / aimRating : 1;
double baseReadingHiddenPerformance = 0;
double baseReadingHiddenPerformance = 0.0;
if (mods.Any(h => h is OsuModHidden))
{
hiddenRating = Math.Sqrt(skills[6].DifficultyValue()) * DIFFICULTY_MULTIPLIER;
baseReadingHiddenPerformance = ReadingHidden.DifficultyToPerformance(hiddenRating);
}
double baseFlashlightPerformance = 0.0;
if (mods.Any(h => h is OsuModFlashlight))
{
baseFlashlightPerformance = Flashlight.DifficultyToPerformance(flashlightRating);