|
@@ -259,11 +259,11 @@ class task_collect(dongri_task):
|
|
|
super().__init__(f"采集木头")
|
|
|
elif type == 3:
|
|
|
self.type = monster_img.mine
|
|
|
- self.line = None
|
|
|
+ self.line = monster_img.line4
|
|
|
super().__init__(f"采矿石")
|
|
|
elif type == 4:
|
|
|
self.type = monster_img.iron
|
|
|
- self.line = None
|
|
|
+ self.line = monster_img.line5
|
|
|
super().__init__(f"采集铁矿石")
|
|
|
|
|
|
if isSimple:
|
|
@@ -340,7 +340,7 @@ class task_checkHelp(dongri_task):
|
|
|
|
|
|
class task_checkStoreRoom(dongri_task):
|
|
|
def __init__(self):
|
|
|
- super().__init__(f"检查仓库")
|
|
|
+ super().__init__(f"检查仓库或招募")
|
|
|
def run(self):
|
|
|
basic_operate.go_town()
|
|
|
if waitClickImg_noWait_withBool(train_img.quick_panel, 2, 1) == False:
|
|
@@ -348,11 +348,11 @@ class task_checkStoreRoom(dongri_task):
|
|
|
|
|
|
myTimeSleep_big()
|
|
|
yys_dragAuto(check_img.move_down)
|
|
|
- if waitClickImg_noWait_withBool(train_img.train_success, 2, 1) == False:
|
|
|
+ if waitClickImg_noWait_withBool((train_img.train_success, check_img.needgo), 2, 1) == False:
|
|
|
return False
|
|
|
myTimeSleep_big()
|
|
|
pcacc_mouse.quickclick_current()
|
|
|
- if waitClickImg_noWait_withBool(check_img.storeroom, 2, 1) == False:
|
|
|
+ if waitClickImg_noWait_withBool((check_img.storeroom, check_img.invite_free), 2, 1) == False:
|
|
|
return False
|
|
|
return True
|
|
|
|
|
@@ -559,6 +559,21 @@ class task_paticipateInTeam(dongri_task):
|
|
|
break
|
|
|
return True
|
|
|
|
|
|
+class task_cure(dongri_task):
|
|
|
+ def __init__(self):
|
|
|
+ super().__init__(f"治疗")
|
|
|
+ def run(self):
|
|
|
+ basic_operate.go_outside()
|
|
|
+ if waitClickImg_noWait_withBool(check_img.soilder_cure, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.cure, 2, 1) == False:
|
|
|
+ return False
|
|
|
+
|
|
|
+ if waitClickImg_noWait_withBool(check_img.help4, 2, 1) == False:
|
|
|
+ return False
|
|
|
+ return True
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -567,7 +582,7 @@ if __name__ == '__main__':
|
|
|
#task_fightMonster(False, True).run()
|
|
|
#task_checkHelp().run()
|
|
|
#task_checkStoreRoom().run()
|
|
|
- task_collect(0, True).run()
|
|
|
+ #task_collect().run()
|
|
|
#task_train().run()
|
|
|
#task_information().run()
|
|
|
#check_buildOrResearch().run()
|
|
@@ -578,4 +593,4 @@ if __name__ == '__main__':
|
|
|
#task_collect(4).run()
|
|
|
#task_returnAllLine().run()
|
|
|
#task_paticipateInTeam().run()
|
|
|
- #task_train(True).run()
|
|
|
+ task_train(True).run()
|