1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Declare Touch Device incompatible with Autopilot

With Autopilot active, Touch Device no longer matters.
This commit is contained in:
Bartłomiej Dach 2023-11-02 22:27:16 +01:00
parent 0dd0a84312
commit 8e9006b5d5
No known key found for this signature in database
3 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,8 @@ namespace osu.Game.Rulesets.Osu.Mods
typeof(ModNoFail),
typeof(ModAutoplay),
typeof(OsuModMagnetised),
typeof(OsuModRepel)
typeof(OsuModRepel),
typeof(ModTouchDevice)
};
public bool PerformFail() => false;

View File

@ -1,11 +1,14 @@
// 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.
using System;
using System.Linq;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Osu.Mods
{
public class OsuModTouchDevice : ModTouchDevice
{
public override Type[] IncompatibleMods => base.IncompatibleMods.Concat(new[] { typeof(OsuModAutopilot) }).ToArray();
}
}

View File

@ -14,6 +14,6 @@ namespace osu.Game.Rulesets.Mods
public sealed override double ScoreMultiplier => 1;
public sealed override ModType Type => ModType.System;
public sealed override bool AlwaysValidForSubmission => true;
public sealed override Type[] IncompatibleMods => new[] { typeof(ICreateReplayData) };
public override Type[] IncompatibleMods => new[] { typeof(ICreateReplayData) };
}
}