feat: support MR for catch

This commit is contained in:
MaxOhn
2024-11-13 02:09:19 +01:00
parent baeaeb77de
commit f37b917f76
4 changed files with 34 additions and 11 deletions
+8 -7
View File
@@ -124,15 +124,16 @@ impl GameMods {
mods.iter()
.find_map(|m| match m {
GameMod::MirrorOsu(mirror) => Some(mirror),
GameMod::MirrorOsu(mr) => match mr.reflection.as_deref() {
None => Some(Reflection::Horizontal),
Some("1") => Some(Reflection::Vertical),
Some("2") => Some(Reflection::Both),
Some(_) => Some(Reflection::None),
},
GameMod::MirrorCatch(_) => Some(Reflection::Horizontal),
_ => None,
})
.map_or(Reflection::None, |mr| match mr.reflection.as_deref() {
None => Reflection::Horizontal,
Some("1") => Reflection::Vertical,
Some("2") => Reflection::Both,
Some(_) => Reflection::None,
})
.unwrap_or(Reflection::None)
}
GameModsInner::Intermode(ref mods) => {
if mods.contains(GameModIntermode::HardRock) {