mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-27 22:45:04 -04:00
12 lines
372 B
C
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;
|
|
}
|