diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dungeon_capabilities_1.c | 3 | ||||
-rw-r--r-- | src/dungeon_engine.c | 13 |
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; +} |