From f56465ebf3bb6873589968d8802d13ff2a3f5fc7 Mon Sep 17 00:00:00 2001 From: jbcaaa <2712825619@qq.com> Date: Fri, 18 Oct 2024 06:41:24 +0800 Subject: [PATCH] fixed the problem causes autopathing cannot run correctly. --- BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs b/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs index 545291e9..4a5bc3b3 100644 --- a/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs +++ b/BetterGenshinImpact/GameTask/AutoPathing/PathExecutor.cs @@ -150,6 +150,7 @@ public class PathExecutor(CancellationTokenSource cts) Logger.LogWarning("疑似卡死,尝试脱离"); await EscapeTrap(); Simulation.SendInput.Keyboard.KeyDown(User32.VK.VK_W); + continue; } } } @@ -160,7 +161,7 @@ public class PathExecutor(CancellationTokenSource cts) _rotateTask.RotateToApproach(targetOrientation, screen); if (_randomAngle != 0) { - if ((now - _lastActionTime).TotalSeconds > 1.5) + if ((now - _lastActionTime).TotalSeconds > 0.5) _randomAngle = 0; } // 根据指定方式进行移动 @@ -259,7 +260,7 @@ public class PathExecutor(CancellationTokenSource cts) TimeSpan timeSinceLastAction = DateTime.Now - _lastActionTime; _lastActionTime = DateTime.Now; - if (timeSinceLastAction.TotalSeconds >= 3) + if (timeSinceLastAction.TotalSeconds >= 1) { // 从零开始 _lastActionIndex = 0;