From cef20f5b34c507dabeaa292617963371faeca2e3 Mon Sep 17 00:00:00 2001 From: shinny Date: Tue, 2 Jun 2020 14:56:12 -0400 Subject: decomp dungeon data getters --- include/dungeon.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dungeon.h (limited to 'include/dungeon.h') diff --git a/include/dungeon.h b/include/dungeon.h new file mode 100644 index 0000000..7a9c864 --- /dev/null +++ b/include/dungeon.h @@ -0,0 +1,31 @@ +#ifndef GUARD_DUNGEON_H +#define GUARD_DUNGEON_H + +struct DungeonName +{ + const u8 *name1; + const u8 *name2; +}; + +struct Dungeon +{ + u8 stairDirection; + u8 unk1; + u8 unk2; + s8 unk3; + u8 maxItemCount; + u8 maxPartySize; + u8 levelCondition; + u8 moneyCondition; + u8 unk8; + u8 unk9; + u8 saveBeforeEntering; //whether to quicksave or not before entering + u8 unkB; + s16 unkC; + s16 unkE; +}; + +extern struct Dungeon gDungeons[]; +extern struct DungeonName gDungeonNames[]; + +#endif //GUARD_DUNGEON_H -- cgit v1.2.3 From db15fdd32463da9ef007a068f87f9f81e47cf3a7 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Wed, 9 Sep 2020 19:46:02 -0500 Subject: documented some fields thx to PMDe --- include/dungeon.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/dungeon.h') diff --git a/include/dungeon.h b/include/dungeon.h index 7a9c864..663a50f 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -11,7 +11,7 @@ struct Dungeon { u8 stairDirection; u8 unk1; - u8 unk2; + u8 isRecruitable; s8 unk3; u8 maxItemCount; u8 maxPartySize; @@ -20,8 +20,8 @@ struct Dungeon u8 unk8; u8 unk9; u8 saveBeforeEntering; //whether to quicksave or not before entering - u8 unkB; - s16 unkC; + u8 unkB; // Apparently is a HM mask (Fly, Dive, Waterfall, Surf, Water) + s16 timer; s16 unkE; }; -- cgit v1.2.3 From ef3c1e0138a71df58bf6a227df4a1913d7ff7b1d Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Wed, 9 Sep 2020 19:47:58 -0500 Subject: oops it's a bool --- include/dungeon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dungeon.h') diff --git a/include/dungeon.h b/include/dungeon.h index 663a50f..f6eb240 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -11,7 +11,7 @@ struct Dungeon { u8 stairDirection; u8 unk1; - u8 isRecruitable; + bool8 isRecruitable; s8 unk3; u8 maxItemCount; u8 maxPartySize; -- cgit v1.2.3 From 312883043b04f54568c442b8db1a68aa868c852a Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Wed, 9 Sep 2020 19:58:33 -0500 Subject: doc'ing more bool stuff from pmde --- include/dungeon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dungeon.h') diff --git a/include/dungeon.h b/include/dungeon.h index f6eb240..96cc579 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -19,7 +19,7 @@ struct Dungeon u8 moneyCondition; u8 unk8; u8 unk9; - u8 saveBeforeEntering; //whether to quicksave or not before entering + bool8 saveBeforeEntering; //whether to quicksave or not before entering u8 unkB; // Apparently is a HM mask (Fly, Dive, Waterfall, Surf, Water) s16 timer; s16 unkE; -- cgit v1.2.3 From 2582d7a8680e32493403d484c1990e1a63fb2015 Mon Sep 17 00:00:00 2001 From: Seth Barberee Date: Mon, 23 Nov 2020 15:22:16 -0600 Subject: isemi-identified VRAM and split personality test funcs --- include/dungeon.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/dungeon.h') diff --git a/include/dungeon.h b/include/dungeon.h index 96cc579..faf58e5 100644 --- a/include/dungeon.h +++ b/include/dungeon.h @@ -27,5 +27,6 @@ struct Dungeon extern struct Dungeon gDungeons[]; extern struct DungeonName gDungeonNames[]; +const u8 *GetDungeonName1(u8 dungeon); #endif //GUARD_DUNGEON_H -- cgit v1.2.3