|
@@ -1042,6 +1042,50 @@ class task_returnAllLine(dongri_task):
|
|
|
break
|
|
|
return True
|
|
|
|
|
|
+class task_paticipateInTeam2(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ typeArr = [1,3,4]
|
|
|
+ type = typeArr[random.randint(0, len(typeArr) - 1)]
|
|
|
+ if type == 1:
|
|
|
+ self.line = monster_img.line1
|
|
|
+ elif type == 2:
|
|
|
+ self.line = monster_img.line2
|
|
|
+ elif type == 3:
|
|
|
+ self.line = monster_img.line3
|
|
|
+ elif type == 4:
|
|
|
+ self.line = monster_img.line4
|
|
|
+ super().__init__(f"参与队伍2")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_outside()
|
|
|
+ if waitClickImg_noWait_withBool((check_img.talk_in,check_img.talk_in2, check_img.talk_in3), 2, 1) == False:
|
|
|
+ return False
|
|
|
+ waitClickImg_noWait_withBool(check_img.talkin_union, 1, 0)
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.bear_team, 1, 1) == False:
|
|
|
+ return False
|
|
|
+ if waitClickImg_noWait_withBool(check_img.bear_add, 1, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ waitClickImg_noWait_withBool(self.line, 0.1, 1)
|
|
|
+ maxTryTimes = 3
|
|
|
+ while maxTryTimes > 0:
|
|
|
+ maxTryTimes -= 1
|
|
|
+ if waitFindImg_withBool(special_activity_img.power0, 1, 0.5) == False:# 实力不为0
|
|
|
+ powerCount = task_checkPower().run()
|
|
|
+ if powerCount < 21234567:
|
|
|
+ return False
|
|
|
+
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2, monster_img.fight3], 1, 0.5)
|
|
|
+ return True
|
|
|
+ else:
|
|
|
+ if False == waitClickImg_noWait_withBool(monster_img.all_select, 1, 0.5):
|
|
|
+ break
|
|
|
+ myTimeSleep_small()
|
|
|
+ return True
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
class task_paticipateInTeam(dongri_task):
|
|
|
def __init__(self, checkPower=True):
|
|
|
typeArr = [1,3,4]
|