From 019de8311127720fca870a86c89f00dece08ee55 Mon Sep 17 00:00:00 2001 From: LiZhengHao <1263212577@qq.com> Date: Sun, 8 Mar 2020 21:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.解决了探索乘客,司机在探索完成无宝箱时无法点击到退出的问题。 --- explore/explore_leader.py | 4 ++-- explore/explore_passenger.py | 4 ++-- gameLib/game_scene.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/explore/explore_leader.py b/explore/explore_leader.py index b03c764..8925399 100644 --- a/explore/explore_leader.py +++ b/explore/explore_leader.py @@ -105,10 +105,10 @@ def start(self): self.log.info('结束本轮探索') # 点击退出探索 self.click_until('退出按钮', 'img/QUE-REN.png', - *TansuoPos.quit_btn, 2) + *TansuoPos.quit_btn, 1) # 点击确认 self.click_until('确认按钮', 'img/QUE-REN.png', - *TansuoPos.confirm_btn, 2, False) + *TansuoPos.confirm_btn, 1, False) # 等待司机退出1s if self.delay: diff --git a/explore/explore_passenger.py b/explore/explore_passenger.py index fff42fe..7dd08f3 100644 --- a/explore/explore_passenger.py +++ b/explore/explore_passenger.py @@ -61,8 +61,8 @@ def start(self): self.check_exp_full() # 点击准备,直到进入战斗 - self.click_until_knn('准备按钮', 'img/ZI-DONG.png', * - TansuoPos.ready_btn, mood.get1mood()/1000, False, 30) + self.click_until('准备按钮', 'img/ZI-DONG.png', * + TansuoPos.ready_btn, mood.get1mood()/1000, True) # 检测是否打完 state = self.check_end() diff --git a/gameLib/game_scene.py b/gameLib/game_scene.py index a417205..015b8b2 100644 --- a/gameLib/game_scene.py +++ b/gameLib/game_scene.py @@ -92,11 +92,11 @@ def switch_to_scene(self, scene): if scene == 3: # 点击退出探索 self.click_until_multi('退出按钮', 'img/QUE-REN.png', 'img/TAN-SUO.png', - pos=TansuoPos.quit_btn[0], pos_end=TansuoPos.quit_btn[1], step_time=2) + pos=TansuoPos.quit_btn[0], pos_end=TansuoPos.quit_btn[1], step_time=0.5) # 点击确认 self.click_until('确认按钮', 'img\\QUE-REN.png', - *TansuoPos.confirm_btn, 2, False) + *TansuoPos.confirm_btn, 1, False) # 递归 self.switch_to_scene(scene)