Skip to content

Commit

Permalink
Merge pull request #178 from bling-yshs/fix-auto-domain2
Browse files Browse the repository at this point in the history
fix: 修复传送并自动秘境脚本中,火本,太山府,苍白的遗荣可能无法正常进行的问题
  • Loading branch information
huiyadanli authored Jan 1, 2025
2 parents 098709d + 586e31b commit cbe5a99
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 9 deletions.
43 changes: 35 additions & 8 deletions repo/js/AutoDomain/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

// 执行自动秘境
Expand Down
2 changes: 1 addition & 1 deletion repo/js/AutoDomain/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "传送并自动秘境",
"version": "1.4",
"version": "1.5",
"description": "BetterGI自带脚本,用于传送后并执行自动秘境。秘境中角色死亡复活后继续回去战斗。",
"authors": [
{
Expand Down

0 comments on commit cbe5a99

Please sign in to comment.