mirror of https://github.com/ppy/osu
Refactor score simulator to use GetColumnCount()
This commit is contained in:
parent
ce21235db4
commit
c08a4898b2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue