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

修复世界boss传送问题

Fix world boss teleport
This commit is contained in:
firedcto@gmail.com 2024-09-29 20:05:15 +08:00
parent ead0f77cf3
commit 74a40ecf4f
3 changed files with 17 additions and 18 deletions

View File

@ -50,22 +50,6 @@ class BaseCombatTask(BaseWWTask, FindFeature, OCR, CombatCheck):
self.char_texts = ['char_1_text', 'char_2_text', 'char_3_text'] self.char_texts = ['char_1_text', 'char_2_text', 'char_3_text']
self.bosses_pos = {
'Bell-Borne Geochelone': [0, 0, False],
'Dreamless': [0, 2, True],
'Jue': [0, 3, True],
'Tempest Mephis': [0, 4, False],
'Inferno Rider': [0, 5, False],
'Impermanence Heron': [0, 6, False],
'Lampylumen Myriad': [1, 0, False],
'Feilian Beringal': [1, 1, False],
'Mourning Aix': [1, 2, False],
'Crownless': [1, 3, False],
'Mech Abomination': [1, 4, False],
'Thundering Mephis': [1, 5, False],
'Fallacy of No Return': [1, 6, False],
}
def send_key_and_wait_animation(self, key, check_function, total_wait=10, animation_wait=5): def send_key_and_wait_animation(self, key, check_function, total_wait=10, animation_wait=5):
start = time.time() start = time.time()
animation_start = 0 animation_start = 0

View File

@ -36,6 +36,21 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
self.multiplayer_check_interval = 3 self.multiplayer_check_interval = 3
self._in_multiplayer = False self._in_multiplayer = False
self._multiplayer_last_check = 0 self._multiplayer_last_check = 0
self.bosses_pos = {
'Bell-Borne Geochelone': [0, 0, False],
'Dreamless': [0, 2, True],
'Jue': [0, 3, True],
'Tempest Mephis': [0, 4, False],
'Inferno Rider': [0, 5, False],
'Impermanence Heron': [0, 6, False],
'Lampylumen Myriad': [1, 0, False],
'Feilian Beringal': [1, 1, False],
'Mourning Aix': [1, 2, False],
'Crownless': [1, 3, False],
'Mech Abomination': [1, 4, False],
'Thundering Mephis': [1, 5, False],
'Fallacy of No Return': [1, 6, False],
}
def validate(self, key, value): def validate(self, key, value):
message = self.validate_config(key, value) message = self.validate_config(key, value)
@ -363,7 +378,7 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
def click_traval_button(self): def click_traval_button(self):
if btn := self.find_one('fast_travel_custom', threshold=0.6): if btn := self.find_one('fast_travel_custom', threshold=0.6):
self.click_box(btn, relative_x=-1) self.click_box(btn, relative_x=1)
self.sleep(1) self.sleep(1)
return self.wait_click_feature('gray_confirm_exit_button', relative_x=-1, raise_if_not_found=True, return self.wait_click_feature('gray_confirm_exit_button', relative_x=-1, raise_if_not_found=True,
threshold=0.7, threshold=0.7,

View File

@ -15,7 +15,7 @@ class FarmWorldBossTask(BaseCombatTask):
super().__init__() super().__init__()
self.description = "Click Start in Game World" self.description = "Click Start in Game World"
self.name = "Farm World Boss(Must Drop a WayPoint on the Boss First)" self.name = "Farm World Boss(Must Drop a WayPoint on the Boss First)"
self.boss_names = ['N/A', 'Bell-Borne Geochelone', 'Crownless', 'Thundering Mephis', self.boss_names = ['N/A', 'Bell-Borne Geochelone', 'Crownless', 'Thundering Mephis', 'Tempest Mephis',
'Inferno Rider', 'Inferno Rider',
'Feilian Beringal', 'Feilian Beringal',
'Mourning Aix', 'Impermanence Heron', 'Lampylumen Myriad', 'Mech Abomination', 'Mourning Aix', 'Impermanence Heron', 'Lampylumen Myriad', 'Mech Abomination',