Reformat compare + goto_if/call_if to single statements
This commit is contained in:
@@ -6,8 +6,7 @@ BattleFrontier_BattleTowerCorridor_MapScripts::
|
||||
.byte 0
|
||||
|
||||
BattleFrontier_BattleTowerCorridor_OnLoad:
|
||||
compare VAR_0x8006, 1
|
||||
goto_if_eq BattleFrontier_BattleTowerCorridor_EventScript_OpenFarDoor
|
||||
goto_if_eq VAR_0x8006, 1, BattleFrontier_BattleTowerCorridor_EventScript_OpenFarDoor
|
||||
setmetatile 12, 0, METATILE_BattleFrontier_CorridorOpenDoor_Top, FALSE
|
||||
setmetatile 12, 1, METATILE_BattleFrontier_CorridorOpenDoor_Bottom, FALSE
|
||||
end
|
||||
@@ -23,8 +22,7 @@ BattleFrontier_BattleTowerCorridor_OnFrame:
|
||||
|
||||
BattleFrontier_BattleTowerCorridor_EventScript_EnterCorridor::
|
||||
setvar VAR_TEMP_0, 1
|
||||
compare VAR_0x8006, 1
|
||||
goto_if_eq BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor
|
||||
goto_if_eq VAR_0x8006, 1, BattleFrontier_BattleTowerCorridor_EventScript_WalkToFarDoor
|
||||
applymovement LOCALID_ATTENDANT, BattleFrontier_BattleTowerCorridor_Movement_AttendantWalkToDoor
|
||||
applymovement OBJ_EVENT_ID_PLAYER, BattleFrontier_BattleTowerCorridor_Movement_PlayerWalkToDoor
|
||||
waitmovement 0
|
||||
|
||||
Reference in New Issue
Block a user