fireemblem8u/include/monstergen.h
Noah Nelson bcce85fe31 Move gMonsterItemWeightsTable to C
This fixes that alignment issue I was having
2021-12-08 03:53:38 +00:00

31 lines
877 B
C

#ifndef GUARD_MONSTERGEN_H
#define GUARD_MONSTERGEN_H
extern const u8 gMonsterLevelWeights[];
struct MonsterClassWeights {
u8 classes[5];
u8 weights[5];
};
extern const struct MonsterClassWeights gMonsterClassWeights[];
struct MonsterItemsByClassEntry {
/* 00 */ u8 classId;
/* 01 -> 05 */ u8 item1row[5];
/* 06 -> 0a */ u8 item2row[5];
/* 0b -> 0f */ u8 item1weights[5];
/* 10 -> 14 */ u8 item2weights[5];
/* 15 -> 19 */ u8 item1tables[5];
/* 1a -> 1e */ u8 item2tables[5];
};
extern const struct MonsterItemsByClassEntry gMonsterItemsByClassIndex[];
extern const u8 gMonsterItemTable[][5];
extern const u8 gMonsterItemWeightsTable[][5];
int SelectFromWeightedArray(const u8 *weights, u8 size);
int GenerateMonsterLevel(u8 baseLevel);
int GenerateMonsterClass(u8 baseClassId);
u32 GenerateMonsterItems(u8 monsterClassId);
#endif