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
560c484622
commit
ef3e0e73c4
@ -154,6 +154,7 @@ class BaseChar:
|
||||
if has_animation:
|
||||
if not self.task.in_team()[0]:
|
||||
self.task.in_liberation = True
|
||||
self.task.last_liberation = time.time()
|
||||
animated = True
|
||||
if time.time() - resonance_click_time > 6:
|
||||
self.task.in_liberation = False
|
||||
@ -256,7 +257,6 @@ class BaseChar:
|
||||
self.logger.debug(f'click_liberation liberation_available click')
|
||||
now = time.time()
|
||||
if now - last_click > 0.1:
|
||||
self.task.last_click_liberation = now
|
||||
self.task.send_key(self.get_liberation_key())
|
||||
self.liberation_available_mark = False
|
||||
clicked = True
|
||||
@ -272,10 +272,11 @@ class BaseChar:
|
||||
self.logger.error(f'clicked liberation but no effect')
|
||||
return False
|
||||
while not self.task.in_team()[0]:
|
||||
self.task.last_liberation = time.time()
|
||||
clicked = True
|
||||
if send_click:
|
||||
self.task.click(interval=0.1)
|
||||
if time.time() - start > 7:
|
||||
if self.task.last_liberation - start > 7:
|
||||
self.task.raise_not_in_combat('too long a liberation, the boss was killed by the liberation')
|
||||
self.task.next_frame()
|
||||
self.task.in_liberation = False
|
||||
|
@ -26,7 +26,7 @@ class CombatCheck:
|
||||
self.boss_health = None
|
||||
self.out_of_combat_reason = ""
|
||||
self.combat_check_interval = 0.8
|
||||
self.last_click_liberation = 0
|
||||
self.last_liberation = 0
|
||||
|
||||
def reset_to_false(self, recheck=False, reason=""):
|
||||
if is_pure_black(self.frame):
|
||||
@ -53,7 +53,7 @@ class CombatCheck:
|
||||
return False
|
||||
|
||||
def recent_liberation(self):
|
||||
return time.time() - self.last_click_liberation < 0.3
|
||||
return time.time() - self.last_liberation < 0.3
|
||||
|
||||
def check_count_down(self):
|
||||
count_down_area = self.box_of_screen(1820 / 3840, 266 / 2160, 2100 / 3840,
|
||||
|
Loading…
x
Reference in New Issue
Block a user