Kaynağa Gözat

!2 fix strengh bug

pcacc 3 ay önce
ebeveyn
işleme
dcf17be0a0
3 değiştirilmiş dosya ile 6 ekleme ve 5 silme
  1. BIN
      dongri_img/monster/enough_strengh3.png
  2. 1 0
      dongri_pic.py
  3. 5 5
      dongri_task.py

BIN
dongri_img/monster/enough_strengh3.png


+ 1 - 0
dongri_pic.py

@@ -49,6 +49,7 @@ class monster_img:
     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'
     returnLine = R'dongri_img\monster\returnLine.png'
     enter = R'dongri_img\monster\enter.png'
     participate = R'dongri_img\monster\participate.png'

+ 5 - 5
dongri_task.py

@@ -446,10 +446,10 @@ class task_fightMonster(dongri_task):
             self.attack = monster_img.attack
 
     def run(self):
-        global g_task_lineCheck
+        global g_task_lineCheck 
         basic_operate.go_outside()
 
-        if False == waitFindImg_withBool(monster_img.enough_strengh2, 2, 1):
+        if False == waitFindImg_withBool((monster_img.enough_strengh2, monster_img.enough_strengh3), 2, 1):
             if self.add_strengh:
                 basic_operate.add_strength()
                 basic_operate.go_outside()
@@ -824,7 +824,7 @@ class task_information(dongri_task):
     def run(self):
         basic_operate.go_outside()
 
-        if False == waitFindImg_withBool(monster_img.enough_strengh, 2, 1):
+        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()
@@ -1358,11 +1358,11 @@ if __name__ == '__main__':
     #yys_ocrAuto(check_img.line_orc)
     #basic_operate.go_town()
     #basic_operate.add_strength()
-    #task_fightMonster(False, False,False).run()
+    task_fightMonster(False, False,False).run()
     #task_checkHelp().run()
     #task_checkStoreRoom().run()
     #task_start_game(0)
-    check_safe_collect().run()
+    #check_safe_collect().run()
     #task_fight_campion().run()
     #task_activity_lianmeng().run()
     #task_fight_yongbing(True).run()