mirror of
https://github.com/pret/pmd-red.git
synced 2026-07-10 14:27:33 -05:00
12 lines
420 B
C
12 lines
420 B
C
#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;
|
|
}
|