0
0
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:
firedcto@gmail.com 2024-07-06 16:02:09 +08:00
parent 77167e9eab
commit b2dddce519
4 changed files with 10 additions and 11 deletions

View File

@ -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()

View File

@ -14,7 +14,7 @@ class AutoCombatTask(BaseCombatTask, TriggerTask):
self.get_current_char().perform()
except NotInCombatException as e:
logger.info(f'out of combat break {e}')
# if self.debug:
if self.debug:
self.screenshot(f'out of combat break {e}')
break

View File

@ -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

View File

@ -73,7 +73,7 @@ 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:
# if self.debug:
self.screenshot(f'out of combat break {e}')
break
logger.info(f'farm echo combat end')