Ver Fonte

!2 cure can stop long time

pcacc há 1 mês atrás
pai
commit
95ea8a63da

BIN
dongri_img/check/already_cure.png


BIN
dongri_img/check/cancel_cure.png


BIN
dongri_img/special_activity/cure_help.png


+ 3 - 0
dongri_pic.py

@@ -126,6 +126,9 @@ class check_img:
     invite_free = R'dongri_img\check\invite_free.png'
     soilder_cure = R'dongri_img\check\soilder_cure.png'
     cure = R'dongri_img\check\cure.png'
+    already_cure = R'dongri_img\check\already_cure.png'
+    cancel_cure = R'dongri_img\check\cancel_cure.png'
+    cure_help = R'dongri_img\check\cure_help.png'
     add_strength = R'dongri_img\check\add_strength.png'
     no_strength = R'dongri_img\check\no_strength.png'
     store_strength = R'dongri_img\check\store_strength.png'

+ 9 - 3
dongri_task.py

@@ -1088,7 +1088,13 @@ class task_cure(dongri_task):
     def run(self):
         basic_operate.go_town()
         basic_operate.go_outside()
-        if waitClickImg_noWait_withBool(check_img.soilder_cure, 2, 1) == False:
+
+        if waitClickImg_noWait_withBool([check_img.already_cure,check_img.cure_help], 2, 1) == True:
+            if waitClickImg_noWait_withBool(check_img.cancel_cure, 2, 1) == False:
+                return False
+            if waitClickImg_noWait_withBool(check_img.visit_enter, 2, 1) == False:
+                return False
+        elif waitClickImg_noWait_withBool(check_img.soilder_cure, 2, 1) == False:
             return False
         
         while waitFindImg_withBool(special_activity_img.done_immediately, 1, 0.5) == False:
@@ -1599,7 +1605,7 @@ if __name__ == '__main__':
     #task_check_Research().run()
     #save_game_screen()
     #basic_operate.get_line_num()
-    #task_cure(True, 85).run()
+    task_cure(True, 85).run()
     #task_fight_enemy().run()
     #task_fight_ranshuang().run()
     #task_gotoTree().run()
@@ -1615,7 +1621,7 @@ if __name__ == '__main__':
     #task_fightMonster(False, False,False).run()
     #task_checkHelp().run()
     #task_checkStoreRoom().run()
-    task_start_game(1)
+    #task_start_game(1)
     #check_safe_collect().run()
     #task_fight_campion().run()
     #task_activity_lianmeng().run()