summaryrefslogtreecommitdiff
path: root/src/dungeon_util.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-07 01:45:35 -0600
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-07 01:45:35 -0600
commit42bcb068b61656f083009816b927207393a35b10 (patch)
tree2d5924a28e208e14d302c24f9ea5f0a17a8e81a2 /src/dungeon_util.c
parent05768ae71decc1539bd7f6e2c6d371b8c619cb24 (diff)
Decomped CanTargetAdjacentPokemon()
Diffstat (limited to 'src/dungeon_util.c')
-rw-r--r--src/dungeon_util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dungeon_util.c b/src/dungeon_util.c
index 3594274..5b6bd5a 100644
--- a/src/dungeon_util.c
+++ b/src/dungeon_util.c
@@ -3,6 +3,17 @@
#include "dungeon_map_access.h"
+const struct Position gAdjacentTileOffsets[NUM_DIRECTIONS] = {
+ {0, 1},
+ {1, 1},
+ {1, 0},
+ {1, -1},
+ {0, -1},
+ {-1, -1},
+ {-1, 0},
+ {-1, 1}
+};
+
extern struct MapTile* GetMapEntity(s16, s16);
bool8 EntityExists(struct DungeonEntity *entity)