0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-04-24 08:25:16 +00:00

Merge pull request #348 from Ryoma007/五合一切换索引问题

五合一切换声骸等级重置索引,重新从第一个开始检查;增加等待时间,避免动画还没结束就点击
This commit is contained in:
ok-oldking 2025-02-19 00:51:19 +08:00 committed by GitHub
commit 9747d43d9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,8 +73,8 @@ class FiveToOneTask(BaseWWTask):
self.click_relative(0.95, 0.05)
self.send_key_up('alt')
self.sleep(2)
self.click_relative(0.75, 0.46, after_sleep=1)
self.click_relative(0.04, 0.55, after_sleep=1)
self.click_relative(0.75, 0.46, after_sleep=3)
self.click_relative(0.04, 0.55, after_sleep=3)
self.click_relative(0.53, 0.2, after_sleep=1)
self.incr_cost_filter()
starting_index = 0
@ -93,6 +93,7 @@ class FiveToOneTask(BaseWWTask):
if self.find_one('data_merge_first_add_slot', threshold=0.6):
if self.incr_cost_filter():
self.add_5()
start_index = 0
else:
return -1
for i in range(start_index, len(self.echo_positions)):