1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 18:20:47 +08:00

make alternate and singletap incompatible with eachother

This commit is contained in:
tsunyoku
2022-07-13 07:35:53 +01:00
Unverified
parent 886efbcbdf
commit e9b0a3e4fa
2 changed files with 6 additions and 0 deletions
@@ -3,6 +3,8 @@
#nullable disable
using System;
using System.Linq;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
@@ -14,6 +16,7 @@ namespace osu.Game.Rulesets.Osu.Mods
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)
{
@@ -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 @@ namespace osu.Game.Rulesets.Osu.Mods
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)
{