summaryrefslogtreecommitdiff
path: root/data/maps/Route113
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/Route113
parentc57efdba5d3cc475f75c5909c31f96bbce6190b8 (diff)
Reformat compare + goto_if/call_if to single statements
Diffstat (limited to 'data/maps/Route113')
-rw-r--r--data/maps/Route113/scripts.inc12
1 files changed, 4 insertions, 8 deletions
diff --git a/data/maps/Route113/scripts.inc b/data/maps/Route113/scripts.inc
index 0a8bb092c..4f02e74b6 100644
--- a/data/maps/Route113/scripts.inc
+++ b/data/maps/Route113/scripts.inc
@@ -14,10 +14,8 @@ Route113_OnTransition:
Route113_EventScript_CheckSetAshWeather::
getplayerxy VAR_TEMP_0, VAR_TEMP_1
- compare VAR_TEMP_0, 19
- goto_if_lt Route113_EventScript_DontSetAshWeather
- compare VAR_TEMP_0, 84
- goto_if_gt Route113_EventScript_DontSetAshWeather
+ goto_if_lt VAR_TEMP_0, 19, Route113_EventScript_DontSetAshWeather
+ goto_if_gt VAR_TEMP_0, 84, Route113_EventScript_DontSetAshWeather
setweather WEATHER_VOLCANIC_ASH
return
@@ -61,8 +59,7 @@ Route113_EventScript_Dillon::
Route113_EventScript_Madeline::
trainerbattle_single TRAINER_MADELINE_1, Route113_Text_MadelineIntro, Route113_Text_MadelineDefeat, Route113_EventScript_RegisterMadeline
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, TRUE
- goto_if_eq Route113_EventScript_RematchMadeline
+ goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchMadeline
msgbox Route113_Text_MadelinePostBattle, MSGBOX_DEFAULT
release
end
@@ -83,8 +80,7 @@ Route113_EventScript_RematchMadeline::
Route113_EventScript_Lao::
trainerbattle_single TRAINER_LAO_1, Route113_Text_LaoIntro, Route113_Text_LaoDefeat, Route113_EventScript_RegisterLao
specialvar VAR_RESULT, ShouldTryRematchBattle
- compare VAR_RESULT, TRUE
- goto_if_eq Route113_EventScript_RematchLao
+ goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchLao
msgbox Route113_Text_LaoPostBattle, MSGBOX_DEFAULT
release
end