huangrunheng 2 лет назад
Родитель
Сommit
d4b568c53c

+ 2 - 0
tasks/KekkaiUtilize/assets.py

@@ -108,6 +108,8 @@ class KekkaiUtilizeAssets:
 	I_CHECK_FRIEND_REALM_1 = RuleImage(roi_front=(1059,17,90,21), roi_back=(1050,4,107,65), threshold=0.8, method="Template matching", file="./tasks/KekkaiUtilize/utilize/utilize_check_friend_realm_1.png")
 	# description 
 	I_CHECK_FRIEND_REALM_2 = RuleImage(roi_front=(590,143,44,52), roi_back=(538,106,161,158), threshold=0.8, method="Template matching", file="./tasks/KekkaiUtilize/utilize/utilize_check_friend_realm_2.png")
+	# 好友寄养 
+	I_CHECK_FRIEND_REALM_3 = RuleImage(roi_front=(900,23,22,120), roi_back=(884,11,271,160), threshold=0.9, method="Template matching", file="./tasks/KekkaiUtilize/utilize/utilize_check_friend_realm_3.png")
 
 
 	# Ocr Rule Assets

+ 2 - 1
tasks/KekkaiUtilize/script_task.py

@@ -406,7 +406,8 @@ class ScriptTask(GameUi, ReplaceShikigami, KekkaiUtilizeAssets):
             return
         while 1:
             self.screenshot()
-            if self.appear(self.I_CHECK_FRIEND_REALM_1):
+            if self.appear(self.I_CHECK_FRIEND_REALM_1) \
+                    or self.appear(self.I_CHECK_FRIEND_REALM_3):
                 logger.info('Appear enter friend realm button')
                 break
 

+ 9 - 0
tasks/KekkaiUtilize/utilize/image_2.json

@@ -61,5 +61,14 @@
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"
+  },
+  {
+    "itemName": "check_friend_realm_3",
+    "imageName": "utilize_check_friend_realm_3.png",
+    "roiFront": "900,23,22,120",
+    "roiBack": "884,11,271,160",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "好友寄养"
   }
 ]

BIN
tasks/KekkaiUtilize/utilize/utilize_check_friend_realm_3.png