Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -5,10 +5,8 @@ VictoryRoad_1F_MapScripts::
|
||||
.byte 0
|
||||
|
||||
VictoryRoad_1F_OnTransition:
|
||||
compare VAR_VICTORY_ROAD_1F_STATE, 1
|
||||
call_if_eq VictoryRoad_1F_EventScript_SetEntranceWallyPos1
|
||||
compare VAR_VICTORY_ROAD_1F_STATE, 2
|
||||
call_if_eq VictoryRoad_1F_EventScript_SetEntranceWallyPos2
|
||||
call_if_eq VAR_VICTORY_ROAD_1F_STATE, 1, VictoryRoad_1F_EventScript_SetEntranceWallyPos1
|
||||
call_if_eq VAR_VICTORY_ROAD_1F_STATE, 2, VictoryRoad_1F_EventScript_SetEntranceWallyPos2
|
||||
end
|
||||
|
||||
VictoryRoad_1F_EventScript_SetEntranceWallyPos1::
|
||||
@@ -88,8 +86,7 @@ VictoryRoad_1F_EventScript_EntranceWally::
|
||||
VictoryRoad_1F_EventScript_ExitWally::
|
||||
trainerbattle_single TRAINER_WALLY_VR_2, VictoryRoad_1F_Text_WallyIntro, VictoryRoad_1F_Text_WallyDefeat
|
||||
specialvar VAR_RESULT, ShouldTryRematchBattle
|
||||
compare VAR_RESULT, TRUE
|
||||
goto_if_eq VictoryRoad_1F_EventScript_RematchWally
|
||||
goto_if_eq VAR_RESULT, TRUE, VictoryRoad_1F_EventScript_RematchWally
|
||||
msgbox VictoryRoad_1F_Text_WallyPostBattle, MSGBOX_AUTOCLOSE
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user