Browse Source

修复荣耀对决卡界面

ICe 1 month ago
parent
commit
1298ef743c

BIN
opencv/scene/glory/match/notOpen2.png


+ 17 - 0
src/main/java/com/sencorsta/rabs/obj/ai/scene/glory/SceneMain_Glory_Match.java

@@ -38,6 +38,7 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
     private static String PathOb = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\ob.png";
     private static String PathOb = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\ob.png";
     private static String PathLv = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\lv.png";
     private static String PathLv = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\lv.png";
     private static String PathNotOpen = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\notOpen.png";
     private static String PathNotOpen = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\notOpen.png";
+    private static String PathNotOpen2 = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\notOpen2.png";
     private int maxTime = 99;
     private int maxTime = 99;
 
 
     @Override
     @Override
@@ -66,12 +67,26 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
         if (checkHas(PathCheck, AiManage.getInstance().getCheckPoint())) {
         if (checkHas(PathCheck, AiManage.getInstance().getCheckPoint())) {
             return true;
             return true;
         }
         }
+        if (checkHas(PathNotOpen2,AiManage.getInstance().getCheckPoint())){
+            return true;
+        }
         return false;
         return false;
     }
     }
 
 
     @Override
     @Override
     public void think() throws AWTException {
     public void think() throws AWTException {
         int count = getRecord().getData().getCount();
         int count = getRecord().getData().getCount();
+
+        ThreadUtil.sleep(2000);
+        if (checkHas(PathNotOpen2,AiManage.getInstance().getCheckPoint())){
+            System.out.println("活动未开启!");
+            getRecordSub().getData().setDone(true);
+
+            moveToClick(PathClose2, AiManage.getInstance().getCheckPoint());
+            ThreadUtil.sleep(2000);
+            return;
+        }
+
         while (AiManage.getInstance().isRunning() && !isDone()) {
         while (AiManage.getInstance().isRunning() && !isDone()) {
             ThreadUtil.sleep(3000);
             ThreadUtil.sleep(3000);
             if (checkHas(PathNotOpen,AiManage.getInstance().getCheckPoint())){
             if (checkHas(PathNotOpen,AiManage.getInstance().getCheckPoint())){
@@ -80,6 +95,8 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
                 break;
                 break;
             }
             }
 
 
+
+
             if (checkHas(PathStart, AiManage.getInstance().getCheckPoint())) {
             if (checkHas(PathStart, AiManage.getInstance().getCheckPoint())) {
                 moveToClick(PathStart, AiManage.getInstance().getCheckPoint());
                 moveToClick(PathStart, AiManage.getInstance().getCheckPoint());
                 ThreadUtil.sleep(5000);
                 ThreadUtil.sleep(5000);