summaryrefslogtreecommitdiff
path: root/include/dungeon.h
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2020-12-17 13:17:58 -0600
committerGitHub <noreply@github.com>2020-12-17 13:17:58 -0600
commit096de8d9b2ffd90c52e790296bfd7c5436d45ca3 (patch)
tree9c5af2e04dea05221c71946a5dfc06471f77801d /include/dungeon.h
parentbc504264f1e54b3c1e482710c592e5549828bfe1 (diff)
parentf90f3affeb9b0a66aa7df68f5fdecd692033faf9 (diff)
Merge pull request #12 from SethBarberee/master
Merge work from SethBarberee/pmd-red into pret.
Diffstat (limited to 'include/dungeon.h')
-rw-r--r--include/dungeon.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/dungeon.h b/include/dungeon.h
new file mode 100644
index 0000000..faf58e5
--- /dev/null
+++ b/include/dungeon.h
@@ -0,0 +1,32 @@
+#ifndef GUARD_DUNGEON_H
+#define GUARD_DUNGEON_H
+
+struct DungeonName
+{
+ const u8 *name1;
+ const u8 *name2;
+};
+
+struct Dungeon
+{
+ u8 stairDirection;
+ u8 unk1;
+ bool8 isRecruitable;
+ s8 unk3;
+ u8 maxItemCount;
+ u8 maxPartySize;
+ u8 levelCondition;
+ u8 moneyCondition;
+ u8 unk8;
+ u8 unk9;
+ 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;
+};
+
+extern struct Dungeon gDungeons[];
+extern struct DungeonName gDungeonNames[];
+const u8 *GetDungeonName1(u8 dungeon);
+
+#endif //GUARD_DUNGEON_H