|
@@ -588,13 +588,22 @@ class task_train(dongri_task):
|
|
if waitClickImg_noWait_withBool(train_img.train_success, 2, 1) == False:
|
|
if waitClickImg_noWait_withBool(train_img.train_success, 2, 1) == False:
|
|
return False
|
|
return False
|
|
tryTimes = 3
|
|
tryTimes = 3
|
|
|
|
+ isSuccess = False
|
|
while tryTimes > 0:
|
|
while tryTimes > 0:
|
|
tryTimes -= 1
|
|
tryTimes -= 1
|
|
waitClickImg_noWait_withBool([train_img.dun, train_img.gong, train_img.mao], 2, 1)
|
|
waitClickImg_noWait_withBool([train_img.dun, train_img.gong, train_img.mao], 2, 1)
|
|
|
|
|
|
if waitClickImg_noWait_withBool(train_img.train, 2, 1):
|
|
if waitClickImg_noWait_withBool(train_img.train, 2, 1):
|
|
|
|
+ isSuccess = True
|
|
break
|
|
break
|
|
|
|
|
|
|
|
+ if isSuccess == False:
|
|
|
|
+ pcacc_mouse.quickclick_current()
|
|
|
|
+ myTimeSleep_big()
|
|
|
|
+ pcacc_mouse.quickclick_current()
|
|
|
|
+ if waitClickImg_noWait_withBool(train_img.train, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
|
|
if self.train_type == 'lv1':
|
|
if self.train_type == 'lv1':
|
|
myTimeSleep_big()
|
|
myTimeSleep_big()
|
|
@@ -605,8 +614,11 @@ class task_train(dongri_task):
|
|
waitClickImg_noWait_withBool(train_img.soilder_lv8, 2, 1)
|
|
waitClickImg_noWait_withBool(train_img.soilder_lv8, 2, 1)
|
|
elif self.train_type == 'lv9':
|
|
elif self.train_type == 'lv9':
|
|
waitClickImg_noWait_withBool(train_img.soilder_lv9, 2, 1)
|
|
waitClickImg_noWait_withBool(train_img.soilder_lv9, 2, 1)
|
|
|
|
+ elif self.train_type == 'upgrade':
|
|
|
|
+ waitClickImg_noWait_withBool(train_img.upgrade_small, 2, 1)
|
|
|
|
+ waitClickImg_noWait_withBool(train_img.upgrade_big, 2, 1)
|
|
|
|
|
|
- return basic_operate.enter_auto_supply_resource(train_img.begin_train)
|
|
|
|
|
|
+ return basic_operate.enter_auto_supply_resource([train_img.begin_train,train_img.begin_train2])
|
|
|
|
|
|
class task_checkHelp(dongri_task):
|
|
class task_checkHelp(dongri_task):
|
|
def __init__(self, isOutSide = False):
|
|
def __init__(self, isOutSide = False):
|
|
@@ -1098,7 +1110,7 @@ class task_fight_enemy(dongri_task):
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
- task_fight_enemy().run()
|
|
|
|
|
|
+ #task_fight_enemy().run()
|
|
#task_fight_ranshuang().run()
|
|
#task_fight_ranshuang().run()
|
|
#task_gotoTree().run()
|
|
#task_gotoTree().run()
|
|
#task_fight_jina_only().run()
|
|
#task_fight_jina_only().run()
|
|
@@ -1115,7 +1127,7 @@ if __name__ == '__main__':
|
|
#task_activity_lianmeng().run()
|
|
#task_activity_lianmeng().run()
|
|
#task_fight_yongbing(True).run()
|
|
#task_fight_yongbing(True).run()
|
|
#task_collect([4,3,2,1]).run()
|
|
#task_collect([4,3,2,1]).run()
|
|
- #task_train("lv9").run()
|
|
|
|
|
|
+ task_train("upgrade").run()
|
|
#task_information().run()
|
|
#task_information().run()
|
|
#check_buildOrResearch().run()
|
|
#check_buildOrResearch().run()
|
|
#task_checkDonata().run()
|
|
#task_checkDonata().run()
|