Просмотр исходного кода

Fixed the problem that the three medals may not be recognized during RealmRaid

TripleEarth 3 лет назад
Родитель
Сommit
bb2d1fe497
3 измененных файлов с 10 добавлено и 1 удалено
  1. 9 0
      tasks/RealmRaid/res/image.json
  2. BIN
      tasks/RealmRaid/res/res_medal_3_2.png
  3. 1 1
      tasks/RealmRaid/script_task.py

+ 9 - 0
tasks/RealmRaid/res/image.json

@@ -160,5 +160,14 @@
     "method": "Template matching",
     "method": "Template matching",
     "threshold": 0.8,
     "threshold": 0.8,
     "description": "description"
     "description": "description"
+  },
+  {
+    "itemName": "medal_3_2",
+    "imageName": "res_medal_3_2.png",
+    "roiFront": "575,489,188,32",
+    "roiBack": "575,489,188,32",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "3徽章新图2号"
   }
   }
 ]
 ]

BIN
tasks/RealmRaid/res/res_medal_3_2.png


+ 1 - 1
tasks/RealmRaid/script_task.py

@@ -23,7 +23,7 @@ class ScriptTask(GeneralBattle, GameUi, RealmRaidAssets):
         :return:
         :return:
         """
         """
         config = self.config.realm_raid
         config = self.config.realm_raid
-        self.medal_grid = ImageGrid([self.I_MEDAL_5, self.I_MEDAL_4, self.I_MEDAL_3,
+        self.medal_grid = ImageGrid([self.I_MEDAL_5, self.I_MEDAL_4, self.I_MEDAL_3, self.I_MEDAL_3_2,
                                      self.I_MEDAL_2, self.I_MEDAL_1, self.I_MEDAL_0])
                                      self.I_MEDAL_2, self.I_MEDAL_1, self.I_MEDAL_0])
         self.ui_get_current_page()
         self.ui_get_current_page()
         self.ui_goto(page_realm_raid)
         self.ui_goto(page_realm_raid)