runhey 3 лет назад
Родитель
Сommit
a1e2acf1ed

+ 11 - 2
tasks/Delegation/rewards/image.json

@@ -47,8 +47,17 @@
   {
     "itemName": "chat_1",
     "imageName": "rewards_chat_1.png",
-    "roiFront": "716,380,318,100",
-    "roiBack": "716,380,318,100",
+    "roiFront": "735,350,318,100",
+    "roiBack": "651,161,601,391",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "chat_2",
+    "imageName": "rewards_chat_2.png",
+    "roiFront": "721,384,325,100",
+    "roiBack": "721,384,325,100",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "description"

BIN
tasks/Delegation/rewards/rewards_chat_2.png


+ 3 - 0
tasks/Delegation/script_task.py

@@ -100,6 +100,9 @@ class ScriptTask(GameUi, DelegationAssets):
             if self.appear_then_click(self.I_CHAT_1, interval=1):
                 check_timer.reset()
                 continue
+            if self.appear_then_click(self.I_CHAT_2, interval=1):
+                check_timer.reset()
+                continue
             if self.appear_then_click(self.I_REWARDS_DONE, interval=1):
                 check_timer.reset()
                 continue