Explorar el Código

!2 perfer build than research

pcacc hace 5 meses
padre
commit
4ca402b4d7
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      dongri_task.py

+ 5 - 4
dongri_task.py

@@ -462,12 +462,13 @@ class check_buildOrResearch(dongri_task):
                 tryTimes -= 1
                 myTimeSleep_big()
                 pcacc_mouse.click(dst_x=dstPos[0], dst_y=dstPos[1])
-                if waitClickImg_noWait_withBool(check_img.build_upgrade, 2, 1):
-                    dstType = 'build'
-                    break
-                elif waitClickImg_noWait_withBool(check_img.research, 2, 1):
+                
+                if waitClickImg_noWait_withBool(check_img.research, 2, 1):
                     dstType = 'research'
                     break
+                elif waitClickImg_noWait_withBool(check_img.build_upgrade, 2, 1):
+                    dstType = 'build'
+                    break
             break
         if dstType == 'none':
             print('没有找到建筑或研究')