use smash::app::{self}; use crate::common::*; use crate::common::consts::*; static mut DIRECTION: AttackAngle = AttackAngle::UP; pub fn roll_direction() { unsafe { DIRECTION = MENU.attack_angle.get_random(); } } pub unsafe fn mod_get_stick_dir( module_accessor: &mut app::BattleObjectModuleAccessor, ) -> Option { if !is_operation_cpu(module_accessor) { return None; } match DIRECTION { AttackAngle::UP => Some(1.0), AttackAngle::DOWN => Some(-1.0), _ => None, } }