diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-13 23:18:59 -0500 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-01-13 23:18:59 -0500 |
commit | afbc7deaea1d66d39331bc078d3f2e22cbdec0a3 (patch) | |
tree | 22cbd16fe6ddd64f686ecc02499ad648162bf964 /src/dungeon_movement.c | |
parent | 453618864e685eacae640dc2b317a645422264e2 (diff) |
Decomped SetWalkAction()
Diffstat (limited to 'src/dungeon_movement.c')
-rw-r--r-- | src/dungeon_movement.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dungeon_movement.c b/src/dungeon_movement.c index 3df74ee..d342262 100644 --- a/src/dungeon_movement.c +++ b/src/dungeon_movement.c @@ -7,6 +7,7 @@ #include "constants/status.h" #include "constants/targeting.h" #include "code_80521D0.h" +#include "dungeon_action.h" #include "dungeon_ai_items.h" #include "dungeon_capabilities_1.h" #include "dungeon_global_data.h" @@ -26,7 +27,6 @@ extern char *gPtrItsaMonsterHouseMessage; extern void SendImmobilizeEndMessage(struct DungeonEntity*, struct DungeonEntity*); extern void SetMessageArgument(char[], struct DungeonEntity*, u32); extern void ResetAction(u16*); -extern void SetWalkAction(u16*, s16); extern void DecideAttack(struct DungeonEntity*); extern void MoveIfPossible(struct DungeonEntity*, bool8); extern u8 sub_8044B28(void); @@ -209,7 +209,7 @@ void DecideAction(struct DungeonEntity *pokemon) ResetAction(&pokemonData->action.action); if (pokemonData->clientType == CLIENT_TYPE_CLIENT) { - SetWalkAction(&pokemonData->action.action, pokemonData->entityID); + SetWalkAction(&pokemonData->action, pokemonData->entityID); pokemonData->action.facingDir = DungeonRandomCapped(NUM_DIRECTIONS); pokemonData->targetPosition.x = pokemon->posWorld.x; pokemonData->targetPosition.y = pokemon->posWorld.y - 1; @@ -228,7 +228,7 @@ void DecideAction(struct DungeonEntity *pokemon) } if (pokemonData->volatileStatus == VOLATILE_STATUS_CONFUSED) { - SetWalkAction(&pokemonData->action.action, pokemonData->entityID); + SetWalkAction(&pokemonData->action, pokemonData->entityID); } else { @@ -243,7 +243,7 @@ void DecideAction(struct DungeonEntity *pokemon) { if (pokemonData->volatileStatus == VOLATILE_STATUS_CONFUSED) { - SetWalkAction(&pokemonData->action.action, pokemonData->entityID); + SetWalkAction(&pokemonData->action, pokemonData->entityID); } else { |