Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -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::
|
||||
|
||||
Reference in New Issue
Block a user