diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 13:16:24 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-31 13:16:24 -0400 |
commit | c75a270a82fdf7f92d118c61237fea034cbc17f3 (patch) | |
tree | 691a074cd6e8e3b43d61ec9f370c6ca0518590fc /include | |
parent | 0a880566f5889cdeb6fa3f96f5916c39dbb16b38 (diff) |
Bump inja; trdata and trpoke to json
Diffstat (limited to 'include')
-rw-r--r-- | include/trainer_data.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/include/trainer_data.h b/include/trainer_data.h new file mode 100644 index 00000000..3abf9a9f --- /dev/null +++ b/include/trainer_data.h @@ -0,0 +1,70 @@ +#ifndef POKEDIAMOND_TRAINER_DATA_H +#define POKEDIAMOND_TRAINER_DATA_H + +#include "global.h" +#include "constants/pokemon.h" + +struct TrainerMonSpecies +{ + u16 difficulty; + u16 level; + u16 species; +}; + +struct TrainerMonSpeciesMoves +{ + u16 difficulty; + u16 level; + u16 moves[MON_MOVES]; +}; + +struct TrainerMonSpeciesItem +{ + u16 difficulty; + u16 level; + u16 species; + u16 item; +}; + +struct TrainerMonSpeciesItemMoves +{ + u16 difficulty; + u16 level; + u16 item; + u16 moves[MON_MOVES]; +}; + +union TrainerMon +{ + struct TrainerMonSpecies species; + struct TrainerMonSpeciesMoves species_moves; + struct TrainerMonSpeciesItem species_item; + struct TrainerMonSpeciesItemMoves species_item_moves; +}; + +#define TRTYPE_MON 0 +#define TRTYPE_MON_MOVES 1 +#define TRTYPE_MON_ITEM 2 +#define TRTYPE_MON_ITEM_MOVES 3 + +struct TrainerData +{ + u8 trainerType; + u8 trainerClass; + u8 unk_2; + u8 npoke; + u16 items[4]; + u32 unk_C; + u32 unk_10; +}; + +struct EnemyTrainerSet +{ + u32 flags; + struct PlayerParty * parties[4]; + u16 field_14[4]; + u32 trainer_idxs[4]; + struct TrainerData datas[4]; +}; + +#endif //POKEDIAMOND_TRAINER_DATA_H |