Skip to content

Commit

Permalink
Make it picture agnostic for sim games plus skip scouts on error
Browse files Browse the repository at this point in the history
  • Loading branch information
MytkoEnko committed Oct 22, 2020
1 parent 056cba5 commit 3f3dbbc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Binary file added src/img/dupa.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/sim-game20.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/img/sim-game21.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 7 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,13 @@ def sign_all(fivestars=0):
time.sleep(0.5)
if fivestars:
turn_down(fivestars)
if int(recognize('scouts').split('/')[0]) == int(fivestars):
press_B()
logger.info('No scouts left or only skipped left. Sign all script finished, going back')
break
try:
if int(recognize('scouts').split('/')[0]) == int(fivestars):
press_B()
logger.info('No scouts left or only skipped left. Sign all script finished, going back')
break
except:
logger.error(f'Something went wrong during scouts signing. Make sure you have at least {fivestars} scouts')
if isok('sign/confirm.JPG', 9):
press_A()
if isok('sign/chosed-trainer.JPG', 9):
Expand Down

0 comments on commit 3f3dbbc

Please sign in to comment.