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

@@ -45,10 +45,8 @@ SSTidalRooms_EventScript_ArrivedInLilycove::
return
SSTidalCorridor_EventScript_ReachedStepCount::
compare VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT
goto_if_eq SSTidalCorridor_EventScript_HalfwayToLilycove
compare VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT
goto_if_eq SSTidalCorridor_EventScript_ArrivedInSlateport
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT, SSTidalCorridor_EventScript_HalfwayToLilycove
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT, SSTidalCorridor_EventScript_ArrivedInSlateport
end
SSTidalCorridor_EventScript_HalfwayToLilycove::
@@ -117,10 +115,8 @@ SSTidalCorridor_EventScript_Cabin4Sign::
SSTidalCorridor_EventScript_ExitSailor::
lock
faceplayer
compare VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_LILYCOVE
goto_if_eq SSTidalCorridor_EventScript_ExitLilycove
compare VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_SLATEPORT
goto_if_eq SSTidalCorridor_EventScript_ExitSlateport
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_LILYCOVE, SSTidalCorridor_EventScript_ExitLilycove
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_LAND_SLATEPORT, SSTidalCorridor_EventScript_ExitSlateport
msgbox SSTidalCorridor_Text_CanRestInCabin2, MSGBOX_DEFAULT
release
end
@@ -149,10 +145,8 @@ SSTidalCorridor_EventScript_HideSnatchGiver::
SSTidalCorridor_EventScript_Porthole::
lockall
compare VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT
goto_if_eq SSTidalCorridor_EventScript_LookThroughPorthole
compare VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT
goto_if_eq SSTidalCorridor_EventScript_LookThroughPorthole
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_DEPART_SLATEPORT, SSTidalCorridor_EventScript_LookThroughPorthole
goto_if_eq VAR_SS_TIDAL_STATE, SS_TIDAL_HALFWAY_SLATEPORT, SSTidalCorridor_EventScript_LookThroughPorthole
msgbox SSTidalCorridor_Text_HorizonSpreadsBeyondPorthole, MSGBOX_DEFAULT
releaseall
end