pmd-red/src/targeting.c
2023-01-08 04:23:00 -05:00

12 lines
380 B
C

#include "global.h"
#include "targeting.h"
#include "dungeon_util.h"
void TargetTileInFront(struct Entity *pokemon)
{
struct EntityInfo *pokemonInfo = pokemon->info;
pokemonInfo->targetPos.x = pokemon->pos.x + gAdjacentTileOffsets[pokemonInfo->action.direction].x;
pokemonInfo->targetPos.y = pokemon->pos.y + gAdjacentTileOffsets[pokemonInfo->action.direction].y;
}