-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ppy#16475 from bdach/taiko-not-completing
Fix gameplay not completing on some taiko maps
- Loading branch information
Showing
3 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
osu.Game.Rulesets.Taiko.Tests/TestSceneDrumRollJudgements.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// 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.Linq; | ||
using NUnit.Framework; | ||
using osu.Game.Beatmaps; | ||
using osu.Game.Rulesets.Taiko.Objects; | ||
|
||
namespace osu.Game.Rulesets.Taiko.Tests | ||
{ | ||
public class TestSceneDrumRollJudgements : TestSceneTaikoPlayer | ||
{ | ||
[Test] | ||
public void TestStrongDrumRollFullyJudgedOnKilled() | ||
{ | ||
AddUntilStep("gameplay finished", () => Player.ScoreProcessor.HasCompleted.Value); | ||
AddAssert("all judgements are misses", () => Player.Results.All(r => r.Type == r.Judgement.MinResult)); | ||
} | ||
|
||
protected override bool Autoplay => false; | ||
|
||
protected override IBeatmap CreateBeatmap(RulesetInfo ruleset) => new Beatmap<TaikoHitObject> | ||
{ | ||
BeatmapInfo = { Ruleset = new TaikoRuleset().RulesetInfo }, | ||
HitObjects = | ||
{ | ||
new DrumRoll | ||
{ | ||
StartTime = 1000, | ||
Duration = 1000, | ||
IsStrong = true | ||
} | ||
} | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters