Files
pmd-red/src/targeting.c
T
2024-10-29 13:59:19 +01:00

12 lines
372 B
C

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