Replace hardcoded overrides with the newly introduced Mod properties

This commit is contained in:
Salman Ahmed
2022-03-17 03:40:40 +03:00
parent d90a334853
commit 187059a37f
4 changed files with 8 additions and 2 deletions

View File

@ -31,6 +31,8 @@ namespace osu.Game.Rulesets.Mods
public override double ScoreMultiplier => 1;
public override bool PlayableInMultiplayer => false;
public override Type[] IncompatibleMods => new[] { typeof(ModRateAdjust), typeof(ModTimeRamp) };
[SettingSource("Initial rate", "The starting speed of the track")]

View File

@ -11,6 +11,8 @@ namespace osu.Game.Rulesets.Mods
{
public abstract class ModRateAdjust : Mod, IApplicableToRate
{
public override bool ValidFreeModInMultiplayer => false;
public abstract BindableNumber<double> SpeedChange { get; }
public virtual void ApplyToTrack(ITrack track)

View File

@ -30,6 +30,8 @@ namespace osu.Game.Rulesets.Mods
[SettingSource("Adjust pitch", "Should pitch be adjusted with speed")]
public abstract BindableBool AdjustPitch { get; }
public override bool ValidFreeModInMultiplayer => false;
public override Type[] IncompatibleMods => new[] { typeof(ModRateAdjust), typeof(ModAdaptiveSpeed) };
public override string SettingDescription => $"{InitialRate.Value:N2}x to {FinalRate.Value:N2}x";