diff --git a/src/common/consts.rs b/src/common/consts.rs index b7efc51..130cc44 100644 --- a/src/common/consts.rs +++ b/src/common/consts.rs @@ -260,6 +260,7 @@ pub enum MashInNeutral { pub struct TrainingModpackMenu { pub hitbox_vis: HitboxVisualization, pub di_state: Direction, + pub left_stick: Direction, // Currently only used for air dodge direction pub mash_attack_state: Attack, pub ledge_state: LedgeOption, pub tech_state: TechOption, diff --git a/src/common/mod.rs b/src/common/mod.rs index 043d45b..daffe24 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -8,6 +8,7 @@ use smash::lib::lua_const::*; pub static mut MENU_STRUCT: consts::TrainingModpackMenu = consts::TrainingModpackMenu { hitbox_vis: HitboxVisualization::On, di_state: Direction::None, + left_stick: Direction::None, mash_attack_state: Attack::Nair, ledge_state: LedgeOption::Random, tech_state: TechOption::Random, diff --git a/src/training/left_stick.rs b/src/training/left_stick.rs index fa3c39e..df01880 100644 --- a/src/training/left_stick.rs +++ b/src/training/left_stick.rs @@ -44,7 +44,7 @@ unsafe fn get_angle(module_accessor: &mut app::BattleObjectModuleAccessor) -> f6 return ANGLE_NONE; } - STICK_DIRECTION = MENU.di_state; + STICK_DIRECTION = MENU.left_stick; let mut angle: f64 = pick_angle(STICK_DIRECTION); if angle == ANGLE_NONE {