From 00b3acba4efbc094d08927673fcc4c2ec7a3a1a2 Mon Sep 17 00:00:00 2001 From: jugeeya Date: Wed, 30 Aug 2023 10:00:03 -0700 Subject: [PATCH] Initial --- src/common/menu.rs | 11 ----------- src/training/mash.rs | 10 +--------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/src/common/menu.rs b/src/common/menu.rs index 99d1560..29fa23e 100644 --- a/src/common/menu.rs +++ b/src/common/menu.rs @@ -201,17 +201,6 @@ pub fn handle_final_input_mapping( EVENT_QUEUE.push(Event::menu_open(menu_json)); } }); - (button_mapping(ButtonConfig::PLUS, style, button_presses) - || button_mapping(ButtonConfig::MINUS, style, button_presses)) - .then(|| { - received_input = true; - // Leave menu. - frame_counter::start_counting(*MENU_CLOSE_FRAME_COUNTER); - QUICK_MENU_ACTIVE = false; - let menu_json = app.get_menu_selections(); - set_menu_from_json(&menu_json); - EVENT_QUEUE.push(Event::menu_open(menu_json)); - }); button_mapping(ButtonConfig::X, style, button_presses).then(|| { app.save_defaults(); received_input = true; diff --git a/src/training/mash.rs b/src/training/mash.rs index d1d63b0..d54e8b0 100644 --- a/src/training/mash.rs +++ b/src/training/mash.rs @@ -264,15 +264,6 @@ unsafe fn get_buffered_action( } else { None } - } else if is_in_shieldstun(module_accessor) { - let action = MENU.shieldstun_override.get_random(); - if action != Action::empty() { - Some(action) - } else if MENU.mash_triggers.contains(MashTrigger::SHIELDSTUN) { - Some(MENU.mash_state.get_random()) - } else { - None - } } else if is_in_footstool(module_accessor) { let action = MENU.footstool_override.get_random(); if action != Action::empty() { @@ -312,6 +303,7 @@ unsafe fn get_buffered_action( { Some(MENU.mash_state.get_random()) } else { + // SHIELD handled in shield.rs // LEDGE handled in ledge.rs None }