2017-10-13 15:09:36 +00:00
|
|
|
#ifndef GUARD_BATTLE_TOWER_H
|
|
|
|
#define GUARD_BATTLE_TOWER_H
|
|
|
|
|
2018-05-25 22:25:36 +00:00
|
|
|
struct RSBattleTowerRecord
|
|
|
|
{
|
2017-11-04 22:48:13 +00:00
|
|
|
/*0x00*/ u8 battleTowerLevelType; // 0 = level 50, 1 = level 100
|
|
|
|
/*0x01*/ u8 trainerClass;
|
|
|
|
/*0x02*/ u16 winStreak;
|
|
|
|
/*0x04*/ u8 name[8];
|
|
|
|
/*0x0C*/ u8 trainerId[4];
|
|
|
|
/*0x10*/ struct {
|
|
|
|
u16 easyChat[6];
|
|
|
|
} greeting;
|
|
|
|
/*0x1C*/ struct UnknownPokemonStruct party[3];
|
|
|
|
/*0xA0*/ u32 checksum;
|
|
|
|
/*0xA4*/ u16 unk_11c8;
|
|
|
|
};
|
|
|
|
|
2018-05-25 22:25:36 +00:00
|
|
|
union BattleTowerRecord
|
|
|
|
{
|
2017-11-04 22:48:13 +00:00
|
|
|
struct RSBattleTowerRecord ruby_sapphire;
|
|
|
|
struct EmeraldBattleTowerRecord emerald;
|
|
|
|
};
|
|
|
|
|
2018-06-17 10:30:09 +00:00
|
|
|
struct BattleFrontierTrainer
|
|
|
|
{
|
2018-08-25 16:46:15 +00:00
|
|
|
u32 facilityClass;
|
2018-06-17 10:30:09 +00:00
|
|
|
u8 trainerName[8];
|
|
|
|
u16 speechBefore[6];
|
|
|
|
u16 speechWin[6];
|
|
|
|
u16 speechLose[6];
|
|
|
|
u16 *btMonPool;
|
|
|
|
};
|
|
|
|
|
2018-08-26 13:27:06 +00:00
|
|
|
struct FacilityMon
|
|
|
|
{
|
|
|
|
u16 species;
|
|
|
|
u16 moves[4];
|
|
|
|
u8 itemTableId;
|
|
|
|
u8 evSpread;
|
|
|
|
u8 nature;
|
|
|
|
};
|
|
|
|
|
2018-08-25 16:46:15 +00:00
|
|
|
extern const struct BattleFrontierTrainer *gFacilityTrainers;
|
2018-08-26 13:27:06 +00:00
|
|
|
extern const struct FacilityMon *gFacilityTrainerMons;
|
2018-06-17 10:30:09 +00:00
|
|
|
|
2017-10-13 15:09:36 +00:00
|
|
|
u16 sub_8164FCC(u8, u8);
|
2018-05-25 22:25:36 +00:00
|
|
|
void sub_81659DC(struct RSBattleTowerRecord *a0, struct RSBattleTowerRecord *a1);
|
2017-11-04 22:48:13 +00:00
|
|
|
bool32 sub_816587C(union BattleTowerRecord *, union BattleTowerRecord *);
|
2018-05-25 22:25:36 +00:00
|
|
|
void CalcEmeraldBattleTowerChecksum(struct EmeraldBattleTowerRecord *);
|
2017-11-04 22:48:13 +00:00
|
|
|
void sub_81628A0(union BattleTowerRecord *);
|
2018-06-17 10:30:09 +00:00
|
|
|
void sub_8162614(u16 trainerId, u8);
|
2018-08-25 16:46:15 +00:00
|
|
|
void ConvertBattleFrontierTrainerSpeechToString(const u16 *words);
|
2018-06-17 10:30:09 +00:00
|
|
|
void GetFrontierTrainerName(u8 *dest, u16 trainerIdx);
|
2018-08-08 08:37:12 +00:00
|
|
|
void GetEreaderTrainerName(u8 *dest);
|
2017-10-13 15:09:36 +00:00
|
|
|
|
|
|
|
#endif //GUARD_BATTLE_TOWER_H
|