1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 16:10:48 +08:00

Merge pull request #25823 from cl8n/taiko-random-mod-legacy-conversion

Don't convert TaikoModRandom to/from legacy mods
This commit is contained in:
Dan Balasescu
2023-12-18 18:27:35 +09:00
committed by GitHub
Unverified
2 changed files with 0 additions and 14 deletions
@@ -25,7 +25,6 @@ namespace osu.Game.Rulesets.Taiko.Tests
new object[] { LegacyMods.HalfTime, new[] { typeof(TaikoModHalfTime) } },
new object[] { LegacyMods.Flashlight, new[] { typeof(TaikoModFlashlight) } },
new object[] { LegacyMods.Autoplay, new[] { typeof(TaikoModAutoplay) } },
new object[] { LegacyMods.Random, new[] { typeof(TaikoModRandom) } },
new object[] { LegacyMods.HardRock | LegacyMods.DoubleTime, new[] { typeof(TaikoModHardRock), typeof(TaikoModDoubleTime) } },
new object[] { LegacyMods.ScoreV2, new[] { typeof(ModScoreV2) } },
};
-13
View File
@@ -115,23 +115,10 @@ namespace osu.Game.Rulesets.Taiko
if (mods.HasFlagFast(LegacyMods.Relax))
yield return new TaikoModRelax();
if (mods.HasFlagFast(LegacyMods.Random))
yield return new TaikoModRandom();
if (mods.HasFlagFast(LegacyMods.ScoreV2))
yield return new ModScoreV2();
}
public override LegacyMods ConvertToLegacyMods(Mod[] mods)
{
var value = base.ConvertToLegacyMods(mods);
if (mods.OfType<TaikoModRandom>().Any())
value |= LegacyMods.Random;
return value;
}
public override IEnumerable<Mod> GetModsFor(ModType type)
{
switch (type)