修复鸡屁股不拾取 (#2080)

修复鸡屁股不拾取
This commit is contained in:
JJMdzh
2025-10-06 14:28:18 +08:00
committed by GitHub
parent c60dea5ba5
commit a3bc68cf0e

View File

@@ -114,7 +114,7 @@ function determinePath() {
async function init(shouldRestore = true, shouldResizeMap = false) {
dispatcher.addTimer(new RealtimeTimer("AutoPick", { "forceInteraction": false }));
if (shouldRestore) {
await genshin.tp("-257.8800964", "627.0402832");
await genshin.tp("4747.68505859375", "2632.9970703125");,
await sleep(3000);
}
if (shouldResizeMap) {
@@ -366,7 +366,7 @@ async function runFile(filePath, times = 2) {
// 步骤1先执行路径确保路径已完成
let forceInteraction = filePath.search("-f") != -1;
if (!isToRestore) dispatcher.addTimer(new RealtimeTimer("AutoPick", { "forceInteraction": false }));
if (!isToRestore) dispatcher.addTimer(new RealtimeTimer("AutoPick", { "forceInteraction": forceInteraction }));
await pathingScript.runFile(filePath); // 执行路径
await sleep(1000);