summaryrefslogtreecommitdiff
path: root/src/dungeon_util.c
diff options
context:
space:
mode:
authorCheng Hann Gan <chenghanngan.us@gmail.com>2021-10-22 13:20:01 -0400
committerGitHub <noreply@github.com>2021-10-22 10:20:01 -0700
commitc98fb2c11272680a20b9cfb9efe2ce482d3779dd (patch)
treed5001c7adfe550c52f8190934a74849920bd9eaa /src/dungeon_util.c
parent3e5dd1d047bada52ab0dce2fe58b04e39bcaa1cc (diff)
Decomped DecideAction() (#66)
* Decomped DecideAction() * Defined dungeon Pokémon array sizes
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
new file mode 100644
index 0000000..60b796f
--- /dev/null
+++ b/src/dungeon_util.c
@@ -0,0 +1,11 @@
+#include "global.h"
+#include "dungeon_util.h"
+
+bool8 EntityExists(struct DungeonEntity *entity)
+{
+ if (!entity)
+ {
+ return FALSE;
+ }
+ return entity->entityType != ENTITY_NONE;
+}