|
@@ -420,7 +420,7 @@ class check_buildOrResearch(dongri_task):
|
|
|
|
|
|
dstType = 'none'
|
|
dstType = 'none'
|
|
while True:
|
|
while True:
|
|
- if waitFindImg_withBool([check_img.upgrade_done, check_img.upgrade_done2, check_img.upgrade_done3, check_img.upgrade_next], 2, 1):
|
|
|
|
|
|
+ if waitFindImg_withBool([check_img.upgrade_done, check_img.upgrade_done2, check_img.upgrade_done3, check_img.upgrade_next, check_img.upgrade_done4], 2, 1):
|
|
dstType = 'build'
|
|
dstType = 'build'
|
|
break
|
|
break
|
|
handRet, handPos = waitFindImg(check_img.hand, 2, 1)
|
|
handRet, handPos = waitFindImg(check_img.hand, 2, 1)
|
|
@@ -453,7 +453,7 @@ class check_buildOrResearch(dongri_task):
|
|
return False
|
|
return False
|
|
elif dstType == 'build':
|
|
elif dstType == 'build':
|
|
buildtimes = 4
|
|
buildtimes = 4
|
|
- while basic_operate.enter_auto_supply_resource([check_img.upgrade_done, check_img.upgrade_done2, check_img.upgrade_done3, check_img.upgrade_next]):
|
|
|
|
|
|
+ while basic_operate.enter_auto_supply_resource([check_img.upgrade_done, check_img.upgrade_done2, check_img.upgrade_done3, check_img.upgrade_next, check_img.upgrade_done4]):
|
|
buildtimes -= 1
|
|
buildtimes -= 1
|
|
if buildtimes == 0:
|
|
if buildtimes == 0:
|
|
break
|
|
break
|
|
@@ -567,7 +567,7 @@ if __name__ == '__main__':
|
|
#task_fightMonster(False, True).run()
|
|
#task_fightMonster(False, True).run()
|
|
#task_checkHelp().run()
|
|
#task_checkHelp().run()
|
|
#task_checkStoreRoom().run()
|
|
#task_checkStoreRoom().run()
|
|
- #task_collect().run()
|
|
|
|
|
|
+ task_collect(0, True).run()
|
|
#task_train().run()
|
|
#task_train().run()
|
|
#task_information().run()
|
|
#task_information().run()
|
|
#check_buildOrResearch().run()
|
|
#check_buildOrResearch().run()
|
|
@@ -578,4 +578,4 @@ if __name__ == '__main__':
|
|
#task_collect(4).run()
|
|
#task_collect(4).run()
|
|
#task_returnAllLine().run()
|
|
#task_returnAllLine().run()
|
|
#task_paticipateInTeam().run()
|
|
#task_paticipateInTeam().run()
|
|
- task_train(True).run()
|
|
|
|
|
|
+ #task_train(True).run()
|