From fbfb96d0d933f0dbc09dc3b32c59fbd4aedcf1b4 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Fri, 20 Oct 2023 13:12:54 +0900 Subject: [PATCH] Explicitly specify NC/DC as mods valid for PP --- .../Processors/ScorePerformanceProcessor.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs b/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs index 5ecafbf2..584d2e62 100644 --- a/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs +++ b/osu.Server.Queues.ScoreStatisticsProcessor/Processors/ScorePerformanceProcessor.cs @@ -163,6 +163,13 @@ public static bool AllModsValidForPerformance(Mod[] mods) case ManiaModKey10: return false; + case ModNightcore nc: + // Disallow non-default rate adjustments for now. + if (!nc.SpeedChange.IsDefault) + return false; + + continue; + case ModDoubleTime dt: // Disallow non-default rate adjustments for now. if (!dt.SpeedChange.IsDefault) @@ -170,6 +177,13 @@ public static bool AllModsValidForPerformance(Mod[] mods) continue; + case ModDaycore dc: + // Disallow non-default rate adjustments for now. + if (!dc.SpeedChange.IsDefault) + return false; + + continue; + case ModHalfTime ht: // Disallow non-default rate adjustments for now. if (!ht.SpeedChange.IsDefault)