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
+5 -6
View File
@@ -25,8 +25,7 @@ BirthIsland_Exterior_EventScript_267F4E:: @ 8267F4E
return
BirthIsland_Exterior_EventScript_267F55:: @ 8267F55
checkflag FLAG_0x1AC
goto_eq BirthIsland_Exterior_EventScript_27374E
goto_if_set FLAG_0x1AC, BirthIsland_Exterior_EventScript_27374E
clearflag FLAG_HIDE_BIRTH_ISLAND_DEOXYS_TRIANGLE
clearflag FLAG_0x8D4
return
@@ -39,7 +38,7 @@ BirthIsland_Exterior_MapScript1_267F65: @ 8267F65
BirthIsland_Exterior_EventScript_267F6F:: @ 8267F6F
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
goto_if 5, BirthIsland_Exterior_EventScript_27374E
goto_if_ne BirthIsland_Exterior_EventScript_27374E
removeobject 2
return
@@ -93,11 +92,11 @@ BirthIsland_Exterior_EventScript_267FC1:: @ 8267FC1
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
goto_eq BirthIsland_Exterior_EventScript_26803B
goto_if_eq BirthIsland_Exterior_EventScript_26803B
compare VAR_RESULT, 4
goto_eq BirthIsland_Exterior_EventScript_268049
goto_if_eq BirthIsland_Exterior_EventScript_268049
compare VAR_RESULT, 5
goto_eq BirthIsland_Exterior_EventScript_268049
goto_if_eq BirthIsland_Exterior_EventScript_268049
setflag FLAG_0x1AD
release
end