Skip to content

Commit

Permalink
Update tupo
Browse files Browse the repository at this point in the history
  • Loading branch information
lisai9093 committed Jun 1, 2024
1 parent c464cd0 commit 7cd813d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yys.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,20 @@ def tupo():
target=screen
pts=action.locate(target,want,0)
if not len(pts)==0:
#print('debug: ', last_click,', ', i)
if last_click==i:
if 'jingong' in i:
if 'jingong' in i or 'lingxunzhang' in i:
refresh=refresh+1
print('进攻CD,暂停5分钟')
t=60*5
time.sleep(t)
last_click=''
continue
else:
refresh=refresh+1
else:
refresh=0
last_click=i
print('debug:',i,', ',refresh)
if refresh>6:
print('进攻次数上限')
select_mode()
Expand Down

0 comments on commit 7cd813d

Please sign in to comment.