Skip to content

Commit 0f609f5

Browse files
committed
more fixes
1 parent 6ea8f8d commit 0f609f5

File tree

2 files changed

+30
-14
lines changed

2 files changed

+30
-14
lines changed

SerialPrograms/Source/PokemonSV/Programs/Farming/PokemonSV_BBQSoloFarmer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,22 @@ void BBQSoloFarmer::program(SingleSwitchProgramEnvironment& env, ProControllerCo
7878
}
7979

8080
//Fly to plaza
81-
//open_map_from_overworld(env.program_info(), env.console, context);
82-
//fly_to_overworld_from_map(env.program_info(), env.console, context);
81+
open_map_from_overworld(env.program_info(), env.console, context);
82+
fly_to_overworld_from_map(env.program_info(), env.console, context);
8383

8484
std::vector<BBQuests> quest_list; //all quests
8585
std::vector<BBQuests> quests_to_do; //do-able quests
8686
uint8_t eggs_hatched = 0; //Track eggs
8787
uint64_t num_completed_quests = 0;
8888

8989
//Test a specific quest
90-
91-
BBQuests test_quest = BBQuests::catch_any;
90+
/*
91+
BBQuests test_quest = BBQuests::catch_water;
9292
bool questTest = process_and_do_quest(env, env.console, context, BBQ_OPTIONS, test_quest, eggs_hatched);
9393
if (questTest){
9494
env.log("Finished quest.");
9595
}
96-
96+
*/
9797

9898
while (num_completed_quests < BBQ_OPTIONS.NUM_QUESTS){
9999
if (BBQ_OPTIONS.OUT_OF_EGGS == BBQOption::OOEggs::Stop && eggs_hatched >= BBQ_OPTIONS.NUM_EGGS){

SerialPrograms/Source/PokemonSV/Programs/Farming/PokemonSV_BlueberryCatchPhoto.cpp

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,8 @@ void quest_catch_navi(
400400
pbf_press_button(context, BUTTON_L, 20, 50);
401401
pbf_move_left_joystick(context, 128, 0, 100, 50);
402402

403-
//Turn slightly for switch 1
404-
if (console.state().console_type() == ConsoleType::Switch1) {
405-
pbf_move_left_joystick(context, 0, 0, 20, 50);
406-
pbf_press_button(context, BUTTON_L, 20, 50);
407-
}
403+
pbf_move_left_joystick(context, 0, 0, 20, 50);
404+
pbf_press_button(context, BUTTON_L, 20, 50);
408405

409406
break;
410407

@@ -522,13 +519,22 @@ void quest_catch_navi(
522519
pbf_move_left_joystick(context, 255, 0, 10, 20);
523520
pbf_press_button(context, BUTTON_L, 20, 50);
524521

525-
pbf_move_left_joystick(context, 128, 0, 200, 20);
522+
if (console.state().console_type() == ConsoleType::Switch1) {
523+
pbf_move_left_joystick(context, 128, 0, 200, 20);
524+
} else {
525+
pbf_move_left_joystick(context, 128, 0, 170, 20);
526+
}
527+
526528
pbf_press_button(context, BUTTON_L, 20, 50);
527529

528530
pbf_move_left_joystick(context, 0, 0, 10, 20);
529531
pbf_press_button(context, BUTTON_L, 20, 50);
530532

531-
pbf_move_left_joystick(context, 128, 0, 100, 20);
533+
if (console.state().console_type() == ConsoleType::Switch1) {
534+
pbf_move_left_joystick(context, 128, 0, 100, 20);
535+
} else {
536+
pbf_move_left_joystick(context, 128, 0, 120, 20);
537+
}
532538
pbf_wait(context, 400);
533539
context.wait_for_all_requests();
534540

@@ -558,7 +564,12 @@ void quest_catch_navi(
558564
pbf_move_left_joystick(context, 0, 128, 20, 50);
559565

560566
pbf_press_button(context, BUTTON_L | BUTTON_PLUS, 20, 105);
561-
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 200, 590, 200);
567+
568+
if (console.state().console_type() == ConsoleType::Switch1) {
569+
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 200, 575, 200);
570+
} else { //Switch 2
571+
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 200, 500, 200);
572+
}
562573

563574
pbf_press_button(context, BUTTON_PLUS, 20, 105);
564575
pbf_move_left_joystick(context, 0, 128, 20, 50);
@@ -574,7 +585,12 @@ void quest_catch_navi(
574585
pbf_move_left_joystick(context, 0, 128, 20, 50);
575586

576587
pbf_press_button(context, BUTTON_L | BUTTON_PLUS, 20, 105);
577-
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 1000, 1800, 300);
588+
589+
if (console.state().console_type() == ConsoleType::Switch1) {
590+
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 1000, 1800, 300);
591+
} else {
592+
jump_glide_fly(console, context, BBQ_OPTIONS.INVERTED_FLIGHT, 1000, 1600, 300);
593+
}
578594

579595
pbf_press_button(context, BUTTON_PLUS, 20, 105);
580596

0 commit comments

Comments
 (0)