yEs1do 2 лет назад
Родитель
Сommit
528e365ec3

+ 0 - 2
tasks/Exploration/assets.py

@@ -58,8 +58,6 @@ class ExplorationAssets:
 	I_BOSS_BATTLE_BUTTON = RuleImage(roi_front=(683,256,38,34), roi_back=(0,0,1276,719), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_boss_battle_button.png")
 	# 战后奖励 
 	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_BATTLE_REWARD_BOX = RuleImage(roi_front=(705,225,55,45), roi_back=(141,68,901,547), threshold=0.8, method="Template matching", file="./tasks/Exploration/res/res_battle_reward_box.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 

BIN
tasks/Exploration/res/res_battle_reward_box.png


+ 1 - 6
tasks/Exploration/script_task.py

@@ -215,15 +215,10 @@ class ScriptTask(GeneralBattle, GameUi, SwitchSoul, ExplorationAssets):
                 else:
                     continue
             # 滑动
-            elif self.appear(self.I_E_AUTO_ROTATE_ON) or self.appear(self.I_GET_REWARD) or self.appear(self.I_REWARD):
+            elif self.appear(self.I_E_AUTO_ROTATE_ON) or self.appear(self.I_GET_REWARD):
                 self.swipe(self.S_SWIPE_BACKGROUND_RIGHT)
             # 结束流程
             if self.appear(self.I_E_EXPLORATION_CLICK) or self.appear(self.I_EXPLORATION_TITLE):
-                self.appear_then_click(self.I_RED_CLOSE)
-                # 宝箱
-                if self.appear(self.I_BATTLE_REWARD_BOX) and not self.appear(self.I_REWARD):
-                    self.click(self.I_BATTLE_REWARD_BOX)
-                    continue
                 break
 
     # 战斗流程