diff options
author | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-05 22:02:03 -0500 |
---|---|---|
committer | AnonymousRandomPerson <chenghanngan.us@gmail.com> | 2022-02-05 22:02:03 -0500 |
commit | 9939c543ce7a8cbf7abb85d3125b5e6d95204433 (patch) | |
tree | 7390d9718f42d6ddfe63288a6c834a94f3c65d6c /src/targeting.c | |
parent | a9b5977d4ca6c0aeedea966a0165b625a4c2dbab (diff) |
Decomped TargetTileInFront()
Diffstat (limited to 'src/targeting.c')
-rw-r--r-- | src/targeting.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/targeting.c b/src/targeting.c new file mode 100644 index 0000000..b77fb35 --- /dev/null +++ b/src/targeting.c @@ -0,0 +1,11 @@ +#include "global.h" +#include "targeting.h" + +#include "dungeon_util.h" + +void TargetTileInFront(struct DungeonEntity *pokemon) +{ + struct DungeonEntityData *pokemonData = pokemon->entityData; + pokemonData->targetPosition.x = pokemon->posWorld.x + gAdjacentTileOffsets[pokemonData->action.facingDir].x; + pokemonData->targetPosition.y = pokemon->posWorld.y + gAdjacentTileOffsets[pokemonData->action.facingDir].y; +} |