|
@@ -427,7 +427,7 @@ class check_buildOrResearch(dongri_task):
|
|
|
if not handRet:
|
|
|
return False
|
|
|
|
|
|
- detailRet, detailPos = waitFindImg(check_img.detail, 2, 1)
|
|
|
+ detailRet, detailPos = waitFindImg((check_img.detail,check_img.detail2), 2, 1)
|
|
|
dstPos = [0, 0]
|
|
|
if not detailRet:
|
|
|
# 如果找不到详细信息,兵营之类的,需点中间
|
|
@@ -441,12 +441,12 @@ class check_buildOrResearch(dongri_task):
|
|
|
tryTimes -= 1
|
|
|
myTimeSleep_big()
|
|
|
pcacc_mouse.click(dst_x=dstPos[0], dst_y=dstPos[1])
|
|
|
- if waitClickImg_noWait_withBool(check_img.research, 2, 1):
|
|
|
- dstType = 'research'
|
|
|
- break
|
|
|
- elif waitClickImg_noWait_withBool(check_img.build_upgrade, 2, 1):
|
|
|
+ if waitClickImg_noWait_withBool(check_img.build_upgrade, 2, 1):
|
|
|
dstType = 'build'
|
|
|
break
|
|
|
+ elif waitClickImg_noWait_withBool(check_img.research, 2, 1):
|
|
|
+ dstType = 'research'
|
|
|
+ break
|
|
|
break
|
|
|
if dstType == 'none':
|
|
|
print('没有找到建筑或研究')
|
|
@@ -585,7 +585,7 @@ if __name__ == '__main__':
|
|
|
#task_collect().run()
|
|
|
#task_train().run()
|
|
|
#task_information().run()
|
|
|
- #check_buildOrResearch().run()
|
|
|
+ check_buildOrResearch().run()
|
|
|
#task_checkDonata().run()
|
|
|
#task_collect(1).run()
|
|
|
#task_collect(2).run()
|
|
@@ -593,4 +593,4 @@ if __name__ == '__main__':
|
|
|
#task_collect(4).run()
|
|
|
#task_returnAllLine().run()
|
|
|
#task_paticipateInTeam().run()
|
|
|
- task_train(True).run()
|
|
|
+ #task_train(True).run()
|