diff --git a/osu.Game.Rulesets.Sentakki.Tests/VisualTestRunner.cs b/osu.Game.Rulesets.Sentakki.Tests/VisualTestRunner.cs index 2393ea51a..be6a8aca6 100644 --- a/osu.Game.Rulesets.Sentakki.Tests/VisualTestRunner.cs +++ b/osu.Game.Rulesets.Sentakki.Tests/VisualTestRunner.cs @@ -10,7 +10,7 @@ public static class VisualTestRunner [STAThread] public static int Main(string[] args) { - using (DesktopGameHost host = Host.GetSuitableHost(@"osu", true)) + using (DesktopGameHost host = Host.GetSuitableDesktopHost(@"osu", new HostOptions { BindIPC = true })) { host.Run(new OsuTestBrowser()); return 0; diff --git a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmapConverter.cs b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmapConverter.cs index 39afc8455..fccdd932a 100644 --- a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmapConverter.cs +++ b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiBeatmapConverter.cs @@ -43,7 +43,7 @@ protected override Beatmap ConvertBeatmap(IBeatmap original, // But we initialize to defaults so HR can adjust HitWindows in a controlled manner // We clone beforehand to avoid altering the original (it really should be readonly :P) convertedBeatmap.BeatmapInfo = convertedBeatmap.BeatmapInfo.Clone(); - convertedBeatmap.BeatmapInfo.BaseDifficulty = new BeatmapDifficulty(); + convertedBeatmap.BeatmapInfo.Difficulty = new BeatmapDifficulty(); return convertedBeatmap; } diff --git a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiPatternGenerator.cs b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiPatternGenerator.cs index 1cbf2a5fe..14539e92b 100644 --- a/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiPatternGenerator.cs +++ b/osu.Game.Rulesets.Sentakki/Beatmaps/SentakkiPatternGenerator.cs @@ -25,7 +25,7 @@ public class SentakkiPatternGenerator public SentakkiPatternGenerator(IBeatmap beatmap) { this.beatmap = beatmap; - var difficulty = beatmap.BeatmapInfo.BaseDifficulty; + var difficulty = beatmap.BeatmapInfo.Difficulty; int seed = ((int)MathF.Round(difficulty.DrainRate + difficulty.CircleSize) * 20) + (int)(difficulty.OverallDifficulty * 41.2) + (int)MathF.Round(difficulty.ApproachRate); rng = new Random(seed); } @@ -195,7 +195,7 @@ private IEnumerable createTapsFromTicks(HitObject original) if (isRepeatSpam) yield break; - var difficulty = beatmap.BeatmapInfo.BaseDifficulty; + var difficulty = beatmap.BeatmapInfo.Difficulty; var controlPointInfo = (LegacyControlPointInfo)beatmap.ControlPointInfo; diff --git a/osu.Game.Rulesets.Sentakki/UI/Components/LiveCounter.cs b/osu.Game.Rulesets.Sentakki/UI/Components/LiveCounter.cs index 27ab738be..95a8b7afb 100644 --- a/osu.Game.Rulesets.Sentakki/UI/Components/LiveCounter.cs +++ b/osu.Game.Rulesets.Sentakki/UI/Components/LiveCounter.cs @@ -74,7 +74,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, float panicDurationMultiplier = 1 * MathF.Pow(0.75f, panicLevel); float beatMagnitude = 0.1f + (0.05f * panicLevel); - if (beatIndex % (int)((int)timingPoint.TimeSignature * Math.Max(panicDurationMultiplier, 0.5f)) == 0) + if (beatIndex % (int)(timingPoint.TimeSignature.Numerator * Math.Max(panicDurationMultiplier, 0.5f)) == 0) this.ScaleTo(1 + beatMagnitude, 200 * panicDurationMultiplier) .Then().ScaleTo(1, 120 * panicDurationMultiplier) .Then().ScaleTo(1 + beatMagnitude, 160 * panicDurationMultiplier) diff --git a/osu.Game.Rulesets.Sentakki/UI/SentakkiResumeOverlay.cs b/osu.Game.Rulesets.Sentakki/UI/SentakkiResumeOverlay.cs index d93d8b907..b4ad4bdd0 100644 --- a/osu.Game.Rulesets.Sentakki/UI/SentakkiResumeOverlay.cs +++ b/osu.Game.Rulesets.Sentakki/UI/SentakkiResumeOverlay.cs @@ -127,7 +127,7 @@ protected override void PopIn() messageText.Text = "Get ready!"; var currentTimingPoint = beatmap.Value.Beatmap.ControlPointInfo.TimingPointAt(beatmap.Value.Track.CurrentTime); - barLength = (int)currentTimingPoint.TimeSignature; + barLength = currentTimingPoint.TimeSignature.Numerator; beatlength = currentTimingPoint.BeatLength; // Reset the countdown, plus a second for preparation diff --git a/osu.Game.Rulesets.Sentakki/osu.Game.Rulesets.Sentakki.csproj b/osu.Game.Rulesets.Sentakki/osu.Game.Rulesets.Sentakki.csproj index 5fb14f707..4d32b956f 100644 --- a/osu.Game.Rulesets.Sentakki/osu.Game.Rulesets.Sentakki.csproj +++ b/osu.Game.Rulesets.Sentakki/osu.Game.Rulesets.Sentakki.csproj @@ -9,7 +9,7 @@ osu.Game.Rulesets.Sentakki - +