From cde43728ecd0fc18a10121490a76ad6832f60c4a Mon Sep 17 00:00:00 2001 From: kichithewolf Date: Wed, 1 Apr 2026 15:36:09 -0400 Subject: [PATCH] min time for throw no sound --- SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp | 2 +- SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp | 2 +- .../Programs/ShinyHunting/PokemonRSE_AudioStarterReset.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp b/SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp index eda690fd5..91b8a670e 100644 --- a/SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp +++ b/SerialPrograms/Source/PokemonFRLG/PokemonFRLG_Navigation.cpp @@ -296,7 +296,7 @@ bool handle_encounter(ConsoleHandle& console, ProControllerContext& context, boo }, {{shiny_detector}} ); - shiny_detector.throw_if_no_sound(); + shiny_detector.throw_if_no_sound(std::chrono::milliseconds(1000)); if (res == 0){ console.log("Shiny detected!"); return true; diff --git a/SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp b/SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp index 49dd2f344..590a2779b 100644 --- a/SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp +++ b/SerialPrograms/Source/PokemonRSE/PokemonRSE_Navigation.cpp @@ -176,7 +176,7 @@ bool handle_encounter(ConsoleHandle& console, ProControllerContext& context, boo }, {{shiny_detector}} ); - shiny_detector.throw_if_no_sound(); + shiny_detector.throw_if_no_sound(std::chrono::milliseconds(1000)); if (res == 0){ console.log("Shiny detected!"); return true; diff --git a/SerialPrograms/Source/PokemonRSE/Programs/ShinyHunting/PokemonRSE_AudioStarterReset.cpp b/SerialPrograms/Source/PokemonRSE/Programs/ShinyHunting/PokemonRSE_AudioStarterReset.cpp index 42014384c..5b07b5c64 100644 --- a/SerialPrograms/Source/PokemonRSE/Programs/ShinyHunting/PokemonRSE_AudioStarterReset.cpp +++ b/SerialPrograms/Source/PokemonRSE/Programs/ShinyHunting/PokemonRSE_AudioStarterReset.cpp @@ -224,7 +224,7 @@ void AudioStarterReset::program(SingleSwitchProgramEnvironment& env, ProControll }, {{pooch_detector}} ); - pooch_detector.throw_if_no_sound(); + pooch_detector.throw_if_no_sound(std::chrono::milliseconds(1000)); if (res == 0){ env.log("Shiny Poochyena detected!"); stats.poochyena++; @@ -277,7 +277,7 @@ void AudioStarterReset::program(SingleSwitchProgramEnvironment& env, ProControll }, {{starter_detector}} ); - starter_detector.throw_if_no_sound(); + starter_detector.throw_if_no_sound(std::chrono::milliseconds(1000)); context.wait_for_all_requests(); if (res2 == 0){ env.log("Shiny starter detected!");