0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-03 09:25:19 +00:00

修复刷世界boss声骸报错

This commit is contained in:
firedcto@gmail.com 2024-10-01 19:26:02 +08:00
parent a477ccfcd7
commit 69f4f6a836
2 changed files with 4 additions and 9 deletions

View File

@ -77,6 +77,7 @@ class DiscardEchoTask(BaseCombatTask):
self.set_names.append(f'set_name_{i}')
def run(self):
return self.scroll_down_a_page()
self.check_main()
row = 0
col = 0
@ -134,18 +135,13 @@ class DiscardEchoTask(BaseCombatTask):
def scroll_down_a_page(self):
set_icon = self.find_best_match_in_box(self.box_of_screen(0.36, 0.67, 0.39, 0.86), self.set_names, 0.3)
# last_box.x -= self.height_of_screen(0.04)
# last_box.width += self.width_of_screen(0.03)
# last_box.y -= self.height_of_screen(0.05)
# last_box.height += self.width_of_screen(0.04)
source_template = Feature(set_icon.crop_frame(self.frame), set_icon.x, set_icon.y)
steps = 0.08
target_box = set_icon.copy(y_offset=-self.height_of_screen(steps), height_offset=self.height_of_screen(steps))
self.click_relative(0.5, 0.5, after_sleep=1)
while True:
self.click_relative(0.5, 0.5)
self.sleep(0.05)
self.scroll_relative(0.5, 0.5, -2)
self.sleep(0.2)
self.scroll_relative(0.5, 0.5, -1)
self.sleep(0.5)
target = self.find_one('target_box', box=target_box, template=source_template, threshold=0.9)
if not target:
self.sleep(1)

View File

@ -67,7 +67,6 @@ class FarmWorldBossTask(BaseCombatTask):
def run(self):
self.set_check_monthly_card()
self.check_main()
self.handler.post(self.mouse_reset, 0.01)
count = 0
while True:
for i in range(1, 4):