|
@@ -1031,6 +1031,7 @@ class task_paticipateInTeam(dongri_task):
|
|
|
self.line = monster_img.line4
|
|
|
super().__init__(f"参与队伍{type}")
|
|
|
def run(self):
|
|
|
+
|
|
|
basic_operate.go_outside()
|
|
|
if waitClickImg_noWait_withBool(check_img.conflits, 2, 1) == False:
|
|
|
return False
|
|
@@ -1039,31 +1040,28 @@ class task_paticipateInTeam(dongri_task):
|
|
|
myTimeSleep_big()
|
|
|
if waitClickImg_noWait_withBool(monster_img.participate, 1, 1, True) == 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) == False:# 实力不为0
|
|
|
- countStr = yys_ocrAuto(special_activity_img.orc_power)
|
|
|
- count = 0
|
|
|
- if len(countStr) == 0:
|
|
|
- count = 0
|
|
|
+ if waitFindImg_withBool(special_activity_img.power0, 1, 0.5) == False:# 实力不为0
|
|
|
+ ret1, powerPos = pcacc_img.find_img_origin(special_activity_img.power_empty)
|
|
|
+ ret2, plusPos = pcacc_img.find_img_origin(special_activity_img.plus_small)
|
|
|
+ if ret1 == False or ret2 == False:
|
|
|
+ waitClickImg_withBool([monster_img.fight, monster_img.fight2, monster_img.fight3], 1, 0.5)
|
|
|
return False
|
|
|
- cleaned_text = countStr[0].replace('.', '')
|
|
|
- cleaned_text = cleaned_text.replace(',', '')
|
|
|
- try:
|
|
|
- count = int(cleaned_text)
|
|
|
- except:
|
|
|
- return False
|
|
|
- print("current power:", count)
|
|
|
- if count < 15000000:
|
|
|
+
|
|
|
+ if plusPos[0] - powerPos[0] < 69:
|
|
|
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_cure(dongri_task):
|