1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 09:07:52 +08:00

Fix tests which were relying on SliderMultiplier==1

This commit is contained in:
Dean Herbert 2023-12-06 13:50:10 +09:00
parent f9dd5bd828
commit 79826dee58
No known key found for this signature in database
3 changed files with 21 additions and 3 deletions

View File

@ -63,7 +63,11 @@ namespace osu.Game.Rulesets.Catch.Tests
BeatmapInfo =
{
Ruleset = ruleset,
Difficulty = new BeatmapDifficulty { CircleSize = 3.6f }
Difficulty = new BeatmapDifficulty
{
CircleSize = 3.6f,
SliderMultiplier = 1,
},
}
};

View File

@ -507,7 +507,11 @@ namespace osu.Game.Rulesets.Osu.Tests
HitObjects = { slider },
BeatmapInfo =
{
Difficulty = new BeatmapDifficulty { SliderTickRate = tickRate ?? 3 },
Difficulty = new BeatmapDifficulty
{
SliderTickRate = tickRate ?? 3,
SliderMultiplier = 1,
},
Ruleset = new OsuRuleset().RulesetInfo,
},
ControlPointInfo = cpi,

View File

@ -251,7 +251,17 @@ namespace osu.Game.Tests.Visual.Gameplay
/// <returns>The <see cref="IBeatmap"/>.</returns>
private IBeatmap createBeatmap(Func<int, TestHitObject> createAction = null)
{
var beatmap = new Beatmap<TestHitObject> { BeatmapInfo = { Ruleset = new OsuRuleset().RulesetInfo } };
var beatmap = new Beatmap<TestHitObject>
{
BeatmapInfo =
{
Difficulty = new BeatmapDifficulty
{
SliderMultiplier = 1
},
Ruleset = new OsuRuleset().RulesetInfo
}
};
for (int i = 0; i < 10; i++)
{