summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-25 23:24:14 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2022-01-25 23:24:14 -0500
commitf2457501ee643a2fc3b23e93f4e2f0a567a3231c (patch)
treee19178b2581e12c523130b81bc1d9df955217708 /src
parent42909d03330749e610900d5aa5765758cc05e533 (diff)
Decomped IsFixedDungeon()
Diffstat (limited to 'src')
-rw-r--r--src/dungeon_capabilities_1.c3
-rw-r--r--src/dungeon_engine.c13
2 files changed, 14 insertions, 2 deletions
diff --git a/src/dungeon_capabilities_1.c b/src/dungeon_capabilities_1.c
index c4eb53e..bbe48bc 100644
--- a/src/dungeon_capabilities_1.c
+++ b/src/dungeon_capabilities_1.c
@@ -7,6 +7,7 @@
#include "charge_move.h"
#include "dungeon_ai.h"
#include "dungeon_capabilities.h"
+#include "dungeon_engine.h"
#include "dungeon_items.h"
#include "dungeon_map_access.h"
#include "dungeon_movement.h"
@@ -16,8 +17,6 @@
const u8 gDirectionBitMasks[] = {0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80};
-extern bool8 IsFixedDungeon();
-
static inline bool8 JoinLocationCannotUseItems(struct DungeonEntityData *pokemonData)
{
if (pokemonData->joinLocation == DUNGEON_JOIN_LOCATION_CLIENT_POKEMON)
diff --git a/src/dungeon_engine.c b/src/dungeon_engine.c
new file mode 100644
index 0000000..dd25441
--- /dev/null
+++ b/src/dungeon_engine.c
@@ -0,0 +1,13 @@
+#include "global.h"
+#include "dungeon_engine.h"
+#include "constants/dungeon.h"
+#include "dungeon_global_data.h"
+
+bool8 IsFixedDungeon()
+{
+ if (gDungeonGlobalData->tileset > DUNGEON_OUT_ON_RESCUE)
+ {
+ return TRUE;
+ }
+ return FALSE;
+}