summaryrefslogtreecommitdiff
path: root/data/maps/Route113/scripts.inc
diff options
context:
space:
mode:
authorMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
committerMelody <melody@pallet.town>2018-12-21 20:28:24 -0500
commitac2e4adf2da2f30a741556e20e5bc9a494997581 (patch)
tree1a05a202cfece044d546094581d8463a9b6e452c /data/maps/Route113/scripts.inc
parent87fd6b8dc21b37b656f16e3f11832c6951328750 (diff)
improve goto_if macros
Diffstat (limited to 'data/maps/Route113/scripts.inc')
-rw-r--r--data/maps/Route113/scripts.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/data/maps/Route113/scripts.inc b/data/maps/Route113/scripts.inc
index b9ece3b21..85aa250ab 100644
--- a/data/maps/Route113/scripts.inc
+++ b/data/maps/Route113/scripts.inc
@@ -15,9 +15,9 @@ Route113_MapScript1_1F2161: @ 81F2161
Route113_EventScript_1F216A:: @ 81F216A
getplayerxy VAR_TEMP_0, VAR_TEMP_1
compare VAR_TEMP_0, 19
- goto_if 0, Route113_EventScript_1F2189
+ goto_if_lt Route113_EventScript_1F2189
compare VAR_TEMP_0, 84
- goto_if 2, Route113_EventScript_1F2189
+ goto_if_gt Route113_EventScript_1F2189
setweather 7
return
@@ -62,7 +62,7 @@ Route113_EventScript_1F21EE:: @ 81F21EE
trainerbattle_single TRAINER_MADELINE_1, Route113_Text_299EA6, Route113_Text_299EF9, Route113_EventScript_1F221A
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
- goto_eq Route113_EventScript_1F2239
+ goto_if_eq Route113_EventScript_1F2239
msgbox Route113_Text_299F15, MSGBOX_DEFAULT
release
end
@@ -84,7 +84,7 @@ Route113_EventScript_1F2250:: @ 81F2250
trainerbattle_single TRAINER_LAO_1, Route113_Text_29A015, Route113_Text_29A04C, Route113_EventScript_1F227C
specialvar VAR_RESULT, ShouldTryRematchBattle
compare VAR_RESULT, 1
- goto_eq Route113_EventScript_1F229B
+ goto_if_eq Route113_EventScript_1F229B
msgbox Route113_Text_29A067, MSGBOX_DEFAULT
release
end