summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHenny022p <info@henny022.de>2022-02-10 01:29:15 +0100
committerHenny022p <info@henny022.de>2022-02-10 01:29:15 +0100
commitd64fea8164f590e85d6468e661843320702ac4c5 (patch)
treef45d84cbcda1cb199614054e2a0800008e4acf3e /include
parent5145c4776d656a49e69298dc47366f26db2d3350 (diff)
moved gCurrentAreaDroptable into gRoomVars properly
also rename globals
Diffstat (limited to 'include')
-rw-r--r--include/droptables.h17
-rw-r--r--include/room.h5
2 files changed, 12 insertions, 10 deletions
diff --git a/include/droptables.h b/include/droptables.h
index b659e18e..f05ae94e 100644
--- a/include/droptables.h
+++ b/include/droptables.h
@@ -24,14 +24,15 @@ typedef union {
} Droptable;
static_assert(sizeof(Droptable) == 0x20);
-extern const Droptable gDroptablesEnemies[];
-extern const Droptable gDroptablesAreas[];
-extern const Droptable gDroptablesObjects[];
+extern const Droptable gEnemyDroptables[];
+extern const Droptable gAreaDroptables[];
+extern const Droptable gObjectDroptables[];
extern const Droptable gUnk_0800191C[];
-extern const Droptable gDroptablesModifiers[];
-
-#define gDroptableModifierNone gDroptablesModifiers[0]
-#define gDroptableModifierNoShells gDroptablesModifiers[1]
-#define gDroptableModifierNoKinstones gDroptablesModifiers[2]
+enum {
+ DROPTABLE_NONE,
+ DROPTABLE_NO_SHELLS,
+ DROPTABLE_NO_KINSTONES,
+};
+extern const Droptable gDroptableModifiers[];
#endif // TMC_DROPTABLES_H
diff --git a/include/room.h b/include/room.h
index 1c0c5f82..56d1fa9b 100644
--- a/include/room.h
+++ b/include/room.h
@@ -3,6 +3,7 @@
#include "global.h"
#include "entity.h"
+#include "droptables.h"
enum RoomTransition {
TRANSITION_DEFAULT,
@@ -72,8 +73,8 @@ typedef struct {
/* 0x10 */ u8 unk_10[4];
/* 0x14 */ u32 flags;
/* 0x18 */ u32 unk3;
- /* 0x1c */ u8 filler4[48];
- /* 0x4c */ u8 filler5[28];
+ /* 0x1c */ u8 filler4[44];
+ /* 0x48 */ Droptable currentAreaDroptable;
/* 0x68 */ u32 animFlags;
/* 0x6c */ void* field_0x6c[8];
/* 0x8c */ void* field_0x8c[8];