endlesswxk 2 лет назад
Родитель
Сommit
65134eb384

+ 1 - 1
tasks/Exploration/assets.py

@@ -59,7 +59,7 @@ class ExplorationAssets:
 	# 战后奖励 
 	I_BATTLE_REWARD = RuleImage(roi_front=(647,395,31,21), roi_back=(1,1,1278,718), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_battle_reward.png")
 	# 妖 
-	I_EXPLORATION_TITLE = RuleImage(roi_front=(1133,124,47,43), roi_back=(1133,124,47,43), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_exploration_title.png")
+	I_EXPLORATION_TITLE = RuleImage(roi_front=(1133,124,47,43), roi_back=(1133,124,47,43), threshold=0.7, method="Template matching", file="./tasks/Exploration/res/res_exploration_title.png")
 	# description 
 	I_BATTLE_START = RuleImage(roi_front=(555,688,39,27.5), roi_back=(221,677,561,41), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_battle_start.png")
 	# description 

+ 1 - 1
tasks/Exploration/res/image.json

@@ -131,7 +131,7 @@
     "roiFront": "1133,124,47,43",
     "roiBack": "1133,124,47,43",
     "method": "Template matching",
-    "threshold": 0.8,
+    "threshold": 0.7,
     "description": "妖"
   },
   {

+ 2 - 2
tasks/Exploration/script_task.py

@@ -71,7 +71,7 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, ExplorationAssets):
                     count += 1
                     # 进入战斗环节
                     self.battle_process()
-                if self.appear_then_click(self.I_EXPLORATION_TITLE):
+                if self.appear(self.I_EXPLORATION_TITLE):
                     self.open_expect_level()
 
     # 查找指定的章节:
@@ -235,7 +235,7 @@ if __name__ == "__main__":
     from module.config.config import Config
     from module.device.device import Device
 
-    config = Config('oas1')
+    config = Config('oas2')
     device = Device(config)
     t = ScriptTask(config, device)
     t.config.exploration.exploration_config.exploration_level = '第二十八章'