mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-06 17:05:54 +00:00
尝试修复月卡问题
优化今汐渊武
This commit is contained in:
parent
91abf8312f
commit
4f25dc4225
@ -11,15 +11,20 @@ class Jinhsi(BaseChar):
|
|||||||
self.has_free_intro = False
|
self.has_free_intro = False
|
||||||
self.incarnation = False
|
self.incarnation = False
|
||||||
self.incarnation_cd = False
|
self.incarnation_cd = False
|
||||||
|
self.last_fly_e_time = time.time()
|
||||||
|
|
||||||
def do_perform(self):
|
def do_perform(self):
|
||||||
if self.incarnation:
|
if self.incarnation:
|
||||||
self.handle_incarnation()
|
self.handle_incarnation()
|
||||||
return self.switch_next_char()
|
elif self.has_intro or self.incarnation_cd:
|
||||||
if self.has_intro or self.incarnation_cd:
|
|
||||||
self.handle_intro()
|
self.handle_intro()
|
||||||
return self.switch_next_char()
|
return self.switch_next_char()
|
||||||
self.click_echo()
|
elif self.click_echo():
|
||||||
|
pass
|
||||||
|
elif self.time_elapsed_accounting_for_freeze(self.last_free_intro) < 8 and self.click_resonance()[0]:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
self.normal_attack()
|
||||||
return self.switch_next_char()
|
return self.switch_next_char()
|
||||||
|
|
||||||
def reset_state(self):
|
def reset_state(self):
|
||||||
@ -95,6 +100,7 @@ class Jinhsi(BaseChar):
|
|||||||
if not self.click_echo():
|
if not self.click_echo():
|
||||||
self.task.click()
|
self.task.click()
|
||||||
return
|
return
|
||||||
|
self.last_fly_e_time = start
|
||||||
if self.click_liberation(send_click=True):
|
if self.click_liberation(send_click=True):
|
||||||
self.continues_normal_attack(0.3)
|
self.continues_normal_attack(0.3)
|
||||||
else:
|
else:
|
||||||
|
@ -16,5 +16,8 @@ class Yuanwu(BaseChar):
|
|||||||
self.click_liberation(con_less_than=1)
|
self.click_liberation(con_less_than=1)
|
||||||
if self.is_forte_full():
|
if self.is_forte_full():
|
||||||
self.send_resonance_key(down_time=0.6, post_sleep=0.2)
|
self.send_resonance_key(down_time=0.6, post_sleep=0.2)
|
||||||
self.click_echo()
|
elif self.click_echo():
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
self.continues_normal_attack(0.2)
|
||||||
self.switch_next_char()
|
self.switch_next_char()
|
||||||
|
@ -97,15 +97,15 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
|
|||||||
if self.should_check_monthly_card():
|
if self.should_check_monthly_card():
|
||||||
start = time.time()
|
start = time.time()
|
||||||
logger.info(f'check_for_monthly_card start check')
|
logger.info(f'check_for_monthly_card start check')
|
||||||
if self.check_combat():
|
if self.in_combat():
|
||||||
logger.info(f'check_for_monthly_card in combat return')
|
logger.info(f'check_for_monthly_card in combat return')
|
||||||
return time.time() - start
|
return time.time() - start
|
||||||
if self.in_team_and_world():
|
if self.in_team_and_world():
|
||||||
logger.info(f'check_for_monthly_card in team send sleep until monthly card popup')
|
logger.info(f'check_for_monthly_card in team send sleep until monthly card popup')
|
||||||
monthly_card = self.wait_until(self.handle_monthly_card, time_out=120, raise_if_not_found=False)
|
monthly_card = self.wait_until(self.handle_monthly_card, time_out=120, raise_if_not_found=False)
|
||||||
logger.info(f'wait monthly card end {monthly_card}')
|
logger.info(f'wait monthly card end {monthly_card}')
|
||||||
cost = time.time() - start
|
cost = time.time() - start
|
||||||
return cost
|
return cost
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def should_check_monthly_card(self):
|
def should_check_monthly_card(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user