summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.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_script_commands.c
parentbfc64c9689d4518c64ba15cd7d52b9a6149fd218 (diff)
Move all trainer defines to trainers.h and identify frontier brain trainer id
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index ecba9f934..9c48b083c 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -3533,7 +3533,7 @@ static void atk24(void)
if (gBattleControllerExecFlags)
return;
- if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER && gPartnerTrainerId == STEVEN_PARTNER_ID)
+ if (gBattleTypeFlags & BATTLE_TYPE_INGAME_PARTNER && gPartnerTrainerId == TRAINER_STEVEN_PARTNER)
{
for (i = 0; i < 3; i++)
{
@@ -5870,7 +5870,7 @@ static u32 GetTrainerMoneyToGive(u16 trainerId)
u32 lastMonLevel = 0;
u32 moneyReward = 0;
- if (trainerId == SECRET_BASE_OPPONENT)
+ if (trainerId == TRAINER_SECRET_BASE)
{
moneyReward = 20 * gBattleResources->secretBase->party.levels[0] * gBattleStruct->moneyMultiplier;
}
@@ -8124,7 +8124,7 @@ static void atk9E_metronome(void)
s32 i;
gCurrentMove = (Random() & 0x1FF) + 1;
- if (gCurrentMove > LAST_MOVE_INDEX)
+ if (gCurrentMove >= MOVES_COUNT)
continue;
for (i = 0; i < 4; i++); // ?