Bläddra i källkod

!2 fix add strength pic

pcacc 3 veckor sedan
förälder
incheckning
d3ff571502
3 ändrade filer med 5 tillägg och 15 borttagningar
  1. BIN
      dongri_img/check/no_strength.png
  2. 1 3
      dongri_pic.py
  3. 4 12
      dongri_task.py

BIN
dongri_img/check/no_strength.png


+ 1 - 3
dongri_pic.py

@@ -50,9 +50,7 @@ class monster_img:
     average_select = R'dongri_img\monster\average_select.png'
     attack = R'dongri_img\monster\attack.png'
     attack2 = R'dongri_img\monster\attack2.png'
-    enough_strengh = R'dongri_img\monster\enough_strengh.png'
-    enough_strengh2 = R'dongri_img\monster\enough_strengh2.png'
-    enough_strengh3 = R'dongri_img\monster\enough_strengh3.png'
+    enough_strengh = R'dongri_img\monster\enough_strengh3.png'
     returnLine = R'dongri_img\monster\returnLine.png'
     enter = R'dongri_img\monster\enter.png'
     participate = R'dongri_img\monster\participate.png'

+ 4 - 12
dongri_task.py

@@ -299,7 +299,7 @@ class task_fight_yongbing(dongri_task):
     def run(self):
         basic_operate.go_outside()
 
-        if False == waitFindImg_withBool(monster_img.enough_strengh2, 2, 1):
+        if False == waitFindImg_withBool(monster_img.enough_strengh, 2, 1):
             if self.add_strengh:
                 basic_operate.add_strength()
                 basic_operate.go_outside()
@@ -501,7 +501,7 @@ class task_fightMonster(dongri_task):
 
         basic_operate.go_outside()
 
-        if False == waitFindImg_withBool((monster_img.enough_strengh2, monster_img.enough_strengh3), 2, 1):
+        if False == waitFindImg_withBool(monster_img.enough_strengh, 2, 1):
             if self.add_strengh:
                 basic_operate.add_strength()
                 basic_operate.go_outside()
@@ -963,15 +963,6 @@ class task_information(dongri_task):
         self.isAddStrengh = isAddStrengh
     def run(self):
         basic_operate.go_outside()
-        '''
-        if False == waitFindImg_withBool((monster_img.enough_strengh, monster_img.enough_strengh3), 2, 1):
-            if self.isAddStrengh:
-                basic_operate.add_strength()
-                basic_operate.go_outside()
-            else:
-                print("没有足够的体力了")
-                return False
-        '''
 
         if waitClickImg_noWait_withBool(information_img.information, 1, 1) == False:
             return False
@@ -1732,7 +1723,8 @@ if __name__ == '__main__':
     #yys_ocrAuto(check_img.line_orc)
     #basic_operate.go_town()
     #basic_operate.add_strength()
-    task_fightMonster(False, True,False).run()
+    task_fightMonster(True, True,False).run()
+    task_fightMonster(True, True,True).run()
     #task_checkHelp().run()
     #task_checkStoreRoom().run()
     #task_start_game(1)