From c98fb2c11272680a20b9cfb9efe2ce482d3779dd Mon Sep 17 00:00:00 2001 From: Cheng Hann Gan Date: Fri, 22 Oct 2021 13:20:01 -0400 Subject: Decomped DecideAction() (#66) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Decomped DecideAction() * Defined dungeon Pokémon array sizes --- src/dungeon_util.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/dungeon_util.c (limited to 'src/dungeon_util.c') 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; +} -- cgit v1.2.3