mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-03-21 18:04:50 -05:00
Co-authored-by: CallmeEchoo <callmeechoo@github.com> Co-authored-by: Your Name <you@example.com>
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
#ifndef GUARD_BATTLE_FRONTIER_H
|
|
#define GUARD_BATTLE_FRONTIER_H
|
|
|
|
#include "data.h"
|
|
#include "script.h"
|
|
|
|
struct BattleFrontierTrainer
|
|
{
|
|
u8 facilityClass;
|
|
u8 filler1[3];
|
|
u8 trainerName[PLAYER_NAME_LENGTH + 1];
|
|
u16 speechBefore[EASY_CHAT_BATTLE_WORDS_COUNT];
|
|
u16 speechWin[EASY_CHAT_BATTLE_WORDS_COUNT];
|
|
u16 speechLose[EASY_CHAT_BATTLE_WORDS_COUNT];
|
|
const u16 *monSet;
|
|
};
|
|
|
|
// Temporary storage for monIds of the opponent team
|
|
// during team generation in battle factory and similar facilities.
|
|
extern u16 gFrontierTempParty[MAX_FRONTIER_PARTY_SIZE];
|
|
|
|
extern const struct BattleFrontierTrainer *gFacilityTrainers;
|
|
extern const struct TrainerMon *gFacilityTrainerMons;
|
|
extern const struct BattleFrontierTrainer gBattleFrontierTrainers[];
|
|
extern const struct TrainerMon gBattleFrontierMons[];
|
|
|
|
void DoFacilityTrainerBattle(struct ScriptContext *ctx);
|
|
void FillFrontierTrainerParty(u8 monsCount);
|
|
void FillFrontierTrainersParties(u8 monsCount);
|
|
void CreateFacilityMon(const struct TrainerMon *fmon, u16 level, u8 fixedIV, u32 otID, u32 flags, struct Pokemon *dst);
|
|
|
|
#endif // GUARD_BATTLE_FRONTIER_H
|