更新:添加鼠标图标识别、复活逻辑优化、参数配置加载修复、目标血量100%检测
This commit is contained in:
@@ -76,6 +76,13 @@ class DeathManager:
|
||||
print(">>> 已到达尸体附近,尝试复活...")
|
||||
hw_ctrl.press(self.resurrect_key)
|
||||
time.sleep(5)
|
||||
# 检查是否还是灵魂状态,如果是则再按一次复活键
|
||||
if get_state:
|
||||
new_state = get_state()
|
||||
if new_state and new_state.get('death_state') == 2:
|
||||
print(">>> 仍为灵魂状态,再次尝试复活...")
|
||||
hw_ctrl.press(self.resurrect_key)
|
||||
time.sleep(5)
|
||||
self.is_running_to_corpse = False
|
||||
self.corpse_pos = None
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user