summaryrefslogtreecommitdiff
path: root/include/cereader_tool.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-23 14:46:03 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-24 02:57:45 -0500
commitef1f9ead0ba44c67185dccc616846646d7ce9257 (patch)
treeea1dea4c196acfc062cbe144911fa979e96218b2 /include/cereader_tool.h
parente97d3532d4d72a1fe9aec755cd2a3c6527484e27 (diff)
Document Trainer Tower scripts
Diffstat (limited to 'include/cereader_tool.h')
-rw-r--r--include/cereader_tool.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/cereader_tool.h b/include/cereader_tool.h
index 6275eaabf..db1dd04fa 100644
--- a/include/cereader_tool.h
+++ b/include/cereader_tool.h
@@ -2,6 +2,7 @@
#define GUARD_CEREADER_TOOL_H
#include "global.h"
+#include "constants/trainer_tower.h"
struct TrainerTowerTrainer
{
@@ -21,13 +22,13 @@ struct TrainerTowerFloor
/* 0x001 */ u8 floorIdx;
/* 0x002 */ u8 challengeType;
/* 0x003 */ u8 prize;
- /* 0x004 */ struct TrainerTowerTrainer trainers[3];
+ /* 0x004 */ struct TrainerTowerTrainer trainers[MAX_TRAINERS_PER_FLOOR];
/* 0x3DC */ u32 checksum;
};
struct EReaderTrainerHillSetSubstruct
{
- u8 count;
+ u8 numFloors;
u8 id;
u16 dummy;
u32 checksum;
@@ -35,11 +36,11 @@ struct EReaderTrainerHillSetSubstruct
struct EReaderTrainerHillSet
{
- u8 count;
+ u8 numFloors;
u8 id;
u16 dummy;
u32 checksum;
- struct TrainerTowerFloor floors[8];
+ struct TrainerTowerFloor floors[MAX_TRAINER_TOWER_FLOORS];
};
bool32 ValidateTrainerTowerData(struct EReaderTrainerHillSet * ttdata);