Refactor score simulator to use GetColumnCount()

This commit is contained in:
Dan Balasescu 2024-03-28 22:58:39 +09:00
parent ce21235db4
commit c08a4898b2
No known key found for this signature in database
1 changed files with 1 additions and 6 deletions

View File

@ -51,13 +51,8 @@ public double GetLegacyScoreMultiplier(IReadOnlyList<Mod> mods, LegacyBeatmapCon
return multiplier;
// Apply key mod multipliers.
int originalColumns = ManiaBeatmapConverter.GetColumnCount(difficulty);
int actualColumns = originalColumns;
actualColumns = mods.OfType<ManiaKeyMod>().SingleOrDefault()?.KeyCount ?? actualColumns;
if (mods.Any(m => m is ManiaModDualStages))
actualColumns *= 2;
int actualColumns = ManiaBeatmapConverter.GetColumnCount(difficulty, mods);
if (actualColumns > originalColumns)
multiplier *= 0.9;