更新秘境副本难度选择 (#2055)

This commit is contained in:
Polaris
2025-10-02 19:04:23 +08:00
committed by GitHub
parent 97e8e30ce9
commit 7e5e8cd95d
3 changed files with 32 additions and 14 deletions

View File

@@ -261,9 +261,24 @@
"description": "Domain",
"name": "荒废砌造坞",
"position": [-3378.5, 0, 10535.5]
},
{
"description": "Domain",
"name": "霜凝的机枢",
"position": [3150.53, 0, 9375.39]
},
{
"description": "Domain",
"name": "失落的月庭",
"position": [1936.05, 0, 10828.34]
},
{
"description": "Domain",
"name": "无光的深都",
"position": [1832.2, 0, 9967.05]
}
]
Lowxy=[200,300,400,500,600,700]
Lowxy = [200, 300, 400, 500, 600, 700]
let domainName = settings.name;
let domainLevel = settings.level;
// 使用 find 方法找到匹配的域对象
@@ -310,17 +325,17 @@
await sleep(500);
keyPress("f")
await sleep(5000);
let xy =0;let xx=400
switch (domainLevel){
case "I" :xy=200;break;
case "II" :xy=300;break;
case "III" :xy=400;break;
case "IV" :xy=500;break;
case "V" :xy=600;break;
case "VI" :xy=700;break;
let xy = 0; let xx = 400
switch (domainLevel) {
case "I": xy = 200; break;
case "II": xy = 300; break;
case "III": xy = 400; break;
case "IV": xy = 500; break;
case "V": xy = 600; break;
case "VI": xy = 700; break;
}
log.info(`已选择难度${domainLevel}`)
click(xx,xy)
click(xx, xy)
await sleep(1000);
click(1840,50)
click(1840, 50)
})();

View File

@@ -1,12 +1,12 @@
{
"manifest_version": 1,
"name": "切换秘境难度",
"version": "1.0",
"version": "1.1",
"bgi_version": "0.36.1",
"description": "注意难度VI难度V并非所有秘境都有请注意分辨无效难度参数会导致无法达到效果",
"authors": [
{
"name": "Alkaid",
"name": "Polaris",
"links": "https://github.com/Rosefinch-zzz"
}
],

View File

@@ -33,7 +33,10 @@
"深古瞭望所",
"虹灵的净土",
"昏识塔",
"荒废砌造坞"
"荒废砌造坞",
"霜凝的机枢",
"失落的月庭",
"无光的深都"
]
},
{