Browse Source

花合战溢出确认

GanSer 1 năm trước cách đây
mục cha
commit
29e97116f7

+ 2 - 0
tasks/TalismanPass/assets.py

@@ -31,5 +31,7 @@ class TalismanPassAssets:
 	I_TP_GOTO = RuleImage(roi_front=(995,254,85,34), roi_back=(928,219,206,315), threshold=0.8, method="Template matching", file="./tasks/TalismanPass/tp/tp_tp_goto.png")
 	# 经验的 
 	I_TP_EXP = RuleImage(roi_front=(922,254,32,36), roi_back=(884,215,100,331), threshold=0.8, method="Template matching", file="./tasks/TalismanPass/tp/tp_tp_exp.png")
+	# 溢出确认 
+	I_OVERFLOW_CONFIRME = RuleImage(roi_front=(585,410,116,44), roi_back=(585,410,116,44), threshold=0.8, method="Template matching", file="./tasks/TalismanPass/tp/tp_overflow_confirme.png")
 
 

+ 2 - 0
tasks/TalismanPass/script_task.py

@@ -65,6 +65,8 @@ class ScriptTask(GameUi, TalismanPassAssets):
             self.screenshot()
             if self.appear_then_click(match_level[level], interval=0.8):
                 logger.info(f'Select {level} reward')
+                if self.appear_then_click(self.I_OVERFLOW_CONFIRME):
+                    pass
                 check_timer.reset()
                 continue
 

+ 9 - 0
tasks/TalismanPass/tp/image.json

@@ -88,5 +88,14 @@
     "method": "Template matching",
     "threshold": 0.8,
     "description": "经验的"
+  },
+  {
+    "itemName": "overflow_confirme",
+    "imageName": "tp_overflow_confirme.png",
+    "roiFront": "585,410,116,44",
+    "roiBack": "585,410,116,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "溢出确认"
   }
 ]

BIN
tasks/TalismanPass/tp/tp_overflow_confirme.png