1
0
Fork 0
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:
github-actions[bot] 2022-12-13 04:01:32 +00:00 committed by GitHub
parent 1c5a5a71fa
commit cf39454991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {