mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-24 06:47:44 -05:00
11 lines
391 B
C
11 lines
391 B
C
#include "dungeon_misc.h"
|
|
#include "dungeon_util.h"
|
|
#include "dungeon_util_static.h"
|
|
|
|
void UpdateAiTargetPos(struct entity *monster)
|
|
{
|
|
struct monster *pokemon_info = GetEntInfo(monster);
|
|
pokemon_info->target_pos.x = monster->pos.x + DIRECTIONS_XY[pokemon_info->action.direction].x;
|
|
pokemon_info->target_pos.y = monster->pos.y + DIRECTIONS_XY[pokemon_info->action.direction].y;
|
|
}
|