diff --git a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmap.cs b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmap.cs index 2bdce41a1..035b7b403 100644 --- a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmap.cs +++ b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmap.cs @@ -5,7 +5,6 @@ using osu.Game.Graphics; using osu.Game.Rulesets.Sentakki.Localisation; using osu.Game.Rulesets.Sentakki.Objects; -using osu.Game.Rulesets.UI; using osuTK; namespace osu.Game.Rulesets.Sentakki.Beatmaps @@ -14,11 +13,11 @@ public class SentakkiBeatmap : Beatmap { public override IEnumerable GetStatistics() { - int taps = HitObjects.Count(b => b is Tap); + int taps = HitObjects.Count(b => b is Tap or Slide); int holds = HitObjects.Count(h => h is Hold); int touchHolds = HitObjects.Count(h => h is TouchHold); int touchs = HitObjects.Count(h => h is Touch); - int slides = HitObjects.Count(h => h is Slide); + int slides = HitObjects.OfType().Sum(h => h.SlideInfoList.Count); return new[] { diff --git a/osu.Game.Rulesets.Sentakki/Difficulty/SentakkiDifficultyCalculator.cs b/osu.Game.Rulesets.Sentakki/Difficulty/SentakkiDifficultyCalculator.cs index 3a79ee75a..8ff9f20b0 100644 --- a/osu.Game.Rulesets.Sentakki/Difficulty/SentakkiDifficultyCalculator.cs +++ b/osu.Game.Rulesets.Sentakki/Difficulty/SentakkiDifficultyCalculator.cs @@ -5,7 +5,6 @@ using osu.Game.Rulesets.Difficulty.Preprocessing; using osu.Game.Rulesets.Difficulty.Skills; using osu.Game.Rulesets.Mods; -using osu.Game.Rulesets.Sentakki.Objects; namespace osu.Game.Rulesets.Sentakki.Difficulty { @@ -18,29 +17,7 @@ public SentakkiDifficultyCalculator(IRulesetInfo ruleset, IWorkingBeatmap beatma protected override DifficultyAttributes CreateDifficultyAttributes(IBeatmap beatmap, Mod[] mods, Skill[] skills, double clockRate) { - int maxCombo = 0; - - foreach (SentakkiHitObject h in beatmap.HitObjects) - { - switch (h) - { - case Slide slide: - maxCombo += 1 + slide.SlideInfoList.Count + (slide.Break ? 4 : 0); - break; - - case Hold hold: - maxCombo += 2 + (hold.Break ? 8 : 0); - break; - - case Tap tap: - maxCombo += 1 + (tap.Break ? 4 : 0); - break; - - default: - ++maxCombo; - break; - } - } + int maxCombo = beatmap.GetMaxCombo(); return new DifficultyAttributes {