|
@@ -695,6 +695,27 @@ class task_gotoTree(dongri_task):
|
|
|
waitClickImg_noWait_withBool(check_img.life_jam, 2, 1)
|
|
|
return True
|
|
|
|
|
|
+class task_getStrength(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"获取体力")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_town()
|
|
|
+ if waitClickImg_noWait_withBool(train_img.quick_panel, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ myTimeSleep_big()
|
|
|
+ yys_dragAuto(check_img.move_down)
|
|
|
+ yys_dragAuto(check_img.move_down)
|
|
|
+ myTimeSleep_big()
|
|
|
+ if waitClickImg_noWait_withBool(check_img.pet_btn, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ myTimeSleep_big()
|
|
|
+ basic_operate.go_town()
|
|
|
+ if waitClickImg_noWait_withBool(check_img.store_strength, 3, 1):
|
|
|
+ waitClickImg_noWait_withBool((check_img.get,check_img.bigGet), 2, 1)
|
|
|
+ return True
|
|
|
+
|
|
|
+
|
|
|
class task_checkStoreRoom(dongri_task):
|
|
|
def __init__(self):
|
|
|
super().__init__(f"检查仓库或招募")
|
|
@@ -710,7 +731,8 @@ class task_checkStoreRoom(dongri_task):
|
|
|
if waitClickImg_noWait_withBool((train_img.train_success, check_img.needgo), 2, 1) == False:
|
|
|
return False
|
|
|
myTimeSleep_big()
|
|
|
- if waitFindImg_withBool(check_img.pet_findtreature, 2, 1) == False:
|
|
|
+
|
|
|
+ if waitFindImg_withBool(check_img.pet_findtreature, 2, 1) == False:# storeroom
|
|
|
waitClickImg_noWait_withBool(check_img.bigGet, 2, 1)
|
|
|
pcacc_mouse.quickclick_current()
|
|
|
myTimeSleep_big()
|
|
@@ -737,6 +759,7 @@ class task_checkStoreRoom(dongri_task):
|
|
|
|
|
|
return True
|
|
|
|
|
|
+
|
|
|
class task_checkConfilits(dongri_task):
|
|
|
def __init__(self):
|
|
|
super().__init__(f"检查集结")
|
|
@@ -1393,7 +1416,8 @@ if __name__ == '__main__':
|
|
|
#task_gotoTree().run()
|
|
|
#task_fight_jina_only().run()
|
|
|
#task_checkConfilits().run()
|
|
|
- task_checkActivities().run()
|
|
|
+ task_getStrength().run()
|
|
|
+ #task_checkActivities().run()
|
|
|
#task_checkMaster().run()
|
|
|
#basic_operate.get_line_num()
|
|
|
#yys_ocrAuto(check_img.line_orc)
|