2023-06-13 14:22:27 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using osu.Game.Rulesets.Mania.Mods;
|
|
|
|
using osu.Game.Rulesets.Mods;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Difficulty
|
|
|
|
{
|
|
|
|
internal class ManiaScoreV1Processor
|
|
|
|
{
|
|
|
|
public int TotalScore { get; private set; }
|
|
|
|
|
|
|
|
public ManiaScoreV1Processor(IReadOnlyList<Mod> mods)
|
|
|
|
{
|
|
|
|
double multiplier = mods.Where(m => m is not (ModHidden or ModHardRock or ModDoubleTime or ModFlashlight or ManiaModFadeIn))
|
|
|
|
.Select(m => m.ScoreMultiplier)
|
2023-06-15 10:55:51 +00:00
|
|
|
.Aggregate(1.0, (c, n) => c * n);
|
2023-06-13 14:22:27 +00:00
|
|
|
|
|
|
|
TotalScore = (int)(1000000 * multiplier);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|