Fix discarding too many RNG values, and add test

This commit is contained in:
smoogipoo
2018-06-13 18:39:26 +09:00
parent cbb883614a
commit cafdbc2d25
4 changed files with 108 additions and 4 deletions

View File

@ -17,6 +17,7 @@ namespace osu.Game.Rulesets.Catch.Tests
protected override string ResourceAssembly => "osu.Game.Rulesets.Catch";
[TestCase("basic"), Ignore("See: https://github.com/ppy/osu/issues/2232")]
[TestCase("spinner")]
public new void Test(string name)
{
base.Test(name);
@ -35,6 +36,17 @@ namespace osu.Game.Rulesets.Catch.Tests
};
}
}
else if (hitObject is BananaShower shower)
{
foreach (var nested in shower.NestedHitObjects)
{
yield return new ConvertValue
{
StartTime = nested.StartTime,
Position = ((CatchHitObject)nested).X * CatchPlayfield.BASE_WIDTH
};
}
}
else
{
yield return new ConvertValue