From 586e31b6319f03accb5a69dd5ff04f44024feeec Mon Sep 17 00:00:00 2001 From: bling-yshs <377178599@qq.com> Date: Wed, 1 Jan 2025 20:20:35 +0800 Subject: [PATCH] =?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=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E7=81=AB=E6=9C=AC=EF=BC=8C=E5=A4=AA=E5=B1=B1?= =?UTF-8?q?=E5=BA=9C=EF=BC=8C=E8=8B=8D=E7=99=BD=E7=9A=84=E9=81=97=E8=8D=A3?= =?UTF-8?q?=E5=8F=AF=E8=83=BD=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/AutoDomain/main.js | 43 ++++++++++++++++++++++++++------ repo/js/AutoDomain/manifest.json | 2 +- 2 files changed, 36 insertions(+), 9 deletions(-) diff --git a/repo/js/AutoDomain/main.js b/repo/js/AutoDomain/main.js index 5c90f04..080780f 100644 --- a/repo/js/AutoDomain/main.js +++ b/repo/js/AutoDomain/main.js @@ -270,14 +270,41 @@ try{ await genshin.tp(domainInfo.position[2], domainInfo.position[0]); await sleep(1000); - - // 向前走,除非秘境是芬德尼尔之顶 - if (domainName !== "芬德尼尔之顶") { - // 向前走 - keyDown("w"); - await sleep(2500); - keyUp("w"); - await sleep(500); + + switch (domainName) { + case "芬德尼尔之顶": + case "太山府": + // 这两个不需要向前走 + break; + case "无妄引咎密宫": + // 火本需要往左走再往上走 + keyDown("a"); + await sleep(1500); + keyUp("a"); + await sleep(500); + keyDown("w"); + await sleep(500); + keyUp("w"); + await sleep(500); + break; + case "苍白的遗荣": + // 这个走一秒就够了,并且有可能被晶蝶打断,所以需要按F + keyDown("w"); + await sleep(1000); + keyUp("w"); + await sleep(500); + keyDown("f"); + await sleep(500); + keyUp("f"); + await sleep(500); + break; + default: + // 其余秘境需要向前走 + keyDown("w"); + await sleep(2500); + keyUp("w"); + await sleep(500); + break; } // 执行自动秘境 diff --git a/repo/js/AutoDomain/manifest.json b/repo/js/AutoDomain/manifest.json index 79bdf91..a525fed 100644 --- a/repo/js/AutoDomain/manifest.json +++ b/repo/js/AutoDomain/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "传送并自动秘境", - "version": "1.4", + "version": "1.5", "description": "BetterGI自带脚本,用于传送后并执行自动秘境。秘境中角色死亡复活后继续回去战斗。", "authors": [ {