Remove special case for moving catcher sprite

This commit is contained in:
Bartłomiej Dach
2020-05-06 23:25:25 +02:00
parent 6376128bde
commit ed83ac188e
2 changed files with 2 additions and 27 deletions

View File

@ -128,17 +128,7 @@ namespace osu.Game.Rulesets.Catch.Tests
catcherArea.MovableCatcher.SetHyperDashState(2);
});
AddUntilStep("catcher colour is correct", () =>
{
var expected = expectedCatcherColour;
if (expected == Catcher.DEFAULT_HYPER_DASH_COLOUR)
// The expected colour for Catcher.Colour is another colour
// for the default skin, assert with that instead.
expected = Catcher.DEFAULT_CATCHER_HYPER_DASH_COLOUR;
return catcherArea.MovableCatcher.Colour == expected;
});
AddUntilStep("catcher colour is correct", () => catcherArea.MovableCatcher.Colour == expectedCatcherColour);
AddAssert("catcher trails colours are correct", () => trails.HyperDashTrailsColour == expectedCatcherColour);
AddAssert("catcher end-glow colours are correct", () => trails.EndGlowSpritesColour == (expectedEndGlowColour ?? expectedCatcherColour));