Add failing test cases

This commit is contained in:
Bartłomiej Dach
2021-01-31 20:18:12 +01:00
parent fec3bd898e
commit 81b052b866
2 changed files with 84 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Mods
/// <summary>
/// The point in the beatmap at which the final ramping rate should be reached.
/// </summary>
private const double final_rate_progress = 0.75f;
public const double FINAL_RATE_PROGRESS = 0.75f;
[SettingSource("Initial rate", "The starting speed of the track")]
public abstract BindableNumber<double> InitialRate { get; }
@ -71,7 +71,7 @@ namespace osu.Game.Rulesets.Mods
SpeedChange.SetDefault();
beginRampTime = beatmap.HitObjects.FirstOrDefault()?.StartTime ?? 0;
finalRateTime = final_rate_progress * (lastObject?.GetEndTime() ?? 0);
finalRateTime = FINAL_RATE_PROGRESS * (lastObject?.GetEndTime() ?? 0);
}
public virtual void Update(Playfield playfield)