improve goto_if macros

This commit is contained in:
Melody
2018-12-21 20:28:24 -05:00
parent 87fd6b8dc2
commit ac2e4adf2d
273 changed files with 2555 additions and 3036 deletions
@@ -133,10 +133,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
compare VAR_TEMP_1, 2
call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220313
compare VAR_RESULT, 0
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
checkitemspace VAR_TEMP_0, 1
compare VAR_RESULT, 0
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
compare VAR_TEMP_1, 0
call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_22031A
compare VAR_TEMP_1, 1
@@ -154,10 +154,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
msgbox gUnknown_08272A9A, MSGBOX_DEFAULT
random 64
compare VAR_RESULT, 0
goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
checkitemspace VAR_TEMP_0, 1
compare VAR_RESULT, 0
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
playse SE_JIHANKI
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
giveitem VAR_TEMP_0, 1
@@ -166,10 +166,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
msgbox gUnknown_08272A9A, MSGBOX_DEFAULT
random 64
compare VAR_RESULT, 0
goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
goto_if_ne LilycoveCity_DepartmentStoreRooftop_EventScript_220436
checkitemspace VAR_TEMP_0, 1
compare VAR_RESULT, 0
goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
playse SE_JIHANKI
msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, MSGBOX_DEFAULT
giveitem VAR_TEMP_0, 1