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

@@ -1,9 +1,7 @@
Common_EventScript_SetupRivalGfxId::
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalGfxIdFemale
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalGfxIdMale
goto_if_eq VAR_RESULT, MALE, EventScript_SetupRivalGfxIdFemale
goto_if_eq VAR_RESULT, FEMALE, EventScript_SetupRivalGfxIdMale
end
EventScript_SetupRivalGfxIdFemale::
@@ -16,10 +14,8 @@ EventScript_SetupRivalGfxIdMale::
Common_EventScript_SetupRivalOnBikeGfxId::
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalOnBikeGfxIdFemale
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalOnBikeGfxIdMale
goto_if_eq VAR_RESULT, MALE, EventScript_SetupRivalOnBikeGfxIdFemale
goto_if_eq VAR_RESULT, FEMALE, EventScript_SetupRivalOnBikeGfxIdMale
end
EventScript_SetupRivalOnBikeGfxIdFemale::
@@ -33,10 +29,8 @@ EventScript_SetupRivalOnBikeGfxIdMale::
@ Unused
Common_EventScript_SetupRivalGfxIdSameGender::
checkplayergender
compare VAR_RESULT, MALE
goto_if_eq EventScript_SetupRivalGfxIdMale2
compare VAR_RESULT, FEMALE
goto_if_eq EventScript_SetupRivalGfxIdFemale2
goto_if_eq VAR_RESULT, MALE, EventScript_SetupRivalGfxIdMale2
goto_if_eq VAR_RESULT, FEMALE, EventScript_SetupRivalGfxIdFemale2
end
EventScript_SetupRivalGfxIdMale2::