0
0
mirror of https://github.com/ok-oldking/ok-wuthering-waves.git synced 2025-06-07 01:15:18 +00:00
ok-wuthering-waves/src/char/Xiangliyao.py
firedcto@gmail.com 9a761d664b 支持相里要
2024-09-10 14:10:59 +08:00

33 lines
991 B
Python

import time
from src.char.BaseChar import BaseChar
class Xiangliyao(BaseChar):
def __init__(self, *args):
super().__init__(*args)
self.liberation_time = 0
def do_perform(self):
if self.click_liberation():
self.liberation_time = time.time()
if self.still_in_liberation():
while not self.click_resonance(send_click=True)[0]:
self.continues_normal_attack(1)
elif self.echo_available():
self.logger.debug('click_echo')
self.click_echo(duration=1.5)
else:
self.click_resonance(send_click=True)
self.switch_next_char()
def count_liberation_priority(self):
return 40
def count_base_priority(self):
return super().count_base_priority() + 100 if self.still_in_liberation() and self.resonance_available() else 0
def still_in_liberation(self):
return self.time_elapsed_accounting_for_freeze(self.liberation_time) < 25