js:锄地一条龙1.14 (#1319)

拾取模式改为选项,可选完全不拾取
加入部分飞萤路线
This commit is contained in:
mno
2025-07-10 08:55:00 +08:00
committed by GitHub
parent c267be85ab
commit 10d7008f82
15 changed files with 1010 additions and 12 deletions

View File

@@ -3,37 +3,49 @@
"name": "小怪传奇倍率一",
"moraRate": 1,
"type": "普通",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "小怪传奇倍率二",
"moraRate": 2,
"type": "普通",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "精英传奇倍率一",
"moraRate": 1,
"type": "精英",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "精英传奇倍率二",
"moraRate": 2,
"type": "精英",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "精英传奇倍率三",
"moraRate": 3,
"type": "精英",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "精英传奇倍率五",
"moraRate": 5,
"type": "精英",
"tags": []
"tags": [
"传奇"
]
},
{
"name": "火史莱姆",

View File

@@ -1,6 +1,7 @@
//拾取时上下滑动的时间
const timeMoveUp = 500;
const timeMoveDown = 1000;
const pickupMode = settings.pickupMode || "js拾取默认只拾取狗粮和晶蝶";
(async function () {
//自定义配置处理
@@ -12,6 +13,7 @@ const timeMoveDown = 1000;
let targetMonsterNum = (+settings.targetMonsterNum + 1 || 2000);
targetMonsterNum += 25;//预留漏怪
const partyName = settings.partyName || "";
// 获取 settings 中的标签,如果没有则使用默认值
const group1Settings = settings.tagsForGroup1 || "蕈兽";
const group2Settings = settings.tagsForGroup2 || "";
@@ -688,7 +690,7 @@ async function processPathingsByGroup(pathings, targetTexts, blacklistKeywords,
// 获取该组的总路径数
const totalPathsInGroup = pathings.filter(pathing => pathing.group === targetGroup).length;
if (settings.onlyArtifacts) {
if (pickupMode === "bgi原版拾取") {
dispatcher.addTimer(new RealtimeTimer("AutoPick"));
}
@@ -753,7 +755,7 @@ async function processPathingsByGroup(pathings, targetTexts, blacklistKeywords,
// 输出路径已刷新并开始处理的信息
log.info(`该路线已刷新,开始处理。`);
await fakeLog(`${pathing.fileName}`, false, true, 0);
if (!settings.onlyArtifacts) {
if (pickupMode === "js拾取默认只拾取狗粮和晶蝶") {
// 调用 runPathWithOcr 函数处理路径
await runPathWithOcr(pathing.fullPath, targetTexts, blacklistKeywords);
} else {

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "锄地一条龙",
"version": "1.1.3",
"version": "1.1.4",
"description": "一站式解决自动化锄地支持只拾取狗粮请阅读README.md后使用",
"authors": [
{

View File

@@ -0,0 +1,86 @@
{
"info": {
"name": "A01-蒙德-龙脊雪山-眠龙谷-北-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时85.01秒包含以下怪物1只冰深渊法师、3只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751638015174,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"action": "",
"move_mode": "walk",
"type": "teleport",
"x": -574.01,
"y": 1458.58,
"action_params": ""
},
{
"id": 2,
"x": -581.47,
"y": 1474.67,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -602.78,
"y": 1480.35,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": -628.48,
"y": 1468.08,
"type": "path",
"move_mode": "run",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -680.38,
"y": 1477.49,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": "",
"locked": false
},
{
"id": 6,
"x": -663.02,
"y": 1474.85,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 7,
"x": -663.02,
"y": 1474.85,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,112 @@
{
"info": {
"name": "A02-蒙德-龙脊雪山-覆雪之路-2只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时72.27秒包含以下怪物2只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751638535580,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -1130.76,
"y": 1597.92,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -1099.31,
"y": 1603.76,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -1078.65,
"y": 1597.65,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": -1064.5,
"y": 1601.54,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -1038.96,
"y": 1563.78,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": -1035.73,
"y": 1536.27,
"type": "path",
"move_mode": "dash",
"action": "combat_script",
"action_params": "wait(1.5)"
},
{
"id": 7,
"x": -1014.55,
"y": 1487.58,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 8,
"x": -1026.61,
"y": 1481.23,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 9,
"x": -1024.21,
"y": 1482.01,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 10,
"x": -1024.21,
"y": 1482.01,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,86 @@
{
"info": {
"name": "A03-蒙德-龙脊雪山-寒天之钉-下方-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时57.21秒包含以下怪物3只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751639100937,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -1013.4,
"y": 1028.42,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -987.79,
"y": 1014.58,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": "",
"locked": false
},
{
"id": 3,
"x": -987.79,
"y": 1014.58,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 4,
"x": -949.47,
"y": 1001.77,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -936.37,
"y": 1010.43,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": -921.28,
"y": 996.07,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 7,
"x": -921.28,
"y": 996.07,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,78 @@
{
"info": {
"name": "A04-蒙德-龙脊雪山-七天神像-东北-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时78.17秒包含以下怪物3只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751639468728,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -1023.3,
"y": 1174.5,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -1025.98,
"y": 1196.74,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -1209.16,
"y": 1198.12,
"type": "path",
"move_mode": "fly",
"action": "combat_script",
"action_params": "keypress(VK_SPACE),wait(4.5),keypress(VK_SPACE),attack(0.2)",
"locked": false
},
{
"id": 4,
"x": -1209.16,
"y": 1198.12,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": "",
"locked": false
},
{
"id": 5,
"x": -1209.16,
"y": 1198.12,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 6,
"x": -1209.16,
"y": 1198.12,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,77 @@
{
"info": {
"name": "A05-蒙德-龙脊雪山-七天神像-东-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时85.68秒包含以下怪物3只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751639955951,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -1023.29,
"y": 1174.48,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -1037.78,
"y": 1169.17,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -1260.42,
"y": 1056.59,
"type": "path",
"move_mode": "fly",
"action": "combat_script",
"action_params": "keypress(VK_SPACE),wait(4.5),keypress(VK_SPACE),attack(0.2)"
},
{
"id": 4,
"x": -1260.41,
"y": 1056.58,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": "",
"locked": false
},
{
"id": 5,
"x": -1260.41,
"y": 1056.58,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 6,
"x": -1260.41,
"y": 1056.58,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,93 @@
{
"info": {
"name": "A06-蒙德-龙脊雪山-七天神像-西南-2只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时125.14秒包含以下怪物2只冰萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751640725899,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -1023.16,
"y": 1174.62,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -1005.95,
"y": 1155.52,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -1002.82,
"y": 1118.77,
"type": "path",
"move_mode": "dash",
"action": "combat_script",
"action_params": "wait(0.5)"
},
{
"id": 4,
"x": -1005.2,
"y": 1106.58,
"type": "target",
"move_mode": "jump",
"action": "combat_script",
"action_params": "wait(2)"
},
{
"id": 5,
"x": -999.12,
"y": 1091.17,
"type": "target",
"move_mode": "jump",
"action": "combat_script",
"action_params": "wait(3)"
},
{
"id": 6,
"x": -977.81,
"y": 1098.33,
"type": "path",
"move_mode": "jump",
"action": "",
"action_params": ""
},
{
"id": 7,
"x": -966.9,
"y": 1107.89,
"type": "path",
"move_mode": "dash",
"action": "fight",
"action_params": ""
},
{
"id": 8,
"x": -966.89,
"y": 1107.91,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,95 @@
{
"info": {
"name": "B02-璃月-云來海-孤云閣-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时59.6秒包含以下怪物3只水萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751642702039,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": -657.56,
"y": -90.86,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": -609.13,
"y": -126.61,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": -597.5,
"y": -125.51,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": -550.75,
"y": -130.77,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": -564.74,
"y": -119.75,
"type": "path",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": -561.94,
"y": -126.61,
"type": "path",
"move_mode": "dash",
"action": "combat_script",
"action_params": "wait(2.5)",
"locked": false
},
{
"id": 7,
"x": -561.94,
"y": -126.61,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 8,
"x": -561.94,
"y": -126.61,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,68 @@
{
"info": {
"name": "B04-璃月-琼玑野-渌华池-2只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时61.37秒包含以下怪物1只炽热骗骗花、2只雷萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751643056133,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": 837.51,
"y": 235.14,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 861.21,
"y": 163.66,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": ""
},
{
"id": 3,
"x": 854.23,
"y": 168.81,
"type": "path",
"move_mode": "fly",
"action": "stop_flying",
"action_params": "",
"locked": false
},
{
"id": 4,
"x": 854.23,
"y": 168.81,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 5,
"x": 854.23,
"y": 168.81,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,149 @@
{
"info": {
"name": "B05-璃月-琼玑野-归离原-2只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时174秒包含以下怪物1只火箭丘丘人、1只爆弹丘丘人、2只雷萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751643462615,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": 489.39,
"y": 222.15,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 489.79,
"y": 262.2,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 482.34,
"y": 264.95,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 447.79,
"y": 277.93,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 447.86,
"y": 277.92,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 6,
"x": 390.11,
"y": 298.33,
"type": "path",
"move_mode": "dash",
"action": "combat_script",
"action_params": "wait(2.5)",
"locked": false
},
{
"id": 7,
"x": 390.11,
"y": 298.33,
"type": "path",
"move_mode": "dash",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 8,
"x": 390.11,
"y": 298.33,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
},
{
"id": 9,
"x": 373.3,
"y": 301.29,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 10,
"x": 344.86,
"y": 293.2,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 11,
"x": 301.45,
"y": 309.74,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 12,
"x": 265.18,
"y": 227.45,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 13,
"x": 258.55,
"y": 239.19,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": ""
},
{
"id": 14,
"x": 258.55,
"y": 239.24,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,58 @@
{
"info": {
"name": "B08-璃月-碧水原-荻花洲-2只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时43.96秒包含以下怪物2只雷萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751642257751,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": 253.14,
"y": 1285.17,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 202.16,
"y": 1278.65,
"type": "target",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 202.17,
"y": 1278.69,
"type": "path",
"move_mode": "walk",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 4,
"x": 202.17,
"y": 1278.69,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -0,0 +1,76 @@
{
"info": {
"name": "B10-璃月-碧水原-华池岩岫-东北-3只",
"type": "collect",
"author": "蜜柑魚",
"version": "1.0",
"description": " 路线信息该路线预计用时66.73秒包含以下怪物3只水萤。",
"map_name": "Teyvat",
"bgi_version": "0.45.0",
"tags": [],
"last_modified_time": 1751644086957,
"authors": [
{
"name": "蜜柑魚",
"links": "https://github.com/this-Fish"
}
]
},
"positions": [
{
"id": 1,
"x": 1271.18,
"y": 1563.97,
"type": "teleport",
"move_mode": "walk",
"action": "",
"action_params": ""
},
{
"id": 2,
"x": 1239.12,
"y": 1520.45,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 3,
"x": 1254.65,
"y": 1476.31,
"type": "path",
"move_mode": "dash",
"action": "",
"action_params": ""
},
{
"id": 4,
"x": 1244.14,
"y": 1439.69,
"type": "path",
"move_mode": "fly",
"action": "",
"action_params": ""
},
{
"id": 5,
"x": 1245.01,
"y": 1393.01,
"type": "path",
"move_mode": "dash",
"action": "fight",
"action_params": "",
"locked": false
},
{
"id": 6,
"x": 1245.01,
"y": 1393.01,
"type": "path",
"move_mode": "walk",
"action": "combat_script",
"action_params": "wait(1)"
}
]
}

View File

@@ -28,9 +28,15 @@
"label": "本路径组使用配队名称"
},
{
"name": "onlyArtifacts",
"type": "checkbox",
"label": "是否禁用js拾取\n默认只拾取狗粮\n可以在assets/拾取名单.json自行调整黑白名单\n禁用后将使用bgi自带拾取"
"name": "pickupMode",
"type": "select",
"label": "拾取模式",
"options": [
"js拾取默认只拾取狗粮和晶蝶",
"bgi原版拾取",
"不拾取任何物品"
],
"default": "js拾取默认只拾取狗粮和晶蝶"
},
{
"name": "accountName",