|
@@ -274,6 +274,51 @@ class task_fight_yongbing(dongri_task):
|
|
|
|
|
|
return True
|
|
return True
|
|
|
|
|
|
|
|
+class task_fight_jina_only(dongri_task):
|
|
|
|
+ def __init__(self):
|
|
|
|
+ super().__init__("战斗召唤的吉娜")
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ def run(self):
|
|
|
|
+ basic_operate.go_outside()
|
|
|
|
+ #必须加体力
|
|
|
|
+ if False == waitFindImg_withBool(monster_img.enough_strengh, 2, 1):
|
|
|
|
+ basic_operate.add_strength()
|
|
|
|
+ basic_operate.go_outside()
|
|
|
|
+
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.talk_in, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ waitClickImg_noWait_withBool(check_img.talkin_person, 2, 1)
|
|
|
|
+
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.talkin_jina, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.xiaohao_jina, 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], 1, 1)
|
|
|
|
+ waitClickImg_noWait_withBool(monster_img.all_select, 1, 1)
|
|
|
|
+ if waitFindImg_withBool(monster_img.all_select, 1, 1) == False:
|
|
|
|
+ break
|
|
|
|
+
|
|
|
|
+ return True
|
|
|
|
+
|
|
|
|
|
|
class task_call_jina(dongri_task):
|
|
class task_call_jina(dongri_task):
|
|
def __init__(self):
|
|
def __init__(self):
|
|
@@ -301,6 +346,7 @@ class task_call_jina(dongri_task):
|
|
if waitClickImg_noWait_withBool(check_img.share_btn, 2, 1) == False:
|
|
if waitClickImg_noWait_withBool(check_img.share_btn, 2, 1) == False:
|
|
return False
|
|
return False
|
|
return True
|
|
return True
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
class task_fight_jina(dongri_task):
|
|
class task_fight_jina(dongri_task):
|