Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UF] Pokemon Captured text #9

Merged
merged 1 commit into from
Jul 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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