Skip to content

Commit 83b86da

Browse files
committed
add logging, comments for Autostory
1 parent d513dbc commit 83b86da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,10 @@ void do_action_and_monitor_for_battles_early(
830830
{no_minimap}
831831
);
832832
if (ret == 0){ // if see no minimap. stop and see if we detect a battle. if so, throw Battl exception
833+
stream.log("do_action_and_monitor_for_battles_early: Detected no mini-map. Possibly caught in a battle.");
833834
do_action_and_monitor_for_battles(info, stream, context,
834835
[&](const ProgramInfo& info, VideoStream& stream, ProControllerContext& context){
836+
// wait 30 seconds to see if we detect a battle. If so, this throws an UnexpectedBattleException.
835837
pbf_wait(context, Seconds(30));
836838
});
837839

0 commit comments

Comments
 (0)