更新:添加鼠标图标识别、复活逻辑优化、参数配置加载修复、目标血量100%检测

This commit is contained in:
王鹏
2026-04-19 15:53:45 +08:00
parent 33dc741fd9
commit 6ec468a78b
46 changed files with 900 additions and 131 deletions

View File

@@ -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