Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -38,8 +38,7 @@ BirthIsland_Exterior_OnResume:
|
||||
|
||||
BirthIsland_Exterior_EventScript_TryRemoveDeoxys::
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, B_OUTCOME_CAUGHT
|
||||
goto_if_ne Common_EventScript_NopReturn
|
||||
goto_if_ne VAR_RESULT, B_OUTCOME_CAUGHT, Common_EventScript_NopReturn
|
||||
removeobject LOCALID_DEOXYS
|
||||
return
|
||||
|
||||
@@ -92,12 +91,9 @@ BirthIsland_Exterior_EventScript_Deoxys::
|
||||
waitstate
|
||||
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
||||
specialvar VAR_RESULT, GetBattleOutcome
|
||||
compare VAR_RESULT, B_OUTCOME_WON
|
||||
goto_if_eq BirthIsland_Exterior_EventScript_DefeatedDeoxys
|
||||
compare VAR_RESULT, B_OUTCOME_RAN
|
||||
goto_if_eq BirthIsland_Exterior_EventScript_RanFromDeoxys
|
||||
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
|
||||
goto_if_eq BirthIsland_Exterior_EventScript_RanFromDeoxys
|
||||
goto_if_eq VAR_RESULT, B_OUTCOME_WON, BirthIsland_Exterior_EventScript_DefeatedDeoxys
|
||||
goto_if_eq VAR_RESULT, B_OUTCOME_RAN, BirthIsland_Exterior_EventScript_RanFromDeoxys
|
||||
goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, BirthIsland_Exterior_EventScript_RanFromDeoxys
|
||||
setflag FLAG_BATTLED_DEOXYS
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user