|
@@ -791,6 +791,25 @@ class task_checkDonata(dongri_task):
|
|
while waitClickImg_withBool([check_img.donate, check_img.donate2], 1, 0) and maxTryTimes > 0:
|
|
while waitClickImg_withBool([check_img.donate, check_img.donate2], 1, 0) and maxTryTimes > 0:
|
|
maxTryTimes -= 1
|
|
maxTryTimes -= 1
|
|
return True
|
|
return True
|
|
|
|
+
|
|
|
|
+class task_checkUnionTreasure(dongri_task):
|
|
|
|
+ def __init__(self):
|
|
|
|
+ super().__init__(f"检查联盟宝藏")
|
|
|
|
+ def run(self):
|
|
|
|
+ basic_operate.go_town()
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.union, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.union_treasure, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+ waitClickImg_noWait_withBool(check_img.union_gift, 2, 1)
|
|
|
|
+ while waitClickImg_noWait_withBool((check_img.union_get), 2, 0) == True:
|
|
|
|
+ continue
|
|
|
|
+ waitClickImg_noWait_withBool(check_img.union_gain, 2, 1)
|
|
|
|
+ while waitClickImg_noWait_withBool((check_img.union_get), 2, 0) == True:
|
|
|
|
+ continue
|
|
|
|
+
|
|
|
|
+ waitClickImg_noWait_withBool(check_img.union_bigtreasure, 2, 1)
|
|
|
|
+ return True
|
|
|
|
|
|
class task_checkAdventure(dongri_task):
|
|
class task_checkAdventure(dongri_task):
|
|
def __init__(self):
|
|
def __init__(self):
|
|
@@ -990,6 +1009,7 @@ class task_returnAllLine(dongri_task):
|
|
def __init__(self):
|
|
def __init__(self):
|
|
super().__init__(f"返回所有路线")
|
|
super().__init__(f"返回所有路线")
|
|
def run(self):
|
|
def run(self):
|
|
|
|
+ basic_operate.go_town()
|
|
basic_operate.go_outside()
|
|
basic_operate.go_outside()
|
|
maxTryTimes = 6
|
|
maxTryTimes = 6
|
|
while maxTryTimes > 0:
|
|
while maxTryTimes > 0:
|
|
@@ -1453,7 +1473,7 @@ class check_safe_collect(dongri_task):
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
print(get_todo_time("巨熊行动"))
|
|
print(get_todo_time("巨熊行动"))
|
|
- task_check_Research().run()
|
|
|
|
|
|
+ task_checkUnionTreasure().run()
|
|
#save_game_screen()
|
|
#save_game_screen()
|
|
#basic_operate.get_line_num()
|
|
#basic_operate.get_line_num()
|
|
#task_cure(True, 85).run()
|
|
#task_cure(True, 85).run()
|