mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-28 04:44:06 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
1c5a5a71fa
commit
cf39454991
1 changed files with 4 additions and 7 deletions
|
@ -20,9 +20,7 @@ pub fn init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[skyline::hook(replace = smash::lua2cpp::L2CFighterCommon_is_enable_passive)]
|
#[skyline::hook(replace = smash::lua2cpp::L2CFighterCommon_is_enable_passive)]
|
||||||
pub unsafe fn mod_is_enable_passive(
|
pub unsafe fn mod_is_enable_passive(fighter: &mut L2CFighterCommon) -> L2CValue {
|
||||||
fighter: &mut L2CFighterCommon,
|
|
||||||
) -> L2CValue {
|
|
||||||
let ori = original!()(fighter);
|
let ori = original!()(fighter);
|
||||||
let module_accessor = sv_system::battle_object_module_accessor(fighter.lua_state_agent);
|
let module_accessor = sv_system::battle_object_module_accessor(fighter.lua_state_agent);
|
||||||
if is_training_mode() && is_operation_cpu(module_accessor) {
|
if is_training_mode() && is_operation_cpu(module_accessor) {
|
||||||
|
@ -96,8 +94,7 @@ unsafe fn handle_grnd_tech(
|
||||||
let can_tech = WorkModule::is_enable_transition_term(
|
let can_tech = WorkModule::is_enable_transition_term(
|
||||||
module_accessor,
|
module_accessor,
|
||||||
*FIGHTER_STATUS_TRANSITION_TERM_ID_PASSIVE,
|
*FIGHTER_STATUS_TRANSITION_TERM_ID_PASSIVE,
|
||||||
)
|
) && (second_prev_status != FIGHTER_STATUS_KIND_CATCHED_AIR_FALL_GANON)
|
||||||
&& (second_prev_status != FIGHTER_STATUS_KIND_CATCHED_AIR_FALL_GANON)
|
|
||||||
&& CAN_TECH;
|
&& CAN_TECH;
|
||||||
|
|
||||||
if !can_tech {
|
if !can_tech {
|
||||||
|
|
Loading…
Reference in a new issue