mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-05-14 00:35:11 +00:00
fix farm world boss
This commit is contained in:
parent
a298fb1335
commit
8f246ec9a1
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
File diff suppressed because it is too large
Load Diff
@ -40,8 +40,9 @@ class FarmEchoTask(BaseCombatTask):
|
||||
self.sleep(2)
|
||||
self.log_info('click f2 to open the book')
|
||||
self.send_key('f2')
|
||||
self.wait_click_feature('gray_book_forgery', raise_if_not_found=True, use_gray_scale=True)
|
||||
self.wait_click_feature('gray_book_weekly_boss', raise_if_not_found=True, use_gray_scale=True)
|
||||
self.wait_click_feature('gray_book_forgery', raise_if_not_found=True, use_gray_scale=True, threshold=0.8)
|
||||
self.wait_click_feature('gray_book_weekly_boss', raise_if_not_found=True, use_gray_scale=True,
|
||||
threshold=0.8)
|
||||
self.sleep(1)
|
||||
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)
|
||||
|
@ -45,11 +45,21 @@ class FarmWorldBossTask(BaseCombatTask):
|
||||
self.sleep(1)
|
||||
self.log_info('click f2 to open the book')
|
||||
self.send_key('f2')
|
||||
proceeds = self.wait_feature('boss_proceed', vertical_variance=1, use_gray_scale=True, threshold=0.8,
|
||||
time_out=3)
|
||||
if not proceeds:
|
||||
self.log_error("can't find the boss_proceed", notify=True)
|
||||
raise Exception("can't find boss_proceed")
|
||||
gray_book_boss = self.wait_until(lambda: self.find_one('gray_book_boss', vertical_variance=1,
|
||||
threshold=0.8, canny_lower=50,
|
||||
canny_higher=150) or self.find_one(
|
||||
'gray_book_boss_highlight',
|
||||
vertical_variance=1,
|
||||
threshold=0.8,
|
||||
canny_lower=50,
|
||||
canny_higher=150),
|
||||
time_out=3)
|
||||
if not gray_book_boss:
|
||||
self.log_error("can't find the gray_book_boss", notify=True)
|
||||
raise Exception("can't find gray_book_boss")
|
||||
if gray_book_boss.name == 'gray_book_boss':
|
||||
self.log_info(f'click {gray_book_boss}')
|
||||
self.click_box(gray_book_boss)
|
||||
self.sleep(1.5)
|
||||
self.click_relative(0.04, 0.29)
|
||||
self.sleep(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user