0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-05 08:25:28 +00:00

修复传送卡住点经验药

This commit is contained in:
firedcto@gmail.com 2024-07-16 11:54:29 +08:00
parent 7cf20da307
commit b382ceb376
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ config = {
<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",

View File

@ -53,7 +53,7 @@ class FarmWorldBossTask(BaseCombatTask):
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]
@ -82,7 +82,7 @@ class FarmWorldBossTask(BaseCombatTask):
# 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)