mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 16:12:54 +08:00
Merge pull request #19140 from peppy/single-tap-acronym
Change "single tap" mod acronym to not conflict with "strict tracking"
This commit is contained in:
commit
5b9be3e682
@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
public class OsuModSingleTap : InputBlockingMod
|
public class OsuModSingleTap : InputBlockingMod
|
||||||
{
|
{
|
||||||
public override string Name => @"Single Tap";
|
public override string Name => @"Single Tap";
|
||||||
public override string Acronym => @"ST";
|
public override string Acronym => @"SG";
|
||||||
public override string Description => @"You must only use one key!";
|
public override string Description => @"You must only use one key!";
|
||||||
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAlternate) }).ToArray();
|
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAlternate) }).ToArray();
|
||||||
|
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using NUnit.Framework;
|
||||||
|
using osu.Framework.Testing;
|
||||||
|
|
||||||
|
namespace osu.Game.Tests.Visual.Gameplay
|
||||||
|
{
|
||||||
|
[HeadlessTest]
|
||||||
|
public class TestSceneNoConflictingModAcronyms : TestSceneAllRulesetPlayers
|
||||||
|
{
|
||||||
|
protected override void AddCheckSteps()
|
||||||
|
{
|
||||||
|
AddStep("Check all mod acronyms are unique", () =>
|
||||||
|
{
|
||||||
|
var mods = Ruleset.Value.CreateInstance().AllMods;
|
||||||
|
|
||||||
|
IEnumerable<string> acronyms = mods.Select(m => m.Acronym);
|
||||||
|
|
||||||
|
Assert.That(acronyms, Is.Unique);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user