summaryrefslogtreecommitdiff
path: root/data/maps/Route2_EastBuilding
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-05-16 13:30:03 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-05-16 13:30:03 -0400
commita2d1b854d678204929580b8d82e507f908261fc1 (patch)
tree36166505adf0b81d79f787c32250e0e3a1514944 /data/maps/Route2_EastBuilding
parent006881415d315e34876f4d4f3060aca4dcf8e98d (diff)
goto_if_eq and switch/case in scripts
Diffstat (limited to 'data/maps/Route2_EastBuilding')
-rw-r--r--data/maps/Route2_EastBuilding/scripts.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/maps/Route2_EastBuilding/scripts.inc b/data/maps/Route2_EastBuilding/scripts.inc
index 21b6f9193..9716879a1 100644
--- a/data/maps/Route2_EastBuilding/scripts.inc
+++ b/data/maps/Route2_EastBuilding/scripts.inc
@@ -6,10 +6,10 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
faceplayer
call EventScript_16F70B
checkflag FLAG_0x23B
- goto_if 1, EventScript_16F701
+ goto_if_eq EventScript_16F701
msgbox gUnknown_819D64F, MSGBOX_YESNO
compare_var_to_value VAR_RESULT, 0
- goto_if 1, EventScript_1A7AD1
+ goto_if_eq EventScript_1A7AD1
setvar VAR_0x8004, 0
specialvar VAR_RESULT, sub_80CA3D8
getnumberstring 2, VAR_0x8006
@@ -19,7 +19,7 @@ Route2_EastBuilding_EventScript_16F67F:: @ 816F67F
msgbox gUnknown_819D74E
checkitemspace ITEM_HM05, 1
compare_var_to_value VAR_RESULT, 0
- goto_if 1, EventScript_1A7AC7
+ goto_if_eq EventScript_1A7AC7
additem ITEM_HM05, 1
giveitemfanfaremsg gUnknown_819D7A1, ITEM_HM05
setflag FLAG_0x23B