|
@@ -128,7 +128,6 @@ class basic_operate:
|
|
|
return True
|
|
|
@staticmethod
|
|
|
def add_strength():
|
|
|
- basic_operate.do_back()
|
|
|
if waitClickImg_noWait_withBool(check_img.no_strength, 2, 1) == False:
|
|
|
return False
|
|
|
|
|
@@ -204,6 +203,57 @@ class dongri_task:
|
|
|
def run(self):
|
|
|
print(f"Running task: {self.name}")
|
|
|
|
|
|
+class task_fight_jina(dongri_task):
|
|
|
+ def __init__(self, add_strengh):
|
|
|
+ super().__init__("战斗吉娜")
|
|
|
+ self.add_strengh = add_strengh
|
|
|
+
|
|
|
+
|
|
|
+ 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(check_img.pack, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool((check_img.other, check_img.other2), 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.jina_jiao, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.use, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.muti_team, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ waitClickImg_noWait_withBool(monster_img.begin_multi, 2, 1)
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.line1, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitFindImg_withBool(monster_img.no_hero, 2, 1) == True:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(monster_img.all_select, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+
|
|
|
+ maxTryTimes = 3
|
|
|
+ while maxTryTimes > 0:
|
|
|
+ maxTryTimes -= 1
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2], 2, 1)
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 2, 1)
|
|
|
+
|
|
|
+ return True
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
class task_fightMonster(dongri_task):
|
|
|
def __init__(self, add_strengh, fight_bigMonster, isSimple):
|
|
@@ -629,4 +679,4 @@ if __name__ == '__main__':
|
|
|
#task_collect(4).run()
|
|
|
#task_returnAllLine().run()
|
|
|
#task_paticipateInTeam().run()
|
|
|
- task_useAnnimalSkill().run()
|
|
|
+ task_fight_jina(True).run()
|