mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-14 21:16:20 -05:00
Decomped IsFixedDungeon()
This commit is contained in:
1346
asm/code_80428A0.s
1346
asm/code_80428A0.s
File diff suppressed because it is too large
Load Diff
1329
asm/code_8044210.s
Normal file
1329
asm/code_8044210.s
Normal file
File diff suppressed because it is too large
Load Diff
7
include/dungeon_engine.h
Normal file
7
include/dungeon_engine.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef GUARD_DUNGEON_ENGINE_H
|
||||
#define GUARD_DUNGEON_ENGINE_H
|
||||
|
||||
// 0x441E8
|
||||
bool8 IsFixedDungeon();
|
||||
|
||||
#endif
|
||||
@@ -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);
|
||||
|
||||
@@ -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
13
src/dungeon_engine.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user