mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-27 22:49:46 +08:00
修复了地图移动的时候狂点标记问题,修复了移动次数从0开始计算的问题。
This commit is contained in:
@@ -256,7 +256,7 @@ public class TpTask(CancellationToken ct)
|
||||
// https://github.com/babalae/better-genshin-impact/issues/318
|
||||
if (mouseDistance < tolerance && currentZoomLevel < 2.5)
|
||||
{
|
||||
Logger.LogInformation($"移动 {iteration} 次鼠标后,已经接近目标点,不再进一步调整。");
|
||||
Logger.LogInformation("移动 {I} 次鼠标后,已经接近目标点,不再进一步调整。", iteration + 1);
|
||||
break;
|
||||
}
|
||||
while (mouseDistance > 5 * tolerance && currentZoomLevel < 4)
|
||||
@@ -274,6 +274,11 @@ public class TpTask(CancellationToken ct)
|
||||
totalMoveMouseY *= (currentZoomLevel) / (currentZoomLevel - 1);
|
||||
mouseDistance *= (currentZoomLevel) / (currentZoomLevel - 1);
|
||||
currentZoomLevel--;
|
||||
if (mouseDistance < tolerance && currentZoomLevel < 2.5)
|
||||
{
|
||||
Logger.LogInformation("移动 {I} 次鼠标后,已经接近目标点,不再进一步调整。", iteration + 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// 单次移动最大距离为 maxMouseMove
|
||||
|
||||
Reference in New Issue
Block a user