From c3c83742e56f9b7104fbd2730de9baff0dc613dd Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Mon, 30 Dec 2024 22:57:15 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BC=A0=E9=80=81?= =?UTF-8?q?=E5=B9=B6=E8=87=AA=E5=8A=A8=E7=A7=98=E5=A2=83=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E6=89=93=E8=8A=AC=E5=BE=B7=E5=B0=BC=E5=B0=94?= =?UTF-8?q?=E4=B9=8B=E9=A1=B6=EF=BC=88=E5=86=B0=E6=9C=AC=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoDomain/main.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/repo/js/AutoDomain/main.js b/repo/js/AutoDomain/main.js index 49697b8e..5c90f048 100644 --- a/repo/js/AutoDomain/main.js +++ b/repo/js/AutoDomain/main.js @@ -270,19 +270,21 @@ try{ await genshin.tp(domainInfo.position[2], domainInfo.position[0]); await sleep(1000); - - // 向前走 - keyDown("w"); - await sleep(2500); - keyUp("w"); - - await sleep(500); - + + // 向前走,除非秘境是芬德尼尔之顶 + if (domainName !== "芬德尼尔之顶") { + // 向前走 + keyDown("w"); + await sleep(2500); + keyUp("w"); + await sleep(500); + } + // 执行自动秘境 await dispatcher.runTask(new SoloTask("AutoDomain")); await sleep(500); break; - }catch (ex) + }catch (ex) { if (ex.message.includes("检测到复苏界面")) { @@ -293,7 +295,7 @@ { // 如果不包含 "检测到复苏界面",则继续抛出异常 throw ex; - } + } } } -})(); \ No newline at end of file +})(); From a90e0b192671b2b8401797fc8b5092e797554035 Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Mon, 30 Dec 2024 23:00:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fixup:=20=E4=BF=AE=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoDomain/manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/js/AutoDomain/manifest.json b/repo/js/AutoDomain/manifest.json index 48ab91bb..79bdf91c 100644 --- a/repo/js/AutoDomain/manifest.json +++ b/repo/js/AutoDomain/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "传送并自动秘境", - "version": "1.3", + "version": "1.4", "description": "BetterGI自带脚本,用于传送后并执行自动秘境。秘境中角色死亡复活后继续回去战斗。", "authors": [ { @@ -11,4 +11,4 @@ ], "settings_ui": "settings.json", "main": "main.js" -} \ No newline at end of file +}