mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-07 09:25:34 +00:00
add farm echo screenshots remove encore heavy attack
This commit is contained in:
parent
77167e9eab
commit
b2dddce519
@ -13,16 +13,14 @@ class Encore(BaseChar):
|
||||
self.sleep(0.4)
|
||||
self.n4()
|
||||
self.click_resonance()
|
||||
if self.is_forte_full():
|
||||
self.logger.info('Encore is_forte_full cast')
|
||||
self.sleep(2)
|
||||
self.heavy_attack()
|
||||
# if self.is_forte_full():
|
||||
# self.logger.info('Encore is_forte_full cast')
|
||||
# self.sleep(2)
|
||||
# self.heavy_attack()
|
||||
elif self.resonance_available():
|
||||
self.click_resonance()
|
||||
elif self.echo_available():
|
||||
self.click_echo(duration=1.5)
|
||||
elif self.is_forte_full():
|
||||
self.heavy_attack()
|
||||
else:
|
||||
self.logger.info('Encore nothing is available')
|
||||
self.switch_next_char()
|
||||
|
@ -14,8 +14,8 @@ class AutoCombatTask(BaseCombatTask, TriggerTask):
|
||||
self.get_current_char().perform()
|
||||
except NotInCombatException as e:
|
||||
logger.info(f'out of combat break {e}')
|
||||
# if self.debug:
|
||||
self.screenshot(f'out of combat break {e}')
|
||||
if self.debug:
|
||||
self.screenshot(f'out of combat break {e}')
|
||||
break
|
||||
|
||||
def trigger(self):
|
||||
|
@ -88,7 +88,8 @@ class BaseCombatTask(BaseTask, FindFeature, OCR, CombatCheck):
|
||||
if not in_team or now - start > 10:
|
||||
if self.debug:
|
||||
self.screenshot(f'not in team while switching chars_{current_char}_to_{switch_to} {now - start}')
|
||||
self.raise_not_in_combat('not in team while switching chars')
|
||||
self.raise_not_in_combat(
|
||||
f'not in team while switching chars_{current_char}_to_{switch_to}, {now - start}')
|
||||
if current_index != switch_to.index:
|
||||
has_intro = free_intro if free_intro else current_char.is_con_full()
|
||||
switch_to.has_intro = has_intro
|
||||
|
@ -73,8 +73,8 @@ class FarmEchoTask(BaseCombatTask):
|
||||
self.get_current_char().perform()
|
||||
except NotInCombatException as e:
|
||||
logger.info(f'farm echo loop out of combat break {e}')
|
||||
if self.debug:
|
||||
self.screenshot(f'out of combat break {e}')
|
||||
# if self.debug:
|
||||
self.screenshot(f'out of combat break {e}')
|
||||
break
|
||||
logger.info(f'farm echo combat end')
|
||||
self.wait_in_team_and_world(time_out=20)
|
||||
|
Loading…
x
Reference in New Issue
Block a user