mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2025-03-16 11:26:11 +00:00
add in ground bounce, ceiling, wall techs
This commit is contained in:
parent
6d89c0bcc7
commit
a577e7874b
1 changed files with 11 additions and 1 deletions
|
@ -14,7 +14,7 @@ pub unsafe fn handle_change_status(fighter: &mut L2CFighterBase, status_kind: L2
|
|||
let module_accessor = sv_system::battle_object_module_accessor(fighter.lua_state_agent);
|
||||
if is_training_mode() && is_operation_cpu(module_accessor) {
|
||||
let status_kind_int = status_kind.try_get_int().unwrap_or(*FIGHTER_STATUS_KIND_WAIT as u64) as i32;
|
||||
if status_kind_int == FIGHTER_STATUS_KIND_DOWN {
|
||||
if status_kind_int == FIGHTER_STATUS_KIND_DOWN || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_D {
|
||||
match MENU.tech_state {
|
||||
TechOption::Random => {
|
||||
let random_statuses = vec![
|
||||
|
@ -41,6 +41,16 @@ pub unsafe fn handle_change_status(fighter: &mut L2CFighterBase, status_kind: L2
|
|||
}
|
||||
_ => (),
|
||||
}
|
||||
} else if status_kind_int == FIGHTER_STATUS_KIND_STOP_WALL || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_LR {
|
||||
if MENU.tech_state != TechOption::None && MENU.tech_state != TechOption::Miss {
|
||||
status_kind = L2CValue::new_int(*FIGHTER_STATUS_KIND_PASSIVE_WALL as u64);
|
||||
unk = L2CValue::new_bool(true);
|
||||
}
|
||||
} else if status_kind_int == FIGHTER_STATUS_KIND_STOP_CEIL || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_U {
|
||||
if MENU.tech_state != TechOption::None && MENU.tech_state != TechOption::Miss {
|
||||
status_kind = L2CValue::new_int(*FIGHTER_STATUS_KIND_PASSIVE_CEIL as u64);
|
||||
unk = L2CValue::new_bool(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue