Disallow selecting DT/HT/WU/WD as allowable freemods

This commit is contained in:
smoogipoo 2021-02-01 13:35:48 +09:00
parent 797a810287
commit e02e3cf19a

View File

@ -57,7 +57,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
freeModSelectOverlay = new FreeModSelectOverlay
{
SelectedMods = { BindTarget = freeMods },
IsValidMod = isValidMod,
IsValidMod = isValidFreeMod,
};
}
@ -147,6 +147,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
}
private bool isValidMod(Mod mod) => !(mod is ModAutoplay) && (mod as MultiMod)?.Mods.Any(mm => mm is ModAutoplay) != true;
private bool isValidFreeMod(Mod mod) => isValidMod(mod) && !(mod is ModRateAdjust) && !(mod is ModTimeRamp);
}
public class FooterButtonFreeMods : FooterButton, IHasCurrentValue<IReadOnlyList<Mod>>