77 */
88
99#include " CommonFramework/Exceptions/OperationFailedException.h"
10+ #include " CommonTools/Random.h"
1011#include " CommonTools/Async/InferenceRoutines.h"
1112#include " CommonTools/VisualDetectors/BlackScreenDetector.h"
1213#include " NintendoSwitch/Commands/NintendoSwitch_Commands_PushButtons.h"
1314#include " NintendoSwitch/Commands/NintendoSwitch_Commands_Superscalar.h"
1415#include " NintendoSwitch/Controllers/Procon/NintendoSwitch_ProController.h"
1516#include " NintendoSwitch/NintendoSwitch_ConsoleHandle.h"
16- #include " PokemonSwSh/MaxLair/AI/PokemonSwSh_MaxLair_AI.h"
1717#include " PokemonFRLG/Inference/Dialogs/PokemonFRLG_DialogDetector.h"
1818#include " PokemonFRLG/Inference/Sounds/PokemonFRLG_ShinySoundDetector.h"
1919#include " PokemonFRLG/Inference/Menus/PokemonFRLG_StartMenuDetector.h"
@@ -34,7 +34,7 @@ void soft_reset(ConsoleHandle& console, ProControllerContext& context){
3434
3535 // Random wait before pressing start/A
3636 console.log (" Randomly waiting..." );
37- Milliseconds rng_wait = std::chrono::milliseconds (PokemonSwSh::MaxLairInternal::random (0 , 5000 ));
37+ Milliseconds rng_wait = std::chrono::milliseconds (random_u32 (0 , 5000 ));
3838 pbf_wait (context, rng_wait);
3939 context.wait_for_all_requests ();
4040
@@ -92,7 +92,7 @@ void soft_reset(ConsoleHandle& console, ProControllerContext& context){
9292
9393 // Random wait no.2
9494 console.log (" Randomly waiting..." );
95- Milliseconds rng_wait2 = std::chrono::milliseconds (PokemonSwSh::MaxLairInternal::random (0 , 5000 ));
95+ Milliseconds rng_wait2 = std::chrono::milliseconds (random_u32 (0 , 5000 ));
9696 pbf_wait (context, rng_wait2);
9797 context.wait_for_all_requests ();
9898
0 commit comments