Reformat compare + goto_if/call_if to single statements

This commit is contained in:
GriffinR
2021-11-18 23:06:30 -05:00
parent c57efdba5d
commit e66ea0cb99
293 changed files with 2990 additions and 5978 deletions

View File

@@ -7,8 +7,7 @@ Route112_CableCarStation_MapScripts::
Route112_CableCarStation_OnTransition:
setescapewarp MAP_ROUTE112, 28, 28
compare VAR_CABLE_CAR_STATION_STATE, 2
call_if_eq Route112_CableCarStation_EventScript_MoveAttendantAside
call_if_eq VAR_CABLE_CAR_STATION_STATE, 2, Route112_CableCarStation_EventScript_MoveAttendantAside
end
Route112_CableCarStation_EventScript_MoveAttendantAside::
@@ -35,10 +34,8 @@ Route112_CableCarStation_EventScript_Attendant::
lock
faceplayer
msgbox Route112_CableCarStation_Text_CableCarReadyGetOn, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq Route112_CableCarStation_EventScript_RideCableCar
compare VAR_RESULT, NO
goto_if_eq Route112_CableCarStation_EventScript_DeclineRide
goto_if_eq VAR_RESULT, YES, Route112_CableCarStation_EventScript_RideCableCar
goto_if_eq VAR_RESULT, NO, Route112_CableCarStation_EventScript_DeclineRide
end
Route112_CableCarStation_EventScript_RideCableCar::