mirror of
https://github.com/pret/pmd-red.git
synced 2026-06-16 21:50:21 -05:00
12 lines
366 B
C
12 lines
366 B
C
#include "global.h"
|
|
#include "targeting.h"
|
|
|
|
#include "dungeon_util.h"
|
|
|
|
void TargetTileInFront(Entity *pokemon)
|
|
{
|
|
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;
|
|
}
|