summaryrefslogtreecommitdiff
path: root/data/maps/Route102/scripts.inc
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-18 23:06:30 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-11-18 23:06:51 -0500
commite66ea0cb996c70093fe3f250cafb7f1f87e84d4d (patch)
tree162e07afa059e7683e4aa991a1a82205c16b3025 /data/maps/Route102/scripts.inc
parentc57efdba5d3cc475f75c5909c31f96bbce6190b8 (diff)
Reformat compare + goto_if/call_if to single statements
Diffstat (limited to 'data/maps/Route102/scripts.inc')
-rw-r--r--data/maps/Route102/scripts.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/data/maps/Route102/scripts.inc b/data/maps/Route102/scripts.inc
index cc1eaa4bb..6131ef9e0 100644
--- a/data/maps/Route102/scripts.inc
+++ b/data/maps/Route102/scripts.inc
@@ -20,12 +20,10 @@ Route102_EventScript_Boy::
Route102_EventScript_Calvin::
trainerbattle_single TRAINER_CALVIN_1, Route102_Text_CalvinIntro, Route102_Text_CalvinDefeated, Route102_EventScript_CalvinRegisterMatchCallAfterBattle
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, TRUE
- goto_if_eq Route102_EventScript_CalvinRematch
+ goto_if_eq VAR_RESULT, TRUE, Route102_EventScript_CalvinRematch
setvar VAR_0x8004, TRAINER_CALVIN_1
specialvar VAR_RESULT, IsTrainerRegistered
- compare VAR_RESULT, FALSE
- goto_if_eq Route102_EventScript_CalvinTryRegister
+ goto_if_eq VAR_RESULT, FALSE, Route102_EventScript_CalvinTryRegister
msgbox Route102_Text_CalvinPostBattle, MSGBOX_DEFAULT
release
end