Decomped IsFixedDungeon()

This commit is contained in:
AnonymousRandomPerson
2022-01-25 23:24:14 -05:00
parent 42909d0333
commit f2457501ee
6 changed files with 1353 additions and 1347 deletions

File diff suppressed because it is too large Load Diff

1329
asm/code_8044210.s Normal file

File diff suppressed because it is too large Load Diff

7
include/dungeon_engine.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef GUARD_DUNGEON_ENGINE_H
#define GUARD_DUNGEON_ENGINE_H
// 0x441E8
bool8 IsFixedDungeon();
#endif

View File

@@ -186,6 +186,8 @@ SECTIONS {
asm/code_8041AD0.o(.text);
src/code_80428A0.o(.text);
asm/code_80428A0.o(.text);
src/dungeon_engine.o(.text);
asm/code_8044210.o(.text);
src/dungeon_action.o(.text);
asm/code_8044CC8.o(.text);
src/dungeon_util.o(.text);

View File

@@ -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)

13
src/dungeon_engine.c Normal file
View File

@@ -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;
}