summaryrefslogtreecommitdiff
path: root/include/droptables.h
blob: 1d7b2bcf1a55acb629715d2ee6c622b3896581c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef DROPTABLES_H
#define DROPTABLES_H

#include "global.h"

typedef union {
    struct {
        s16 none;
        s16 rupee1;
        s16 rupee5;
        s16 rupee20;
        s16 hearts;
        s16 fairy;
        s16 bombs;
        s16 arrows;
        s16 mysteriousShells;
        s16 kinstoneRed;
        s16 kinstoneBlue;
        s16 kinstoneGreen;
        s16 none2;
        s16 none3;
        s16 none4;
        s16 none5;
    } s;
    s16 a[16];
} Droptable;
static_assert(sizeof(Droptable) == 0x20);

extern const Droptable gEnemyDroptables[];
extern const Droptable gAreaDroptables[];
extern const Droptable gObjectDroptables[];
extern const Droptable gUnk_0800191C[];
enum {
    DROPTABLE_NONE,
    DROPTABLE_NO_SHELLS,
    DROPTABLE_NO_KINSTONES,
};
extern const Droptable gDroptableModifiers[];

#endif // DROPTABLES_H