mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
6f6ce58a88
commit
ac81ef810f
3 changed files with 16 additions and 16 deletions
|
@ -10,10 +10,10 @@ pub mod combo;
|
||||||
pub mod directional_influence;
|
pub mod directional_influence;
|
||||||
pub mod frame_counter;
|
pub mod frame_counter;
|
||||||
pub mod ledge;
|
pub mod ledge;
|
||||||
pub mod throw;
|
|
||||||
pub mod sdi;
|
pub mod sdi;
|
||||||
pub mod shield;
|
pub mod shield;
|
||||||
pub mod tech;
|
pub mod tech;
|
||||||
|
pub mod throw;
|
||||||
|
|
||||||
mod air_dodge_direction;
|
mod air_dodge_direction;
|
||||||
mod attack_angle;
|
mod attack_angle;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
use crate::common::*;
|
use crate::common::*;
|
||||||
use crate::training::frame_counter;
|
use crate::training::frame_counter;
|
||||||
use crate::training::ledge;
|
use crate::training::ledge;
|
||||||
use crate::training::throw;
|
|
||||||
use crate::training::mash;
|
use crate::training::mash;
|
||||||
use crate::training::sdi;
|
use crate::training::sdi;
|
||||||
use crate::training::shield_tilt;
|
use crate::training::shield_tilt;
|
||||||
|
use crate::training::throw;
|
||||||
use smash::app::{self, lua_bind::*};
|
use smash::app::{self, lua_bind::*};
|
||||||
use smash::lib::lua_const::*;
|
use smash::lib::lua_const::*;
|
||||||
|
|
||||||
|
|
|
@ -83,9 +83,8 @@ fn roll_throw_case() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub unsafe fn get_command_flag_throw_direction(
|
pub unsafe fn get_command_flag_throw_direction(
|
||||||
module_accessor: &mut app::BattleObjectModuleAccessor
|
module_accessor: &mut app::BattleObjectModuleAccessor,
|
||||||
) -> i32 {
|
) -> i32 {
|
||||||
|
|
||||||
if !is_operation_cpu(module_accessor) {
|
if !is_operation_cpu(module_accessor) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -102,7 +101,8 @@ pub unsafe fn get_command_flag_throw_direction(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !WorkModule::is_enable_transition_term( // If you can't throw right now, don't bother
|
if !WorkModule::is_enable_transition_term(
|
||||||
|
// If you can't throw right now, don't bother
|
||||||
module_accessor,
|
module_accessor,
|
||||||
*FIGHTER_STATUS_TRANSITION_TERM_ID_CONT_THROW_HI,
|
*FIGHTER_STATUS_TRANSITION_TERM_ID_CONT_THROW_HI,
|
||||||
) {
|
) {
|
||||||
|
@ -133,7 +133,7 @@ pub unsafe fn get_command_flag_throw_direction(
|
||||||
|
|
||||||
// (this conditional would need to be changed to speed up pummelling)
|
// (this conditional would need to be changed to speed up pummelling)
|
||||||
if StatusModule::status_kind(module_accessor) as i32 == *FIGHTER_STATUS_KIND_CATCH_WAIT {
|
if StatusModule::status_kind(module_accessor) as i32 == *FIGHTER_STATUS_KIND_CATCH_WAIT {
|
||||||
let status = *FIGHTER_STATUS_KIND_CATCH_ATTACK;//.unwrap_or(0);
|
let status = *FIGHTER_STATUS_KIND_CATCH_ATTACK; //.unwrap_or(0);
|
||||||
StatusModule::change_status_request_from_script(module_accessor, status, true);
|
StatusModule::change_status_request_from_script(module_accessor, status, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue