Browse Source

fix(SixRealms): Sync boss asset rules with generated JSON

(cherry picked from commit 83dddbf6c9ff0ac3339bc698daeaa19f87a8dc56)
blylana 1 day ago
parent
commit
d0b0f37a07
2 changed files with 17 additions and 13 deletions
  1. 5 10
      tasks/SixRealms/assets.py
  2. 12 3
      tasks/SixRealms/gate1/boss.json

+ 5 - 10
tasks/SixRealms/assets.py

@@ -34,17 +34,12 @@ class SixRealmsAssets:
 	I_BOSS_SHARE = RuleImage(roi_front=(1090,604,70,74), roi_back=(1074,587,100,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_share.png")
 	# 结算的椒图 
 	I_BOSS_SHUTU = RuleImage(roi_front=(108,141,173,122), roi_back=(108,141,173,122), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_shutu.png")
-	I_BOSS_SHUTU2 = RuleImage(roi_front=(108, 141, 173, 122), roi_back=(108, 141, 173, 122), threshold=0.8,
-	                         method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_shutu2.png")
-	# description
-	# description
+	# description 
+	I_BOSS_SHUTU2 = RuleImage(roi_front=(108,141,173,122), roi_back=(108,141,173,122), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_shutu2.png")
+	# description 
 	I_BOSS_BATTLE_AGAIN = RuleImage(roi_front=(435,403,173,64), roi_back=(409,390,212,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_again.png")
-
-	# description
-	#I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(671,399,175,59), roi_back=(649,381,219,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
-	I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(664, 409, 175, 59), roi_back=(649, 391, 219, 100), threshold=0.8,
-	                                 method="Template matching",
-	                                 file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
+	# description 
+	I_BOSS_BATTLE_GIVEUP = RuleImage(roi_front=(664,409,175,59), roi_back=(649,391,219,100), threshold=0.8, method="Template matching", file="./tasks/SixRealms/gate1/gate1_boss_battle_giveup.png")
 
 
 	# Click Rule Assets

+ 12 - 3
tasks/SixRealms/gate1/boss.json

@@ -71,6 +71,15 @@
     "threshold": 0.8,
     "description": "结算的椒图"
   },
+  {
+    "itemName": "boss_shutu2",
+    "imageName": "gate1_boss_shutu2.png",
+    "roiFront": "108,141,173,122",
+    "roiBack": "108,141,173,122",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
   {
     "itemName": "boss_battle_again",
     "imageName": "gate1_boss_battle_again.png",
@@ -83,10 +92,10 @@
   {
     "itemName": "boss_battle_giveup",
     "imageName": "gate1_boss_battle_giveup.png",
-    "roiFront": "671,399,175,59",
-    "roiBack": "649,381,219,100",
+    "roiFront": "664,409,175,59",
+    "roiBack": "649,391,219,100",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
   }
-]
+]