|
@@ -1468,12 +1468,42 @@ class check_safe_collect(dongri_task):
|
|
return True
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
+class task_duanwu(dongri_task):
|
|
|
|
+ def __init__(self):
|
|
|
|
+ super().__init__(f"端午")
|
|
|
|
+ def run(self):
|
|
|
|
+ count = 0
|
|
|
|
+ while True:
|
|
|
|
+ if count > 15000:
|
|
|
|
+ waitClickImg_noWait_withBool(special_activity_img.duanwu_auto_attack, 2, 1)
|
|
|
|
+ waitClickImg_noWait_withBool(special_activity_img.duanwu_auto_use, 2, 1)
|
|
|
|
+ else:
|
|
|
|
+ waitClickImg_noWait_withBool(special_activity_img.duanwu_end, 2, 1)
|
|
|
|
+
|
|
|
|
+ countStr = yys_ocrAuto(special_activity_img.orc_count)
|
|
|
|
+ print(countStr)
|
|
|
|
|
|
|
|
+ if len(countStr) == 0:
|
|
|
|
+ count = 0
|
|
|
|
+ continue
|
|
|
|
+ cleaned_text = countStr[0].replace('.', '')
|
|
|
|
+ cleaned_text = cleaned_text.replace(',', '')
|
|
|
|
+ try:
|
|
|
|
+ count = int(cleaned_text)
|
|
|
|
+ except:
|
|
|
|
+ continue
|
|
|
|
+ print("current count:", count)
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ return True
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
if __name__ == '__main__':
|
|
print(get_todo_time("巨熊行动"))
|
|
print(get_todo_time("巨熊行动"))
|
|
- task_checkUnionTreasure().run()
|
|
|
|
|
|
+ task_duanwu().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()
|