summaryrefslogtreecommitdiff
path: root/data/scripts/trainer_battle.inc
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-01-16 09:53:08 -0500
committerGitHub <noreply@github.com>2020-01-16 09:53:08 -0500
commitfad367402892e1c25634c4448936d84a621c341c (patch)
treeb796aba2ae57729cae5f78767336082dd46a6b21 /data/scripts/trainer_battle.inc
parent0bc479db34154988c6322bf5f2bb6d48556f62c3 (diff)
parent884b46a5dc26ae9e0c0abcf7e0d69c1122a30e22 (diff)
Merge pull request #225 from GriffinRichards/doc-questlog
Document some quest log
Diffstat (limited to 'data/scripts/trainer_battle.inc')
-rw-r--r--data/scripts/trainer_battle.inc16
1 files changed, 4 insertions, 12 deletions
diff --git a/data/scripts/trainer_battle.inc b/data/scripts/trainer_battle.inc
index f16e30ada..ccb279300 100644
--- a/data/scripts/trainer_battle.inc
+++ b/data/scripts/trainer_battle.inc
@@ -48,9 +48,7 @@ EventScript_DoTrainerBattle:: @ 81A4F21
applymovement VAR_LAST_TALKED, Movement_1A4FC5
waitmovement 0
special PlayTrainerEncounterMusic
- special sub_8110AB4
- compare VAR_RESULT, 2
- goto_if_eq EventScript_1A501A
+ goto_if_questlog EventScript_1A501A
battlebegin
ontrainerbattleend
@@ -64,9 +62,7 @@ EventScript_TryDoRematchBattle:: @ 81A4F3E
special ScrSpecial_ShowTrainerIntroSpeech
waitmessage
waitbuttonpress
- special sub_8110AB4
- compare VAR_RESULT, 2
- goto_if_eq EventScript_1A4FB8
+ goto_if_questlog EventScript_1A4FB8
special ScrSpecial_StartTrainerEyeRematch
waitstate
releaseall
@@ -87,9 +83,7 @@ EventScript_TryDoDoubleRematchBattle:: @ 81A4F73
special ScrSpecial_ShowTrainerIntroSpeech
waitmessage
waitbuttonpress
- special sub_8110AB4
- compare VAR_RESULT, 2
- goto_if_eq EventScript_1A4FB8
+ goto_if_questlog EventScript_1A4FB8
special ScrSpecial_StartTrainerEyeRematch
waitstate
releaseall
@@ -122,9 +116,7 @@ EventScript_1A4FC7:: @ 81A4FC7
special ScrSpecial_ShowTrainerIntroSpeech
waitmessage
waitbuttonpress
- special sub_8110AB4
- compare VAR_RESULT, 2
- goto_if_eq EventScript_1A501A
+ goto_if_questlog EventScript_1A501A
battlebegin
specialvar VAR_RESULT, ScrSpecial_GetTrainerBattleMode
compare VAR_RESULT, 0