Skip to content

Commit

Permalink
修复传送卡住点经验药
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 16, 2024
1 parent 7cf20da commit b382ceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def calculate_pc_exe_path(running_path):
<h3>OK-WW</h3>
<p>GitHub <a href="https://github.com/ok-oldking/ok-wuthering-waves">https://github.com/ok-oldking/ok-wuthering-waves</></p>
<p>Report a BUG <a href="https://github.com/ok-oldking/ok-wuthering-waves/issues/new?assignees=ok-oldking&labels=bug&projects=&template=%E6%8A%A5%E5%91%8Abug-.md&title=%5BBUG%5D">https://github.com/ok-oldking/ok-wuthering-waves/issues/new?assignees=ok-oldking&labels=bug&projects=&template=%E6%8A%A5%E5%91%8Abug-.md&title=%5BBUG%5D</></p>
<p>QQ Group:<a href="https://qm.qq.com/q/qMezq2IDGU">970523295</a></p>
<p>QQ群:<a href="https://qm.qq.com/q/qMezq2IDGU">970523295</a></p>
""",
'supported_screen_ratio': '16:9',
'screenshots_folder': "screenshots",
Expand Down
4 changes: 2 additions & 2 deletions src/task/FarmWorldBossTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def teleport(self, boss_name):
self.log_info(f'click {gray_book_boss}')
self.click_box(gray_book_boss)
self.sleep(1.5)

if index >= (len(self.boss_names) - self.weekly_boss_count - 1): # weekly turtle
logger.info('click weekly boss')
index = self.weekly_boss_index[boss_name]
Expand Down Expand Up @@ -82,7 +82,7 @@ def teleport(self, boss_name):
# self.click_relative(self.crownless_pos[0], self.crownless_pos[1])
# self.wait_click_feature('gray_teleport', raise_if_not_found=True, use_gray_scale=True)
self.wait_feature('gray_teleport', raise_if_not_found=True, use_gray_scale=True, time_out=120,
pre_action=lambda: self.click_box(proceeds[index], relative_x=-1) and self.sleep(3))
pre_action=lambda: self.click_box(proceeds[index], relative_x=-1), wait_until_before_delay=5)
self.sleep(1)
teleport = self.wait_click_feature('custom_teleport', box=self.box_of_screen(0.48, 0.45, 0.54, 0.58),
raise_if_not_found=False, threshold=0.8, time_out=2)
Expand Down

0 comments on commit b382ceb

Please sign in to comment.