|
@@ -665,10 +665,20 @@ class check_buildOrResearch(dongri_task):
|
|
|
return True
|
|
|
|
|
|
class task_information(dongri_task):
|
|
|
- def __init__(self):
|
|
|
+ def __init__(self, isAddStrengh = False):
|
|
|
super().__init__(f"检查情报")
|
|
|
+ self.isAddStrengh = isAddStrengh
|
|
|
def run(self):
|
|
|
basic_operate.go_outside()
|
|
|
+
|
|
|
+ if False == waitFindImg_withBool(monster_img.enough_strengh, 2, 1):
|
|
|
+ if self.add_strengh:
|
|
|
+ basic_operate.add_strength()
|
|
|
+ basic_operate.go_outside()
|
|
|
+ else:
|
|
|
+ print("没有足够的体力了")
|
|
|
+ return False
|
|
|
+
|
|
|
if waitClickImg_noWait_withBool(information_img.information, 1, 1) == False:
|
|
|
return False
|
|
|
|
|
@@ -678,9 +688,6 @@ class task_information(dongri_task):
|
|
|
if waitClickImg_noWait_withBool(information_img.explore, 1, 1) == False:
|
|
|
return False
|
|
|
if waitClickImg_noWait_withBool(information_img.hero_fight, 1, 1) == False:
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
return False
|
|
|
|
|
|
myTimeSleep_big()
|
|
@@ -690,9 +697,6 @@ class task_information(dongri_task):
|
|
|
return False
|
|
|
if waitClickImg_noWait_withBool(information_img.survive, 1, 1) == False:
|
|
|
return False
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
return True
|
|
|
elif waitClickImg_noWait_withBool([information_img.wolf0, information_img.wolf1, information_img.wolf2], 0.5, 0.5):
|
|
|
if waitClickImg_noWait_withBool(information_img.gotosee, 1, 1) == False:
|
|
@@ -713,9 +717,6 @@ class task_information(dongri_task):
|
|
|
if False == waitClickImg_noWait_withBool(monster_img.all_select, 1, 1):
|
|
|
break
|
|
|
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
- waitClickImg_noWait(information_img.add_strength, 1, 1)
|
|
|
return True
|
|
|
else:
|
|
|
return False
|