mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Fix taiko-specific missing cases
This commit is contained in:
@ -92,6 +92,19 @@ namespace osu.Game.Rulesets.Taiko
|
|||||||
|
|
||||||
if (mods.HasFlag(LegacyMods.Relax))
|
if (mods.HasFlag(LegacyMods.Relax))
|
||||||
yield return new TaikoModRelax();
|
yield return new TaikoModRelax();
|
||||||
|
|
||||||
|
if (mods.HasFlag(LegacyMods.Random))
|
||||||
|
yield return new TaikoModRandom();
|
||||||
|
}
|
||||||
|
|
||||||
|
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)
|
public override IEnumerable<Mod> GetModsFor(ModType type)
|
||||||
|
Reference in New Issue
Block a user