1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-24 19:04:16 +00:00
This commit is contained in:
jugeeya 2020-08-21 15:17:48 -07:00
commit aa757da61d
2 changed files with 7 additions and 7 deletions

View file

@ -75,7 +75,7 @@ pub unsafe fn save_states(module_accessor: &mut app::BattleObjectModuleAccessor,
return;
}
if category != FIGHTER_PAD_COMMAND_CATEGORY1 {
if category != *FIGHTER_PAD_COMMAND_CATEGORY1 {
return;
}

View file

@ -42,8 +42,8 @@ unsafe fn mod_handle_change_status(
.unwrap_or(*FIGHTER_STATUS_KIND_WAIT as u64) as i32;
// Ground Tech
if status_kind_int == FIGHTER_STATUS_KIND_DOWN
|| status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_D
if status_kind_int == *FIGHTER_STATUS_KIND_DOWN
|| status_kind_int == *FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_D
{
let state: TechFlags = MENU.tech_state.get_random();
@ -71,8 +71,8 @@ unsafe fn mod_handle_change_status(
}
// Wall Tech
if status_kind_int == FIGHTER_STATUS_KIND_STOP_WALL
|| status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_LR
if status_kind_int == *FIGHTER_STATUS_KIND_STOP_WALL
|| status_kind_int == *FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_LR
{
*status_kind = FIGHTER_STATUS_KIND_PASSIVE_WALL.as_lua_int();
*unk = LUA_TRUE;
@ -80,8 +80,8 @@ unsafe fn mod_handle_change_status(
}
// Ceiling Tech
if status_kind_int == FIGHTER_STATUS_KIND_STOP_CEIL
|| status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_U
if status_kind_int == *FIGHTER_STATUS_KIND_STOP_CEIL
|| status_kind_int == *FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_U
{
*status_kind = FIGHTER_STATUS_KIND_PASSIVE_CEIL.as_lua_int();
*unk = LUA_TRUE;