Procházet zdrojové kódy

feat(HeroTest): 梦虚秘境新增默认技能兜底选项

- 新增 I_HERO2_SKILL7 (默认技能) 图片规则
- 添加 pve_skill 列表,作为选buff的兜底选项
- 更新 image.json 添加 hero2_skill1-7 配置
lhye před 6 měsíci
rodič
revize
0d73f06572

binární
tasks/HeroTest/as/as_hero2_skill7.png


+ 63 - 0
tasks/HeroTest/as/image.json

@@ -304,5 +304,68 @@
     "method": "Template matching",
     "threshold": 0.8,
     "description": "真钱"
+  },
+  {
+    "itemName": "hero2_skill1",
+    "imageName": "as_hero2_skill1.png",
+    "roiFront": "825,358,61,36",
+    "roiBack": "47,340,1178,65",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "同调祝福"
+  },
+  {
+    "itemName": "hero2_skill2",
+    "imageName": "as_hero2_skill2.png",
+    "roiFront": "521,356,63,37",
+    "roiBack": "46,333,1174,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "韵迟祝福"
+  },
+  {
+    "itemName": "hero2_skill3",
+    "imageName": "as_hero2_skill3.png",
+    "roiFront": "520,358,62,38",
+    "roiBack": "41,346,1172,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "弥天祝福"
+  },
+  {
+    "itemName": "hero2_skill4",
+    "imageName": "as_hero2_skill4.png",
+    "roiFront": "1127,356,65,41",
+    "roiBack": "48,349,1173,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "叠辉祝福"
+  },
+  {
+    "itemName": "hero2_skill5",
+    "imageName": "as_hero2_skill5.png",
+    "roiFront": "217,358,65,37",
+    "roiBack": "46,334,1148,81",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "敛神祝福"
+  },
+  {
+    "itemName": "hero2_skill6",
+    "imageName": "as_hero2_skill6.png",
+    "roiFront": "427,356,62,38",
+    "roiBack": "48,342,1175,67",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "速度祝福"
+  },
+  {
+    "itemName": "hero2_skill7",
+    "imageName": "as_hero2_skill7.png",
+    "roiFront": "253,128,39,63",
+    "roiBack": "253,128,39,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "默认技能"
   }
 ]

+ 2 - 0
tasks/HeroTest/assets.py

@@ -99,6 +99,8 @@ class HeroTestAssets:
 	I_HERO2_SKILL3 = RuleImage(roi_front=(520,358,62,38), roi_back=(41,346,1172,63), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill3.png")
 	# 速度祝福 
 	I_HERO2_SKILL6 = RuleImage(roi_front=(427,356,62,38), roi_back=(48,342,1175,67), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill6.png")
+	# 默认技能 
+	I_HERO2_SKILL7 = RuleImage(roi_front=(253,128,39,63), roi_back=(253,128,39,63), threshold=0.8, method="Template matching", file="./tasks/HeroTest/as/as_hero2_skill7.png")
 
 
 	# Ocr Rule Assets

+ 1 - 0
tasks/HeroTest/script_task.py

@@ -152,6 +152,7 @@ class ScriptTask(GameUi, GeneralBattle, HeroTestAssets, SwitchSoul):
             self.I_HERO2_SKILL4,  # 叠辉祝福
             self.I_HERO2_SKILL5,  # 敛神祝福
             self.I_HERO2_SKILL6,  # 速度祝福
+            self.I_HERO2_SKILL7,  # 默认技能
         ]
         # TODO: PVP
         pvp_skill = []