Skip to content

Commit d64aa4c

Browse files
committed
BBQ farmer: reset date after skipping
1 parent 61dd75d commit d64aa4c

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,16 @@ void quest_catch(
918918
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
919919
resume_game_from_home(console, context);
920920

921+
//Wait a bit and then fix the time to prevent running out of years
922+
pbf_wait(context, 250);
923+
context.wait_for_all_requests();
924+
pbf_press_button(context, BUTTON_HOME, 80ms, GameSettings::instance().GAME_TO_HOME_DELAY1);
925+
home_to_date_time(console, context, false);
926+
pbf_press_button(context, BUTTON_A, 20, 105);
927+
pbf_press_button(context, BUTTON_A, 20, 105);
928+
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
929+
resume_game_from_home(console, context);
930+
921931
//Heal up and then reset position again.
922932
OverworldWatcher done_healing(console.logger(), COLOR_BLUE);
923933
pbf_move_left_joystick(context, 128, 0, 100, 20);

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,16 @@ void quest_tera_self_defeat(
707707
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
708708
resume_game_from_home(console, context);
709709

710+
//Wait a bit and then fix the time to prevent running out of years
711+
pbf_wait(context, 250);
712+
context.wait_for_all_requests();
713+
pbf_press_button(context, BUTTON_HOME, 80ms, GameSettings::instance().GAME_TO_HOME_DELAY1);
714+
home_to_date_time(console, context, false);
715+
pbf_press_button(context, BUTTON_A, 20, 105);
716+
pbf_press_button(context, BUTTON_A, 20, 105);
717+
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
718+
resume_game_from_home(console, context);
719+
710720
//Heal up and then reset position again.
711721
OverworldWatcher done_healing(console.logger(), COLOR_BLUE);
712722
pbf_move_left_joystick(context, 128, 0, 100, 20);
@@ -843,6 +853,16 @@ void quest_sneak_up(
843853
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
844854
resume_game_from_home(console, context);
845855
context.wait_for_all_requests();
856+
857+
//Wait a bit and then fix the time to prevent running out of years
858+
pbf_wait(context, 250);
859+
context.wait_for_all_requests();
860+
pbf_press_button(context, BUTTON_HOME, 80ms, GameSettings::instance().GAME_TO_HOME_DELAY1);
861+
home_to_date_time(console, context, false);
862+
pbf_press_button(context, BUTTON_A, 20, 105);
863+
pbf_press_button(context, BUTTON_A, 20, 105);
864+
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
865+
resume_game_from_home(console, context);
846866
}
847867

848868
void quest_wild_tera(
@@ -917,6 +937,16 @@ void quest_wild_tera(
917937
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
918938
resume_game_from_home(console, context);
919939

940+
//Wait a bit and then fix the time to prevent running out of years
941+
pbf_wait(context, 250);
942+
context.wait_for_all_requests();
943+
pbf_press_button(context, BUTTON_HOME, 80ms, GameSettings::instance().GAME_TO_HOME_DELAY1);
944+
home_to_date_time(console, context, false);
945+
pbf_press_button(context, BUTTON_A, 20, 105);
946+
pbf_press_button(context, BUTTON_A, 20, 105);
947+
pbf_press_button(context, BUTTON_HOME, 160ms, ConsoleSettings::instance().SETTINGS_TO_HOME_DELAY0);
948+
resume_game_from_home(console, context);
949+
920950
//Heal up and then reset position again.
921951
OverworldWatcher done_healing(console.logger(), COLOR_BLUE);
922952
pbf_move_left_joystick(context, 128, 0, 100, 20);

0 commit comments

Comments
 (0)