mirror of
https://github.com/HarbourMasters/Starship
synced 2026-08-28 17:20:25 -04:00
leftState -> leftWingState
This commit is contained in:
@@ -200,7 +200,7 @@ void AllRange_GreatFoxRepair(Player* player) {
|
||||
|
||||
player->shields = Play_GetMaxShields();
|
||||
player->arwing.rightWingState = WINGSTATE_INTACT;
|
||||
player->arwing.leftState = WINGSTATE_INTACT;
|
||||
player->arwing.leftWingState = WINGSTATE_INTACT;
|
||||
|
||||
if (gExpertMode) {
|
||||
gRightWingHealth[0] = gLeftWingHealth[0] = 10;
|
||||
|
||||
@@ -1694,9 +1694,9 @@ void Cutscene_ArwingDown360(Player* player) {
|
||||
player->arwing.rightWingState = WINGSTATE_BROKEN;
|
||||
func_effect_8007D0E0(player->hit1.x, player->hit1.y, player->hit1.z, 2.0f);
|
||||
}
|
||||
if (player->arwing.leftState == WINGSTATE_INTACT) {
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
Play_SpawnDebris(0, player->hit2.x, player->hit2.y, player->hit2.z);
|
||||
player->arwing.leftState = WINGSTATE_BROKEN;
|
||||
player->arwing.leftWingState = WINGSTATE_BROKEN;
|
||||
func_effect_8007D0E0(player->hit2.x, player->hit2.y, player->hit2.z, 2.0f);
|
||||
}
|
||||
} else if (((player->radioDamageTimer > 0) || (player->pos.y < player->pathFloor) ||
|
||||
@@ -1802,9 +1802,9 @@ void Cutscene_ArwingDownOnRails(Player* player) {
|
||||
func_effect_8007D0E0(player->hit1.x, player->hit1.y, player->hit1.z, 2.0f);
|
||||
}
|
||||
|
||||
if (player->arwing.leftState == WINGSTATE_INTACT) {
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
Play_SpawnDebris(0, player->hit2.x, player->hit2.y, player->hit2.z);
|
||||
player->arwing.leftState = WINGSTATE_NONE;
|
||||
player->arwing.leftWingState = WINGSTATE_NONE;
|
||||
func_effect_8007D0E0(player->hit2.x, player->hit2.y, player->hit2.z, 2.0f);
|
||||
}
|
||||
} else if (((player->radioDamageTimer > 0) || (player->pos.y < player->pathFloor) || (player->csEventTimer == 0)) &&
|
||||
|
||||
@@ -493,10 +493,10 @@ bool Display_ArwingWingsOverrideLimbDraw(s32 limbIndex, Gfx** gfxPtr, Vec3f* pos
|
||||
break;
|
||||
|
||||
case 12:
|
||||
if (arwing->rightWingState == WINGSTATE_NONE) { // should be leftState?
|
||||
if (arwing->rightWingState == WINGSTATE_NONE) { // should be leftWingState?
|
||||
*gfxPtr = NULL;
|
||||
}
|
||||
if (arwing->leftState == WINGSTATE_BROKEN) {
|
||||
if (arwing->leftWingState == WINGSTATE_BROKEN) {
|
||||
*gfxPtr = D_arwing_3014BF0;
|
||||
}
|
||||
if (D_display_800CA22C && ((gLeftWingFlashTimer[0] % 2) != 0)) {
|
||||
@@ -512,7 +512,7 @@ bool Display_ArwingWingsOverrideLimbDraw(s32 limbIndex, Gfx** gfxPtr, Vec3f* pos
|
||||
|
||||
case 5:
|
||||
case 6:
|
||||
if (arwing->leftState != 2) {
|
||||
if (arwing->leftWingState != 2) {
|
||||
*gfxPtr = NULL;
|
||||
}
|
||||
if (D_display_800CA22C && ((gLeftWingFlashTimer[0] % 2) != 0)) {
|
||||
@@ -679,13 +679,13 @@ void Display_Arwing(Player* player, s32 reflectY) {
|
||||
}
|
||||
} else {
|
||||
if (gVersusMode) {
|
||||
if ((player->arwing.rightWingState == WINGSTATE_INTACT) && (player->arwing.leftState == WINGSTATE_INTACT)) {
|
||||
if ((player->arwing.rightWingState == WINGSTATE_INTACT) && (player->arwing.leftWingState == WINGSTATE_INTACT)) {
|
||||
gSPDisplayList(gMasterDisp++, D_versus_300EE80);
|
||||
} else if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) &&
|
||||
(player->arwing.leftState == WINGSTATE_INTACT)) {
|
||||
(player->arwing.leftWingState == WINGSTATE_INTACT)) {
|
||||
gSPDisplayList(gMasterDisp++, D_versus_3010A90);
|
||||
} else if ((player->arwing.rightWingState == WINGSTATE_INTACT) &&
|
||||
(player->arwing.leftState <= WINGSTATE_BROKEN)) {
|
||||
(player->arwing.leftWingState <= WINGSTATE_BROKEN)) {
|
||||
gSPDisplayList(gMasterDisp++, D_versus_3011470);
|
||||
} else {
|
||||
gSPDisplayList(gMasterDisp++, D_versus_300D550);
|
||||
@@ -1232,7 +1232,7 @@ void Display_ArwingWingTrail_Draw(Player* player) {
|
||||
RCP_SetupDL_64();
|
||||
gDPSetPrimColor(gMasterDisp++, 0x00, 0x00, 255, 255, 255, 100);
|
||||
|
||||
if (player->arwing.leftState == WINGSTATE_INTACT) {
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
Matrix_Push(&gGfxMatrix);
|
||||
Matrix_Translate(gGfxMatrix, sp5C, sp58, -100.0f, MTXF_APPLY);
|
||||
Matrix_RotateX(gGfxMatrix, M_DTOR * sp50, MTXF_APPLY);
|
||||
|
||||
@@ -525,12 +525,12 @@ void func_edisplay_8005B388(Actor199* actor) {
|
||||
((gCurrentLevel == LEVEL_SECTOR_Y) && (gPlayer[0].state_1C8 == PLAYERSTATE_1C8_STANDBY) &&
|
||||
(actor->state == 5))) {
|
||||
D_edisplay_80161630.rightWingState = gPlayer[0].arwing.rightWingState;
|
||||
D_edisplay_80161630.leftState = gPlayer[0].arwing.leftState;
|
||||
D_edisplay_80161630.leftWingState = gPlayer[0].arwing.leftWingState;
|
||||
} else {
|
||||
D_edisplay_80161630.rightWingState = D_edisplay_80161630.leftState = WINGSTATE_INTACT;
|
||||
D_edisplay_80161630.rightWingState = D_edisplay_80161630.leftWingState = WINGSTATE_INTACT;
|
||||
}
|
||||
} else {
|
||||
D_edisplay_80161630.rightWingState = D_edisplay_80161630.leftState = WINGSTATE_INTACT;
|
||||
D_edisplay_80161630.rightWingState = D_edisplay_80161630.leftWingState = WINGSTATE_INTACT;
|
||||
}
|
||||
D_edisplay_80161630.unk_04 = actor->fwork[15];
|
||||
D_edisplay_80161630.unk_0C = actor->fwork[16];
|
||||
|
||||
@@ -2108,7 +2108,7 @@ void ActorSupplies_Update(ActorSupplies* this) {
|
||||
func_effect_8007D2C8(this->obj.pos.x, this->obj.pos.y, this->obj.pos.z, 5.0f);
|
||||
|
||||
if (((player[0].arwing.rightWingState <= WINGSTATE_BROKEN) ||
|
||||
(player[0].arwing.leftState <= WINGSTATE_BROKEN)) &&
|
||||
(player[0].arwing.leftWingState <= WINGSTATE_BROKEN)) &&
|
||||
(player[0].form != FORM_LANDMASTER)) {
|
||||
this->itemDrop = DROP_WING_REPAIR;
|
||||
} else if (gPlayer[0].shields < 128) {
|
||||
@@ -2165,9 +2165,9 @@ void func_enmy_80067A40(void) {
|
||||
gRightWingFlashTimer[0] = 1050;
|
||||
gPlayer[0].arwing.rightWingState = WINGSTATE_INTACT;
|
||||
}
|
||||
if (gPlayer[0].arwing.leftState <= WINGSTATE_BROKEN) {
|
||||
if (gPlayer[0].arwing.leftWingState <= WINGSTATE_BROKEN) {
|
||||
gLeftWingFlashTimer[0] = 1050;
|
||||
gPlayer[0].arwing.leftState = WINGSTATE_INTACT;
|
||||
gPlayer[0].arwing.leftWingState = WINGSTATE_INTACT;
|
||||
}
|
||||
|
||||
if (gExpertMode) {
|
||||
@@ -2261,7 +2261,7 @@ void ItemPickup_Update(Item* this) {
|
||||
|
||||
void ItemLasers_Update(ItemLasers* this) {
|
||||
if (!gVersusMode &&
|
||||
((gPlayer[0].arwing.leftState <= WINGSTATE_BROKEN) || (gPlayer[0].arwing.rightWingState <= WINGSTATE_BROKEN))) {
|
||||
((gPlayer[0].arwing.leftWingState <= WINGSTATE_BROKEN) || (gPlayer[0].arwing.rightWingState <= WINGSTATE_BROKEN))) {
|
||||
this->obj.id = OBJ_ITEM_WING_REPAIR;
|
||||
Object_SetInfo(&this->info, this->obj.id);
|
||||
this->timer_48 = 2000;
|
||||
|
||||
@@ -2689,7 +2689,7 @@ void ActorEvent_ProcessTriggers(ActorEvent* this) {
|
||||
|
||||
case EVC_WING_BROKEN:
|
||||
if ((gPlayer[0].arwing.rightWingState <= WINGSTATE_BROKEN) ||
|
||||
(gPlayer[0].arwing.leftState <= WINGSTATE_BROKEN)) {
|
||||
(gPlayer[0].arwing.leftWingState <= WINGSTATE_BROKEN)) {
|
||||
ActorEvent_TriggerBranch(this);
|
||||
}
|
||||
break;
|
||||
|
||||
+12
-12
@@ -169,7 +169,7 @@ void Player_WingEffects(Player* player) {
|
||||
if ((gLevelType == LEVELTYPE_PLANET) ||
|
||||
((player->alternateView == true) && (gLevelMode == LEVELMODE_ON_RAILS))) {
|
||||
player->yBob = -SIN_DEG(player->bobPhase) * 0.5f;
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftState <= WINGSTATE_BROKEN)) {
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftWingState <= WINGSTATE_BROKEN)) {
|
||||
player->rockAngle = SIN_DEG(player->rockPhase) * 5.0f;
|
||||
} else {
|
||||
player->rockAngle = SIN_DEG(player->rockPhase) * 1.5f;
|
||||
@@ -194,7 +194,7 @@ void Player_DamageEffects(Player* player) {
|
||||
RAND_FLOAT(0.02f) + 0.02f, player->num + 1);
|
||||
}
|
||||
}
|
||||
if (player->arwing.leftState <= WINGSTATE_BROKEN) {
|
||||
if (player->arwing.leftWingState <= WINGSTATE_BROKEN) {
|
||||
if (((gGameFrameCount % 2U) == 0) && (gLeftWingDebrisTimer[player->num] != 0)) {
|
||||
func_effect_8007D10C(RAND_FLOAT_CENTERED(10.0f) + player->hit2.x, RAND_FLOAT(5.0f) + player->hit2.y,
|
||||
player->hit2.z, 1.0f);
|
||||
@@ -838,11 +838,11 @@ void Player_DamageWings(Player* player, s32 side, s32 damage) {
|
||||
}
|
||||
} else if (side == 2) {
|
||||
gLeftWingFlashTimer[player->num] = 30;
|
||||
if (player->arwing.leftState == WINGSTATE_INTACT) {
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
gLeftWingHealth[player->num] -= damage;
|
||||
if (gLeftWingHealth[player->num] <= 0) {
|
||||
Play_SpawnDebris(0, player->hit2.x, player->hit2.y, player->hit2.z);
|
||||
player->arwing.leftState = WINGSTATE_BROKEN;
|
||||
player->arwing.leftWingState = WINGSTATE_BROKEN;
|
||||
func_effect_8007D0E0(player->hit2.x, player->hit2.y, player->hit2.z, 2.0f);
|
||||
gLeftWingDebrisTimer[player->num] = 50;
|
||||
Player_PlaySfx(player->sfxSource, NA_SE_ARWING_WING_BROKEN, player->num);
|
||||
@@ -1621,7 +1621,7 @@ void Player_UpdateHitbox(Player* player) {
|
||||
Matrix_RotateZ(gCalcMatrix, -(player->bankAngle * M_DTOR), MTXF_APPLY);
|
||||
sp3C.y = 0.0f;
|
||||
sp3C.z = 0.0f;
|
||||
if (player->arwing.leftState == WINGSTATE_INTACT) {
|
||||
if (player->arwing.leftWingState == WINGSTATE_INTACT) {
|
||||
sp3C.x = 40.0f;
|
||||
} else {
|
||||
sp3C.y = -10.0f;
|
||||
@@ -3293,7 +3293,7 @@ bool Player_UpdateLockOn(Player* player) {
|
||||
void Player_Shoot(Player* player) {
|
||||
switch (player->form) {
|
||||
case FORM_ARWING:
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftState <= WINGSTATE_BROKEN)) {
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftWingState <= WINGSTATE_BROKEN)) {
|
||||
gLaserStrength[player->num] = LASERS_SINGLE;
|
||||
}
|
||||
|
||||
@@ -3349,9 +3349,9 @@ void Player_ArwingBank(Player* player) {
|
||||
f32 sp38;
|
||||
|
||||
sp3C = 0.0f;
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) && (player->arwing.leftState == WINGSTATE_INTACT)) {
|
||||
if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) && (player->arwing.leftWingState == WINGSTATE_INTACT)) {
|
||||
sp3C = -17.0f;
|
||||
} else if ((player->arwing.leftState <= WINGSTATE_BROKEN) && (player->arwing.rightWingState == WINGSTATE_INTACT)) {
|
||||
} else if ((player->arwing.leftWingState <= WINGSTATE_BROKEN) && (player->arwing.rightWingState == WINGSTATE_INTACT)) {
|
||||
sp3C = 17.0f;
|
||||
}
|
||||
|
||||
@@ -3672,7 +3672,7 @@ void Player_MoveArwing360(Player* player) {
|
||||
sp4C.x -= 2.5f;
|
||||
sp4C.y -= 2.5f;
|
||||
}
|
||||
if (player->arwing.leftState <= WINGSTATE_BROKEN) {
|
||||
if (player->arwing.leftWingState <= WINGSTATE_BROKEN) {
|
||||
sp4C.x += 2.5f;
|
||||
sp4C.y -= 2.5f;
|
||||
}
|
||||
@@ -3947,7 +3947,7 @@ void Player_MoveArwingOnRails(Player* player) {
|
||||
player->vel.x += 2.5f;
|
||||
player->vel.y -= 2.5f;
|
||||
}
|
||||
if (player->arwing.leftState <= WINGSTATE_BROKEN) {
|
||||
if (player->arwing.leftWingState <= WINGSTATE_BROKEN) {
|
||||
player->vel.x -= 2.5f;
|
||||
player->vel.y -= 2.5f;
|
||||
}
|
||||
@@ -4417,7 +4417,7 @@ void Player_Setup(Player* playerx) {
|
||||
}
|
||||
|
||||
player->arwing.rightWingState = WINGSTATE_INTACT;
|
||||
player->arwing.leftState = WINGSTATE_INTACT;
|
||||
player->arwing.leftWingState = WINGSTATE_INTACT;
|
||||
|
||||
if (gExpertMode) {
|
||||
gLeftWingHealth[gPlayerNum] = 10;
|
||||
@@ -4521,7 +4521,7 @@ void Player_Setup(Player* playerx) {
|
||||
player->shields = D_ctx_80177C9C - 1;
|
||||
gGoldRingCount[0] = D_ctx_80177C94;
|
||||
player->arwing.rightWingState = D_ctx_80177CAC;
|
||||
player->arwing.leftState = D_ctx_80177CB4;
|
||||
player->arwing.leftWingState = D_ctx_80177CB4;
|
||||
gRightWingHealth[0] = D_ctx_80177CBC;
|
||||
gLeftWingHealth[0] = D_ctx_80177CC4;
|
||||
if (gCurrentLevel == LEVEL_VENOM_ANDROSS) {
|
||||
|
||||
Reference in New Issue
Block a user