mirror of
https://github.com/ppy/osu.git
synced 2024-11-13 17:27:48 +08:00
Add two-way legacy conversions for mirror mod
This commit is contained in:
parent
58742afd99
commit
da82556f6b
@ -126,6 +126,9 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
|
|
||||||
if (mods.HasFlag(LegacyMods.Random))
|
if (mods.HasFlag(LegacyMods.Random))
|
||||||
yield return new ManiaModRandom();
|
yield return new ManiaModRandom();
|
||||||
|
|
||||||
|
if (mods.HasFlag(LegacyMods.Mirror))
|
||||||
|
yield return new ManiaModMirror();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override LegacyMods ConvertToLegacyMods(Mod[] mods)
|
public override LegacyMods ConvertToLegacyMods(Mod[] mods)
|
||||||
@ -175,6 +178,10 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
case ManiaModFadeIn _:
|
case ManiaModFadeIn _:
|
||||||
value |= LegacyMods.FadeIn;
|
value |= LegacyMods.FadeIn;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ManiaModMirror _:
|
||||||
|
value |= LegacyMods.Mirror;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user