mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
修复刷世界boss声骸报错
This commit is contained in:
parent
a477ccfcd7
commit
69f4f6a836
@ -77,6 +77,7 @@ class DiscardEchoTask(BaseCombatTask):
|
|||||||
self.set_names.append(f'set_name_{i}')
|
self.set_names.append(f'set_name_{i}')
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
|
return self.scroll_down_a_page()
|
||||||
self.check_main()
|
self.check_main()
|
||||||
row = 0
|
row = 0
|
||||||
col = 0
|
col = 0
|
||||||
@ -134,18 +135,13 @@ class DiscardEchoTask(BaseCombatTask):
|
|||||||
def scroll_down_a_page(self):
|
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)
|
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)
|
source_template = Feature(set_icon.crop_frame(self.frame), set_icon.x, set_icon.y)
|
||||||
steps = 0.08
|
steps = 0.08
|
||||||
target_box = set_icon.copy(y_offset=-self.height_of_screen(steps), height_offset=self.height_of_screen(steps))
|
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:
|
while True:
|
||||||
self.click_relative(0.5, 0.5)
|
self.scroll_relative(0.5, 0.5, -1)
|
||||||
self.sleep(0.05)
|
self.sleep(0.5)
|
||||||
self.scroll_relative(0.5, 0.5, -2)
|
|
||||||
self.sleep(0.2)
|
|
||||||
target = self.find_one('target_box', box=target_box, template=source_template, threshold=0.9)
|
target = self.find_one('target_box', box=target_box, template=source_template, threshold=0.9)
|
||||||
if not target:
|
if not target:
|
||||||
self.sleep(1)
|
self.sleep(1)
|
||||||
|
@ -67,7 +67,6 @@ class FarmWorldBossTask(BaseCombatTask):
|
|||||||
def run(self):
|
def run(self):
|
||||||
self.set_check_monthly_card()
|
self.set_check_monthly_card()
|
||||||
self.check_main()
|
self.check_main()
|
||||||
self.handler.post(self.mouse_reset, 0.01)
|
|
||||||
count = 0
|
count = 0
|
||||||
while True:
|
while True:
|
||||||
for i in range(1, 4):
|
for i in range(1, 4):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user