mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-06-02 22:15:20 -05:00
Some checks are pending
CI / build-emerald (push) Waiting to run
CI / build-firered (push) Waiting to run
CI / build-leafgreen (push) Waiting to run
CI / release (push) Waiting to run
CI / test (push) Waiting to run
CI / build (push) Blocked by required conditions
CI / docs_validate (push) Waiting to run
CI / allcontributors (push) Waiting to run
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
#ifndef GUARD_BATTLE_TOWER_H
|
|
#define GUARD_BATTLE_TOWER_H
|
|
|
|
#include "data.h"
|
|
#include "battle_frontier.h"
|
|
|
|
struct RSBattleTowerRecord
|
|
{
|
|
/*0x00*/ u8 lvlMode; // 0 = level 50, 1 = level 100
|
|
/*0x01*/ u8 facilityClass;
|
|
/*0x02*/ u16 winStreak;
|
|
/*0x04*/ u8 name[PLAYER_NAME_LENGTH + 1];
|
|
/*0x0C*/ u8 trainerId[TRAINER_ID_LENGTH];
|
|
/*0x10*/ u16 greeting[EASY_CHAT_BATTLE_WORDS_COUNT];
|
|
/*0x1C*/ struct BattleTowerPokemon party[FRONTIER_PARTY_SIZE];
|
|
/*0xA0*/ u32 checksum;
|
|
};
|
|
|
|
struct FacilityClass {
|
|
u16 class;
|
|
u16 gfxId;
|
|
};
|
|
|
|
#define FACILITY_CLASSES_MALE 30
|
|
#define FACILITY_CLASSES_FEMALE 20
|
|
|
|
extern const struct FacilityClass gTowerMaleFacilityClasses[FACILITY_CLASSES_MALE];
|
|
extern const struct FacilityClass gTowerFemaleFacilityClasses[FACILITY_CLASSES_FEMALE];
|
|
extern const struct TrainerMon gSlateportBattleTentMons[];
|
|
extern const struct BattleFrontierTrainer gSlateportBattleTentTrainers[];
|
|
|
|
void CallBattleTowerFunc(void);
|
|
void PutNewBattleTowerRecord(struct EmeraldBattleTowerRecord *newRecordEm);
|
|
void CalcEmeraldBattleTowerChecksum(struct EmeraldBattleTowerRecord *record);
|
|
void CalcRubyBattleTowerChecksum(struct RSBattleTowerRecord *record);
|
|
u16 GetCurrentBattleTowerWinStreak(enum FrontierLevelMode lvlMode, u8 battleMode);
|
|
void TryHideBattleTowerReporter(void);
|
|
bool32 RubyBattleTowerRecordToEmerald(struct RSBattleTowerRecord *src, struct EmeraldBattleTowerRecord *dst);
|
|
bool32 EmeraldBattleTowerRecordToRuby(struct EmeraldBattleTowerRecord *src, struct RSBattleTowerRecord *dst);
|
|
void CalcApprenticeChecksum(struct Apprentice *apprentice);
|
|
void GetBattleTowerTrainerLanguage(u8 *dst, u16 trainerId);
|
|
u8 SetTentPtrsGetLevel(void);
|
|
bool32 ValidateBattleTowerRecord(u8 recordId); // unused
|
|
void TrySetLinkBattleTowerEnemyPartyLevel(void);
|
|
void FillTentTrainerParty(u8 monsCount);
|
|
|
|
|
|
#endif //GUARD_BATTLE_TOWER_H
|