summaryrefslogtreecommitdiff
path: root/src/battle_setup.c
diff options
context:
space:
mode:
authorDizzyEggg <jajkodizzy@wp.pl>2018-06-30 18:55:34 +0200
committerDizzyEggg <jajkodizzy@wp.pl>2018-06-30 18:55:34 +0200
commit2d0be91217e0ea16f298bb823e954a4d6f6ff63b (patch)
treeef66209a3aa7312cde9d69a2d55f0eaecc2876fd /src/battle_setup.c
parentbfc64c9689d4518c64ba15cd7d52b9a6149fd218 (diff)
Move all trainer defines to trainers.h and identify frontier brain trainer id
Diffstat (limited to 'src/battle_setup.c')
-rw-r--r--src/battle_setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/battle_setup.c b/src/battle_setup.c
index b11083929..b2655f731 100644
--- a/src/battle_setup.c
+++ b/src/battle_setup.c
@@ -798,7 +798,7 @@ static u8 GetTrainerBattleTransition(void)
u8 enemyLevel;
u8 playerLevel;
- if (gTrainerBattleOpponent_A == SECRET_BASE_OPPONENT)
+ if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE)
return B_TRANSITION_CHAMPION;
if (gTrainers[gTrainerBattleOpponent_A].trainerClass == TRAINER_CLASS_ELITE_FOUR)
@@ -1305,7 +1305,7 @@ void BattleSetup_StartTrainerBattle(void)
static void CB2_EndTrainerBattle(void)
{
- if (gTrainerBattleOpponent_A == SECRET_BASE_OPPONENT)
+ if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE)
{
SetMainCallback2(CB2_ReturnToFieldContinueScript);
}
@@ -1329,7 +1329,7 @@ static void CB2_EndTrainerBattle(void)
static void CB2_EndRematchBattle(void)
{
- if (gTrainerBattleOpponent_A == SECRET_BASE_OPPONENT)
+ if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE)
{
SetMainCallback2(CB2_ReturnToFieldContinueScript);
}
@@ -1497,7 +1497,7 @@ const u8 *GetTrainerALoseText(void)
{
const u8 *string;
- if (gTrainerBattleOpponent_A == SECRET_BASE_OPPONENT)
+ if (gTrainerBattleOpponent_A == TRAINER_SECRET_BASE)
string = GetSecretBaseTrainerLoseText();
else
string = sTrainerADefeatSpeech;