summaryrefslogtreecommitdiff
path: root/src/dungeon_ai_attack.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-04 23:34:35 -0600
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-04 23:34:35 -0600
commit2fa42b2987c9623b0bbfae37eba9569ceb69930b (patch)
tree83a7456b64347014a5886de3ed615994aa181e41 /src/dungeon_ai_attack.c
parentc30cf5c6da8283330bc352d58acc037739cd8b72 (diff)
Moved some constants from data to source
Diffstat (limited to 'src/dungeon_ai_attack.c')
-rw-r--r--src/dungeon_ai_attack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dungeon_ai_attack.c b/src/dungeon_ai_attack.c
index 48ccdfe..eaefbd9 100644
--- a/src/dungeon_ai_attack.c
+++ b/src/dungeon_ai_attack.c
@@ -2,12 +2,11 @@
#include "dungeon_ai_attack.h"
#include "constants/iq_skill.h"
+#include "data/adjacent_tile_offsets.h"
#include "dungeon_global_data.h"
#include "dungeon_map_access.h"
#include "dungeon_pokemon_attributes_1.h"
-extern struct Position gAdjacentTileOffsets[8];
-
bool8 IsTargetStraightAhead(struct DungeonEntity *pokemon, struct DungeonEntity *targetPokemon, s32 facingDir, s32 maxRange)
{
s32 posDiffX = pokemon->posWorld.x - targetPokemon->posWorld.x;