Skip to content

Commit

Permalink
Merge pull request #9 from eggins/master
Browse files Browse the repository at this point in the history
[UF] Pokemon Captured text
  • Loading branch information
GoFMaster authored Jul 21, 2016
2 parents 81732d9 + 53168a3 commit 1963992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions working.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ def encount_and_catch_pokemon(pokemon,api,position,config):
'status' in response_dict['responses']['CATCH_POKEMON']:
status = response_dict['responses']['CATCH_POKEMON']['status']
if status is 2:
print('Missed, do it again!')
print('[-] Attempted to capture pokemon - failed.. trying again!')
time.sleep(1.25)
continue
if status is 1:
if cp < config.cp:
print('Got it, keep good ones')
print('Captured Pokemon! [CP' + str(cp) + '] - exchanging for candy')
transfer_low_cp_pokomon(api,config.cp)
else:
print('got it, keep it')
print('Captured Pokemon! [CP' + str(cp) + ']')
break
time.sleep(5)
def _transfer_low_cp_pokemon(api,value,pokemon):
Expand Down

0 comments on commit 1963992

Please sign in to comment.