mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-06 01:18:15 -04:00
Implement & link ac_bee
This commit is contained in:
@@ -63,7 +63,7 @@ static void Player_actor_request_proc_index_fromAir_axe(ACTOR* actor, GAME* game
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(&kf->frame_control, 35.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, TRUE);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else if ((kf->frame_control.current_frame >= 36.0f) &&
|
||||
(!Player_actor_CheckAndRequest_main_axe_all(game, mPlayer_REQUEST_PRIORITY_4)) &&
|
||||
((Player_actor_GetController_move_percentX()) || (Player_actor_GetController_move_percentY()))) {
|
||||
|
||||
@@ -251,7 +251,7 @@ static void Player_actor_request_proc_index_fromDig_scoop(ACTOR* actor, GAME* ga
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc, 34.5f + mod)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, TRUE);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else {
|
||||
f32 cur_frame = fc->current_frame;
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ static void Player_actor_request_proc_index_fromFill_scoop(ACTOR* actor, GAME* g
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc, 44.5f + mod)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, TRUE);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else {
|
||||
f32 cur_frame = fc->current_frame;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ static void Player_actor_request_proc_index_fromMail_land(ACTOR* actorx, GAME* g
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc0_p, 16.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actorx);
|
||||
Player_actor_Set_status_for_bee(actorx, TRUE);
|
||||
Player_actor_Set_status_for_bee(actorx, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else if (fc0_p->current_frame <= 16.0f &&
|
||||
(Player_actor_GetController_move_percentX() || Player_actor_GetController_move_percentY())) {
|
||||
Player_actor_request_main_walk_all(game, NULL, -5.0f, 0, mPlayer_REQUEST_PRIORITY_1);
|
||||
|
||||
@@ -177,7 +177,7 @@ static void Player_actor_request_proc_index_fromRadio_exercise(ACTOR* actorx, GA
|
||||
if (radio_exercise_p->_08 == FALSE) {
|
||||
if (cur_frame >= fc0_p->end_frame - 0.5f) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actorx);
|
||||
Player_actor_Set_status_for_bee(actorx, TRUE);
|
||||
Player_actor_Set_status_for_bee(actorx, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
radio_exercise_p->_08 = TRUE;
|
||||
}
|
||||
} else if (end_flag) {
|
||||
|
||||
@@ -199,7 +199,7 @@ static void Player_actor_request_proc_index_fromReflect_axe(ACTOR* actor, GAME*
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc, 30.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, 1);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
|
||||
} else if ((fc->current_frame >= 31.0f) &&
|
||||
(!Player_actor_CheckAndRequest_main_axe_all(game, mPlayer_REQUEST_PRIORITY_4)) &&
|
||||
|
||||
@@ -261,7 +261,7 @@ static void Player_actor_request_proc_index_fromReflect_scoop(ACTOR* actor, GAME
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc, 29.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, TRUE);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else {
|
||||
f32 cur_frame = fc->current_frame;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ static void Player_actor_request_proc_index_fromRotate_umbrella(ACTOR* actorx, G
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc0_p, 19.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actorx);
|
||||
Player_actor_Set_status_for_bee(actorx, TRUE);
|
||||
Player_actor_Set_status_for_bee(actorx, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else {
|
||||
if (fc0_p->current_frame >= 20.0f &&
|
||||
Player_actor_CheckAndRequest_main_umbrella_all(game, mPlayer_REQUEST_PRIORITY_4) == FALSE) {
|
||||
|
||||
@@ -145,7 +145,7 @@ static void Player_actor_request_proc_index_fromShake_tree(ACTOR* actorx, GAME*
|
||||
}
|
||||
} else if (Player_actor_Check_AnimationFrame(fc0_p, 29.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actorx);
|
||||
Player_actor_Set_status_for_bee(actorx, TRUE);
|
||||
Player_actor_Set_status_for_bee(actorx, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else if (cur_frame >= 30.0f) {
|
||||
if (Player_actor_GetController_move_percentX() || Player_actor_GetController_move_percentY()) {
|
||||
Player_actor_request_main_walk_all(game, NULL, -5.0f, 0, mPlayer_REQUEST_PRIORITY_1);
|
||||
|
||||
@@ -274,7 +274,7 @@ static void Player_actor_request_proc_index_fromSwing_axe(ACTOR* actor, GAME* ga
|
||||
}
|
||||
} else if (Player_actor_Check_AnimationFrame(fc, 16.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actor);
|
||||
Player_actor_Set_status_for_bee(actor, 1);
|
||||
Player_actor_Set_status_for_bee(actor, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
|
||||
} else if ((current >= 17.0f) && (!Player_actor_CheckAndRequest_main_axe_all(game, 4)) &&
|
||||
((Player_actor_GetController_move_percentX()) || (Player_actor_GetController_move_percentY()))) {
|
||||
|
||||
@@ -71,7 +71,7 @@ static void Player_actor_request_proc_index_fromSwing_fan(ACTOR* actorx, GAME* g
|
||||
|
||||
if (Player_actor_Check_AnimationFrame(fc0_p, 7.5f)) {
|
||||
Player_actor_SettleRequestMainIndexPriority(actorx);
|
||||
Player_actor_Set_status_for_bee(actorx, TRUE);
|
||||
Player_actor_Set_status_for_bee(actorx, mPlayer_STATUS_FOR_BEE_ATTACK);
|
||||
} else {
|
||||
f32 cur_frame = fc0_p->current_frame;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user