mirror of
https://github.com/ok-oldking/ok-wuthering-waves.git
synced 2025-06-05 08:25:28 +00:00
尝试修复月卡问题
优化今汐渊武
This commit is contained in:
parent
91abf8312f
commit
4f25dc4225
@ -11,15 +11,20 @@ class Jinhsi(BaseChar):
|
||||
self.has_free_intro = False
|
||||
self.incarnation = False
|
||||
self.incarnation_cd = False
|
||||
self.last_fly_e_time = time.time()
|
||||
|
||||
def do_perform(self):
|
||||
if self.incarnation:
|
||||
self.handle_incarnation()
|
||||
return self.switch_next_char()
|
||||
if self.has_intro or self.incarnation_cd:
|
||||
elif self.has_intro or self.incarnation_cd:
|
||||
self.handle_intro()
|
||||
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()
|
||||
|
||||
def reset_state(self):
|
||||
@ -95,6 +100,7 @@ class Jinhsi(BaseChar):
|
||||
if not self.click_echo():
|
||||
self.task.click()
|
||||
return
|
||||
self.last_fly_e_time = start
|
||||
if self.click_liberation(send_click=True):
|
||||
self.continues_normal_attack(0.3)
|
||||
else:
|
||||
|
@ -16,5 +16,8 @@ class Yuanwu(BaseChar):
|
||||
self.click_liberation(con_less_than=1)
|
||||
if self.is_forte_full():
|
||||
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()
|
||||
|
@ -97,15 +97,15 @@ class BaseWWTask(BaseTask, FindFeature, OCR):
|
||||
if self.should_check_monthly_card():
|
||||
start = time.time()
|
||||
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')
|
||||
return time.time() - start
|
||||
if self.in_team_and_world():
|
||||
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)
|
||||
logger.info(f'wait monthly card end {monthly_card}')
|
||||
cost = time.time() - start
|
||||
return cost
|
||||
cost = time.time() - start
|
||||
return cost
|
||||
return 0
|
||||
|
||||
def should_check_monthly_card(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user