Prechádzať zdrojové kódy

!2 speedup fight bears

pcacc 4 mesiacov pred
rodič
commit
0f8c7b2538
3 zmenil súbory, kde vykonal 5 pridanie a 10 odobranie
  1. BIN
      dongri_img/monster/fight3.png
  2. 1 0
      dongri_pic.py
  3. 4 10
      dongri_task.py

BIN
dongri_img/monster/fight3.png


+ 1 - 0
dongri_pic.py

@@ -30,6 +30,7 @@ class monster_img:
     collect = R'dongri_img\monster\collect.png'
     fight = R'dongri_img\monster\fight.png'
     fight2 = R'dongri_img\monster\fight2.png'
+    fight3 = R'dongri_img\monster\fight3.png'
     wolf = R'dongri_img\monster\wolf.png'
     bigMonster = R'dongri_img\monster\bigMonster.png'
     muti_team = R'dongri_img\monster\muti_team.png'

+ 4 - 10
dongri_task.py

@@ -916,23 +916,17 @@ class task_paticipateInTeam(dongri_task):
         while True:
             if waitClickImg_noWait_withBool(monster_img.line1, 0.1, 1) == False:
                 break
-            if waitFindImg_withBool(monster_img.no_hero, 0.1, 1) == False:
+            if waitFindImg_withBool(monster_img.no_hero, 0.1, 0.5) == False:
                 break
-            if waitClickImg_noWait_withBool(monster_img.line4, 0.1, 1) == False:
-                break
-            if waitFindImg_withBool(monster_img.no_hero, 0.1, 1) == False:
+            if waitClickImg_noWait_withBool(monster_img.line4, 0.1, 0.5) == False:
                 break
             break
-        
-        if waitClickImg_noWait_withBool(monster_img.all_select, 2, 1) == False:
-            return False
-        waitClickImg_noWait_withBool(monster_img.all_select, 0.1, 1)
 
         maxTryTimes = 3
         while maxTryTimes > 0:
             maxTryTimes -= 1
-            waitClickImg_withBool([monster_img.fight, monster_img.fight2], 1, 1)
-            if False == waitClickImg_noWait_withBool(monster_img.all_select, 1, 1):
+            waitClickImg_withBool([monster_img.fight, monster_img.fight2, monster_img.fight3], 1, 0.5)
+            if False == waitClickImg_noWait_withBool(monster_img.all_select, 1, 0.5):
                 break
         return True