Skip to content

Commit

Permalink
加入斗技练习
Browse files Browse the repository at this point in the history
  • Loading branch information
lisai9093 committed Jun 29, 2024
1 parent ff3f1c5 commit 4cc3fdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Binary file added png/doujilianxi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions yys.py
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ def douji():
screen=action.screenshot(monitor)

for i in ['jujue','shoudong','zidong','queren',\
'douji','douji2','douji3','douji4',\
'douji','douji2','douji3','douji4','doujilianxi',\
'doujiqueren','doujiend','ying','jixu',\
'zhunbei','zhunbei2',\
'doujiquxiao']:
Expand All @@ -890,7 +890,8 @@ def douji():
target = screen
pts = action.locate(target,want,0)
if not len(pts) == 0:
if 'douji' in i:
#print(i)
if i in ['douji','douji2','douji3','douji4']:
i='douji'
if last_click==i:
refresh=refresh+1
Expand All @@ -901,12 +902,10 @@ def douji():
if refresh>6:
print('进攻次数上限')
select_mode()

if 'douji' in i:
if i=='douji':
if cishu>30:
print('斗技次数上限')
select_mode()
doujipaidui=0
if refresh==0:
cishu=cishu+1
print('斗技次数:',cishu)
Expand Down

0 comments on commit 4cc3fdd

Please sign in to comment.