make alternate and singletap incompatible with eachother

This commit is contained in:
tsunyoku 2022-07-13 07:35:53 +01:00
parent 886efbcbdf
commit e9b0a3e4fa
2 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,8 @@
#nullable disable
using System;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
@ -14,6 +16,7 @@ public class OsuModAlternate : InputBlockingMod
public override string Acronym => @"AL";
public override string Description => @"Don't use the same key twice in a row!";
public override IconUsage? Icon => FontAwesome.Solid.Keyboard;
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModSingleTap) }).ToArray();
protected override bool CheckCorrectAction(OsuAction action)
{

View File

@ -3,6 +3,8 @@
#nullable disable
using System;
using System.Linq;
using osu.Framework.Graphics;
namespace osu.Game.Rulesets.Osu.Mods
@ -12,6 +14,7 @@ public class OsuModSingleTap : InputBlockingMod
public override string Name => @"Single Tap";
public override string Acronym => @"ST";
public override string Description => @"You must only use one key!";
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAlternate) }).ToArray();
protected override bool CheckCorrectAction(OsuAction action)
{