summaryrefslogtreecommitdiff
path: root/src/dungeon_util.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2022-01-07 16:30:55 -0800
committerGitHub <noreply@github.com>2022-01-07 16:30:55 -0800
commit3cdde2a92a187d437dc7d24273177b59ab5b9511 (patch)
tree2d5924a28e208e14d302c24f9ea5f0a17a8e81a2 /src/dungeon_util.c
parentedf909be4da55a435bf81f96ffcbd156b2120562 (diff)
parent42bcb068b61656f083009816b927207393a35b10 (diff)
Merge pull request #92 from AnonymousRandomPerson/master
More item AI decomp
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)