mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 11:37:40 +01:00
Merge pull request #1021 from Brainface1/master
Named some bike-related functions
This commit is contained in:
commit
8a31778733
@ -52,11 +52,11 @@ u8 GetPlayerAvatarFlags(void);
|
||||
void sub_808B578(void);
|
||||
u8 GetFRLGAvatarGraphicsIdByGender(u8);
|
||||
u8 GetRSAvatarGraphicsIdByGender(u8);
|
||||
void sub_808B980(u8 direction);
|
||||
void sub_808B9BC(u8 direction);
|
||||
void sub_808B9A4(u8 direction);
|
||||
void sub_808C1B4(u8 direction);
|
||||
void sub_808B9D4(u8 direction);
|
||||
void PlayerWheelieInPlace(u8 direction);
|
||||
void PlayerWheelieMove(u8 direction);
|
||||
void PlayerPopWheelieWhileMoving(u8 direction);
|
||||
void PlayerUseAcroBikeOnBumpySlope(u8 direction);
|
||||
void PlayerEndWheelieWhileMoving(u8 direction);
|
||||
void sub_808D194(void);
|
||||
void sub_808D1C8(void);
|
||||
bool32 sub_808D1B4(void);
|
||||
|
12
src/bike.c
12
src/bike.c
@ -696,11 +696,11 @@ static void AcroBikeTransition_WheelieMoving(u8 direction)
|
||||
if (MetatileBehavior_IsBumpySlope(playerObjEvent->currentMetatileBehavior))
|
||||
PlayerIdleWheelie(direction);
|
||||
else
|
||||
sub_808B980(direction); //hit wall?
|
||||
PlayerWheelieInPlace(direction); //hit wall?
|
||||
}
|
||||
return;
|
||||
}
|
||||
sub_808B9BC(direction);
|
||||
PlayerWheelieMove(direction);
|
||||
gPlayerAvatar.runningState = MOVING;
|
||||
}
|
||||
|
||||
@ -730,11 +730,11 @@ static void AcroBikeTransition_WheelieRisingMoving(u8 direction)
|
||||
if (MetatileBehavior_IsBumpySlope(playerObjEvent->currentMetatileBehavior))
|
||||
PlayerIdleWheelie(direction);
|
||||
else
|
||||
sub_808B980(direction); //hit wall?
|
||||
PlayerWheelieInPlace(direction); //hit wall?
|
||||
}
|
||||
return;
|
||||
}
|
||||
sub_808B9A4(direction);
|
||||
PlayerPopWheelieWhileMoving(direction);
|
||||
gPlayerAvatar.runningState = MOVING;
|
||||
}
|
||||
|
||||
@ -757,7 +757,7 @@ static void AcroBikeTransition_WheelieLoweringMoving(u8 direction)
|
||||
PlayerEndWheelie(direction);
|
||||
return;
|
||||
}
|
||||
sub_808B9D4(direction);
|
||||
PlayerEndWheelieWhileMoving(direction);
|
||||
}
|
||||
|
||||
void Bike_TryAcroBikeHistoryUpdate(u16 newKeys, u16 heldKeys)
|
||||
@ -1049,7 +1049,7 @@ void Bike_HandleBumpySlopeJump(void)
|
||||
if (MetatileBehavior_IsBumpySlope(tileBehavior))
|
||||
{
|
||||
gPlayerAvatar.acroBikeState = ACRO_STATE_WHEELIE_STANDING;
|
||||
sub_808C1B4(GetPlayerMovementDirection());
|
||||
PlayerUseAcroBikeOnBumpySlope(GetPlayerMovementDirection());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ static const u8 sRSAvatarGfxIds[] = {OBJ_EVENT_GFX_LINK_RS_BRENDAN, OBJ_EVENT_GF
|
||||
|
||||
static const u8 sPlayerAvatarGfxToStateFlag[2][5][2] =
|
||||
{
|
||||
[MALE] =
|
||||
[MALE] =
|
||||
{
|
||||
{OBJ_EVENT_GFX_BRENDAN_NORMAL, PLAYER_AVATAR_FLAG_ON_FOOT},
|
||||
{OBJ_EVENT_GFX_BRENDAN_MACH_BIKE, PLAYER_AVATAR_FLAG_MACH_BIKE},
|
||||
@ -269,7 +269,7 @@ static const u8 sPlayerAvatarGfxToStateFlag[2][5][2] =
|
||||
{OBJ_EVENT_GFX_BRENDAN_SURFING, PLAYER_AVATAR_FLAG_SURFING},
|
||||
{OBJ_EVENT_GFX_BRENDAN_UNDERWATER, PLAYER_AVATAR_FLAG_UNDERWATER},
|
||||
},
|
||||
[FEMALE] =
|
||||
[FEMALE] =
|
||||
{
|
||||
{OBJ_EVENT_GFX_MAY_NORMAL, PLAYER_AVATAR_FLAG_ON_FOOT},
|
||||
{OBJ_EVENT_GFX_MAY_MACH_BIKE, PLAYER_AVATAR_FLAG_MACH_BIKE},
|
||||
@ -1079,23 +1079,23 @@ void PlayerAcroTurnJump(u8 direction)
|
||||
PlayerSetAnimId(GetJumpInPlaceTurnAroundMovementAction(direction), 1);
|
||||
}
|
||||
|
||||
void sub_808B980(u8 direction)
|
||||
void PlayerWheelieInPlace(u8 direction)
|
||||
{
|
||||
PlaySE(SE_WALL_HIT);
|
||||
PlayerSetAnimId(GetAcroWheelieInPlaceDirectionMovementAction(direction), 2);
|
||||
}
|
||||
|
||||
void sub_808B9A4(u8 direction)
|
||||
void PlayerPopWheelieWhileMoving(u8 direction)
|
||||
{
|
||||
PlayerSetAnimId(GetAcroPopWheelieMoveDirectionMovementAction(direction), 2);
|
||||
}
|
||||
|
||||
void sub_808B9BC(u8 direction)
|
||||
void PlayerWheelieMove(u8 direction)
|
||||
{
|
||||
PlayerSetAnimId(GetAcroWheelieMoveDirectionMovementAction(direction), 2);
|
||||
}
|
||||
|
||||
void sub_808B9D4(u8 direction)
|
||||
void PlayerEndWheelieWhileMoving(u8 direction)
|
||||
{
|
||||
PlayerSetAnimId(GetAcroEndWheelieMoveDirectionMovementAction(direction), 2);
|
||||
}
|
||||
@ -1415,7 +1415,7 @@ void sub_808C15C(u8 direction)
|
||||
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetFishingDirectionAnimNum(direction));
|
||||
}
|
||||
|
||||
void sub_808C1B4(u8 direction)
|
||||
void PlayerUseAcroBikeOnBumpySlope(u8 direction)
|
||||
{
|
||||
ObjectEventSetGraphicsId(&gObjectEvents[gPlayerAvatar.objectEventId], GetPlayerAvatarGraphicsIdByStateId(PLAYER_AVATAR_STATE_ACRO_BIKE));
|
||||
StartSpriteAnim(&gSprites[gPlayerAvatar.spriteId], GetAcroWheelieDirectionAnimNum(direction));
|
||||
|
Loading…
Reference in New Issue
Block a user