@@ -62,15 +62,17 @@ void open_map(ConsoleHandle& console, ProControllerContext& context){
6262
6363FastTravelState fly_from_map (ConsoleHandle& console, ProControllerContext& context){
6464 console.log (" Flying from map..." );
65-
65+ context. wait_for_all_requests ();
6666 {
6767 BlackScreenWatcher start_flying (COLOR_RED);
68- BlueDialogWatcher blue_dialog (COLOR_BLUE, &console.overlay ());
68+ BlueDialogWatcher blue_dialog (COLOR_BLUE, &console.overlay (), 50ms );
6969 int ret = run_until<ProControllerContext>(
7070 console, context,
71- [](ProControllerContext& context){
72- for (int i = 0 ; i < 5 ; i++){
73- pbf_press_button (context, BUTTON_A, 50ms, 2s);
71+ [&](ProControllerContext& context){
72+ pbf_mash_button (context, BUTTON_A, 1000ms);
73+ context.wait_for_all_requests ();
74+ for (int i = 0 ; i < 10 ; i++){
75+ pbf_press_button (context, BUTTON_A, 30ms, 200ms);
7476 }
7577 },
7678 {start_flying, blue_dialog,}
@@ -121,6 +123,73 @@ FastTravelState fly_from_map(ConsoleHandle& console, ProControllerContext& conte
121123}
122124
123125
126+ void move_map_cursor_from_entrance_to_zone (ConsoleHandle& console, ProControllerContext& context, WildZone zone){
127+ pbf_wait (context, 300ms);
128+ switch (zone){
129+ case WildZone::WILD_ZONE_1:
130+ pbf_move_left_joystick (context, 0 , 150 , 230ms, 0ms);
131+ break ;
132+ case WildZone::WILD_ZONE_2:
133+ pbf_move_left_joystick (context, 120 , 0 , 100ms, 0ms);
134+ break ;
135+ case WildZone::WILD_ZONE_3:
136+ pbf_move_left_joystick (context, 128 , 0 , 100ms, 0ms);
137+ break ;
138+ case WildZone::WILD_ZONE_4:
139+ pbf_move_left_joystick (context, 255 , 128 , 100ms, 0ms);
140+ break ;
141+ case WildZone::WILD_ZONE_5:
142+ pbf_move_left_joystick (context, 170 , 0 , 100ms, 0ms);
143+ break ;
144+ case WildZone::WILD_ZONE_6:
145+ pbf_move_left_joystick (context, 80 , 0 , 100ms, 0ms);
146+ break ;
147+ case WildZone::WILD_ZONE_7:
148+ pbf_move_left_joystick (context, 0 , 100 , 100ms, 0ms);
149+ break ;
150+ case WildZone::WILD_ZONE_8:
151+ pbf_move_left_joystick (context, 0 , 160 , 100ms, 0ms);
152+ break ;
153+ case WildZone::WILD_ZONE_9:
154+ pbf_move_left_joystick (context, 70 , 0 , 100ms, 0ms);
155+ break ;
156+ case WildZone::WILD_ZONE_10:
157+ pbf_move_left_joystick (context, 255 , 90 , 100ms, 0ms);
158+ break ;
159+ case WildZone::WILD_ZONE_11:
160+ pbf_move_left_joystick (context, 0 , 40 , 100ms, 0ms);
161+ break ;
162+ case WildZone::WILD_ZONE_12:
163+ pbf_move_left_joystick (context, 20 , 0 , 150ms, 0ms);
164+ break ;
165+ case WildZone::WILD_ZONE_13:
166+ pbf_move_left_joystick (context, 0 , 160 , 100ms, 0ms);
167+ break ;
168+ case WildZone::WILD_ZONE_14:
169+ pbf_move_left_joystick (context, 110 , 255 , 100ms, 0ms);
170+ break ;
171+ case WildZone::WILD_ZONE_15:
172+ pbf_move_left_joystick (context, 0 , 0 , 100ms, 0ms);
173+ break ;
174+ case WildZone::WILD_ZONE_16:
175+ pbf_move_left_joystick (context, 220 , 0 , 100ms, 0ms);
176+ break ;
177+ case WildZone::WILD_ZONE_17:
178+ pbf_move_left_joystick (context, 210 , 0 , 100ms, 0ms);
179+ break ;
180+ case WildZone::WILD_ZONE_18:
181+ pbf_move_left_joystick (context, 20 , 255 , 100ms, 0ms);
182+ break ;
183+ case WildZone::WILD_ZONE_19:
184+ pbf_move_left_joystick (context, 80 , 255 , 100ms, 0ms);
185+ break ;
186+ case WildZone::WILD_ZONE_20:
187+ pbf_move_left_joystick (context, 0 , 90 , 140ms, 0ms);
188+ break ;
189+ }
190+ pbf_wait (context, 300ms);
191+ }
192+
124193
125194
126195void sit_on_bench (ConsoleHandle& console, ProControllerContext& context){
0 commit comments