diff --git a/repo/js/AutoHoeingOneDragon/main.js b/repo/js/AutoHoeingOneDragon/main.js index 2a8d58a8c..808c3d29f 100644 --- a/repo/js/AutoHoeingOneDragon/main.js +++ b/repo/js/AutoHoeingOneDragon/main.js @@ -1417,7 +1417,7 @@ async function processPathingsByGroup(pathings, accountName) { let skippedTime = 0; //移除不必要的属性 { - const keysToDelete = ['monsterInfo', 'm', 'e', 'mora_m', 'mora_e', 'available', 'prioritized', 'G1', 'G2', 'index', 'folderPathArray', 'tags', 'E1', 'E2']; // 删除的字段列表 + const keysToDelete = ['monsterInfo', 'mora_m', 'mora_e', 'available', 'prioritized', 'G1', 'G2', 'index', 'folderPathArray', 'tags', 'E1', 'E2']; // 删除的字段列表 pathings.forEach(p => { keysToDelete.forEach(k => delete p[k]); }); @@ -1515,20 +1515,26 @@ async function processPathingsByGroup(pathings, accountName) { } // 计算下一个 UTC 时间的晚上 8 点(即北京时间凌晨四点) - const nextEightClock = new Date(now); - nextEightClock.setUTCHours(20, 0, 0, 0); // 设置为 UTC 时间的 20:00 - if (nextEightClock <= now) { + let newCDTime = new Date(now); + newCDTime.setUTCHours(20, 0, 0, 0); // 设置为 UTC 时间的 20:00 + if (newCDTime <= now) { // 如果设置的时间小于等于当前时间,说明需要取下一个晚上 8 点 - nextEightClock.setUTCHours(20 + 24, 0, 0, 0); // 设置为下一个 UTC 时间的 20:00 + newCDTime.setUTCHours(20 + 24, 0, 0, 0); // 设置为下一个 UTC 时间的 20:00 } + if (pathing.m !== 0) { + const nowPlus12h = new Date(now.getTime() + 12 * 3600 * 1000); // now + 12h + if (newCDTime < nowPlus12h) { + newCDTime = nowPlus12h; + } + } + + // 更新路径的 cdTime + pathing.cdTime = newCDTime.toLocaleString(); + if (!localeWorks) pathing.cdTime = newCDTime.toISOString(); const pathTime = new Date() - now; pathing.records = [...pathing.records, pathTime / 1000].slice(-7); - // 更新路径的 cdTime - pathing.cdTime = nextEightClock.toLocaleString(); - if (!localeWorks) pathing.cdTime = nextEightClock.toISOString(); - remainingEstimatedTime -= pathing.t; const actualUsedTime = (new Date() - groupStartTime) / 1000; const predictRemainingTime = remainingEstimatedTime * actualUsedTime / (totalEstimatedTime - remainingEstimatedTime - skippedTime); diff --git a/repo/js/AutoHoeingOneDragon/manifest.json b/repo/js/AutoHoeingOneDragon/manifest.json index dca186a27..f3cdf4689 100644 --- a/repo/js/AutoHoeingOneDragon/manifest.json +++ b/repo/js/AutoHoeingOneDragon/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "锄地一条龙", - "version": "1.15.2", + "version": "1.16.0", "description": "一站式解决自动化锄地,支持只拾取狗粮,请仔细阅读README.md后使用", "authors": [ { diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7201挪德卡莱蛋卷工坊西.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7201挪德卡莱蛋卷工坊西.json new file mode 100644 index 000000000..a4c7e8580 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7201挪德卡莱蛋卷工坊西.json @@ -0,0 +1,69 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时60.12秒,包含以下怪物:2只雷史莱姆、1只辉电·霜夜灵嗣。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767364247790, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7201挪德卡莱蛋卷工坊西", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 10018.3388671875, + "y": 1539.26123046875 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "jump", + "type": "path", + "x": 10037.18359375, + "y": 1554.2490234375 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "walk", + "type": "path", + "x": 10072.8896484375, + "y": 1554.03125 + }, + { + "action": "fight", + "action_params": "", + "id": 4, + "locked": false, + "move_mode": "walk", + "type": "path", + "x": 10103.8798828125, + "y": 1570.22705078125 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 5, + "move_mode": "walk", + "type": "orientation", + "x": 10103.8798828125, + "y": 1570.22705078125 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7202挪德卡莱蛋卷工坊西.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7202挪德卡莱蛋卷工坊西.json new file mode 100644 index 000000000..119e0403a --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7202挪德卡莱蛋卷工坊西.json @@ -0,0 +1,161 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时127.31秒,包含以下怪物:2只草史莱姆、2只冰史莱姆、1只灼烜·霜夜灵嗣、1只蔓结·霜夜灵嗣、1只凌晶·霜夜灵嗣。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767364585532, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7202挪德卡莱蛋卷工坊西", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9967.056640625, + "y": 1832.2001953125 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9984.7646484375, + "y": 1839.8076171875 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9987.0595703125, + "y": 1815.67529296875 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9994.765625, + "y": 1806.19580078125 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9994.8486328125, + "y": 1790.9140625 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "dash", + "type": "path", + "x": 10009.353515625, + "y": 1782.6689453125 + }, + { + "action": "fight", + "action_params": "", + "id": 7, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 10009.6611328125, + "y": 1749.1298828125 + }, + { + "action": "", + "action_params": "", + "id": 8, + "move_mode": "dash", + "type": "path", + "x": 10009.6611328125, + "y": 1749.1298828125 + }, + { + "action": "", + "action_params": "", + "id": 9, + "move_mode": "dash", + "type": "path", + "x": 10039.533203125, + "y": 1721.884765625 + }, + { + "action": "fight", + "action_params": "", + "id": 10, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 10051.8583984375, + "y": 1692.1943359375 + }, + { + "action": "", + "action_params": "", + "id": 11, + "move_mode": "dash", + "type": "path", + "x": 10051.8583984375, + "y": 1692.1943359375 + }, + { + "action": "", + "action_params": "", + "id": 12, + "move_mode": "dash", + "type": "path", + "x": 10077.4794921875, + "y": 1699.4287109375 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 13, + "move_mode": "fly", + "type": "path", + "x": 10107.1611328125, + "y": 1715.08740234375 + }, + { + "action": "fight", + "action_params": "", + "id": 14, + "locked": false, + "move_mode": "run", + "type": "path", + "x": 10115.80078125, + "y": 1719.69140625 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 15, + "move_mode": "run", + "type": "orientation", + "x": 10115.80078125, + "y": 1719.69140625 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7203挪德卡莱星砂滩.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7203挪德卡莱星砂滩.json new file mode 100644 index 000000000..876b93674 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7203挪德卡莱星砂滩.json @@ -0,0 +1,88 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时89.26秒,包含以下怪物:3只愚人众特辖队·线列军、2只愚人众特辖队·支援兵、1只愚人众特辖队·雷霰近卫军。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767365219188, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7203挪德卡莱星砂滩", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9563.09765625, + "y": 2135.26513671875 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 2, + "move_mode": "fly", + "type": "path", + "x": 9518.5048828125, + "y": 2198.207275390625 + }, + { + "action": "fight", + "action_params": "", + "id": 3, + "locked": false, + "move_mode": "run", + "type": "path", + "x": 9514.935546875, + "y": 2203.751220703125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9514.935546875, + "y": 2203.751220703125 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9492.4365234375, + "y": 2219.661376953125 + }, + { + "action": "fight", + "action_params": "", + "id": 6, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9470.5078125, + "y": 2251.654541015625 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 7, + "move_mode": "dash", + "type": "orientation", + "x": 9470.5078125, + "y": 2251.654541015625 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7204挪德卡莱空寂走廊.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7204挪德卡莱空寂走廊.json new file mode 100644 index 000000000..ecb85937f --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7204挪德卡莱空寂走廊.json @@ -0,0 +1,80 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时73.48秒,包含以下怪物:2只雷史莱姆、1只大型雷史莱姆、1只辉电·霜夜灵嗣。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767365675545, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7204挪德卡莱空寂走廊", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9208.2412109375, + "y": 2526.28515625 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9254.9892578125, + "y": 2546.634033203125 + }, + { + "action": "fight", + "action_params": "", + "id": 3, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9282.408203125, + "y": 2611.412841796875 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9282.408203125, + "y": 2611.412841796875 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9286.2626953125, + "y": 2697.212646484375 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 6, + "locked": false, + "move_mode": "dash", + "type": "orientation", + "x": 9286.2626953125, + "y": 2697.212646484375 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7205挪德卡莱空寂走廊北.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7205挪德卡莱空寂走廊北.json new file mode 100644 index 000000000..3953d8fc0 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7205挪德卡莱空寂走廊北.json @@ -0,0 +1,142 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时83.41秒,包含以下怪物:2只愚人众特辖队·线列军、2只愚人众特辖队·先锋士、2只巡陆艇·强侦斥候型、1只巡陆艇·尖端火力地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767366916222, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7205挪德卡莱空寂走廊北", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9191.6689453125, + "y": 2852.09912109375 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "run", + "type": "path", + "x": 9193.5908203125, + "y": 2864.62646484375 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9194.0546875, + "y": 2866.64501953125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "run", + "type": "path", + "x": 9200.73828125, + "y": 2881.1435546875 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "locked": false, + "move_mode": "run", + "type": "path", + "x": 9200.1826171875, + "y": 2875.6728515625 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "dash", + "type": "path", + "x": 9200.1826171875, + "y": 2875.6728515625 + }, + { + "action": "", + "action_params": "", + "id": 7, + "move_mode": "dash", + "type": "path", + "x": 9206.515625, + "y": 2912.45166015625 + }, + { + "action": "", + "action_params": "", + "id": 8, + "move_mode": "dash", + "type": "path", + "x": 9205.919921875, + "y": 2938.598388671875 + }, + { + "action": "", + "action_params": "", + "id": 9, + "move_mode": "fly", + "type": "path", + "x": 9213.5625, + "y": 2938.315673828125 + }, + { + "action": "", + "action_params": "", + "id": 10, + "move_mode": "run", + "type": "path", + "x": 9219.005859375, + "y": 2933.787109375 + }, + { + "action": "", + "action_params": "", + "id": 11, + "move_mode": "jump", + "type": "path", + "x": 9226.9501953125, + "y": 2932.26318359375 + }, + { + "action": "fight", + "action_params": "", + "id": 12, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9254.935546875, + "y": 2930.1591796875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 13, + "move_mode": "dash", + "type": "orientation", + "x": 9254.935546875, + "y": 2930.1591796875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7301挪德卡莱月矩力设计局东南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7301挪德卡莱月矩力设计局东南.json new file mode 100644 index 000000000..0f462c16e --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7301挪德卡莱月矩力设计局东南.json @@ -0,0 +1,78 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时73.06秒,包含以下怪物:1只愚人众特辖队·线列军、1只愚人众特辖队·支援兵、1只愚人众特辖队·榴铳手、1只愚人众特辖队·雷霰近卫军、1只巡陆艇·近战斥候型、1只巡陆艇·强侦斥候型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767367290083, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7301挪德卡莱月矩力设计局东南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9426.4970703125, + "y": 3051.53125 + }, + { + "action": "fight", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9386.4228515625, + "y": 3059.638671875 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "target", + "x": 9382.87109375, + "y": 3052.684814453125 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 4, + "move_mode": "fly", + "type": "path", + "x": 9363.662109375, + "y": 3038.764404296875 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9365.015625, + "y": 3030.185546875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 6, + "move_mode": "dash", + "type": "orientation", + "x": 9365.015625, + "y": 3030.185546875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7302挪德卡莱月矩力设计局东南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7302挪德卡莱月矩力设计局东南.json new file mode 100644 index 000000000..6b6c85ed1 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7302挪德卡莱月矩力设计局东南.json @@ -0,0 +1,78 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时87.69秒,包含以下怪物:3只愚人众特辖队·线列军、1只巡陆艇·近战攻坚型、1只巡陆艇·强侦攻坚型、1只巡陆艇·尖端火力地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767367625032, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7302挪德卡莱月矩力设计局东南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9375.390625, + "y": 3150.53076171875 + }, + { + "action": "fight", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9301.814453125, + "y": 3135.11376953125 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "walk", + "type": "path", + "x": 9287.44140625, + "y": 3114.7783203125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9253.5537109375, + "y": 3082.5458984375 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "locked": false, + "move_mode": "walk", + "type": "path", + "x": 9251.806640625, + "y": 3078.529541015625 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 6, + "move_mode": "walk", + "type": "orientation", + "x": 9251.806640625, + "y": 3078.529541015625 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7303挪德卡莱月矩力设计局东南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7303挪德卡莱月矩力设计局东南.json new file mode 100644 index 000000000..c80dd0c80 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7303挪德卡莱月矩力设计局东南.json @@ -0,0 +1,60 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时65.85秒,包含以下怪物:1只愚人众特辖队·支援兵、1只愚人众特辖队·先锋士、1只愚人众特辖队·火刃突击队、2只巡陆艇·尖端全能攻坚型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767367971274, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7303挪德卡莱月矩力设计局东南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9426.494140625, + "y": 3051.5234375 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9488.57421875, + "y": 3078.37353515625 + }, + { + "action": "fight", + "action_params": "", + "id": 3, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9501.1982421875, + "y": 3091.154296875 + }, + { + "action": "fight", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9501.1982421875, + "y": 3091.154296875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7304挪德卡莱月矩力设计局东南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7304挪德卡莱月矩力设计局东南.json new file mode 100644 index 000000000..79c541e1e --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7304挪德卡莱月矩力设计局东南.json @@ -0,0 +1,86 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时131.04秒,包含以下怪物:2只巡陆艇·尖端全能斥候型、2只巡陆艇·尖端火力地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767444400744, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7304挪德卡莱月矩力设计局东南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9551.0087890625, + "y": 3104.666015625 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "target", + "x": 9570.078125, + "y": 3105.393798828125 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "jump", + "type": "path", + "x": 9579.7705078125, + "y": 3116.25439453125 + }, + { + "action": "combat_script", + "action_params": "keypress(f),wait(0.2),keypress(f),wait(3)", + "id": 4, + "move_mode": "dash", + "type": "target", + "x": 9577.814453125, + "y": 3148.953125 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9577.9033203125, + "y": 3138.46728515625 + }, + { + "action": "fight", + "action_params": "", + "id": 6, + "move_mode": "walk", + "type": "path", + "x": 9593.1025390625, + "y": 3154.80029296875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 7, + "move_mode": "walk", + "type": "orientation", + "x": 9593.1025390625, + "y": 3154.80029296875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7305挪德卡莱月矩力设计局东南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7305挪德卡莱月矩力设计局东南.json new file mode 100644 index 000000000..8b8899ab0 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7305挪德卡莱月矩力设计局东南.json @@ -0,0 +1,105 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时87.82秒,包含以下怪物:1只愚人众特辖队·先锋士、1只愚人众特辖队·疗愈师、1只愚人众特辖队·掷弹兵、1只巡陆艇·近战攻坚型、1只巡陆艇·尖端全能攻坚型、1只巡陆艇·尖端全能斥候型、1只巡陆艇·尖端火力地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767368709631, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7305挪德卡莱月矩力设计局东南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9701.7763671875, + "y": 3144.46240234375 + }, + { + "action": "combat_script", + "action_params": "芙宁娜 e", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9715.828125, + "y": 3116.19140625 + }, + { + "action": "combat_script", + "action_params": "attack", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9729.6572265625, + "y": 3130.7548828125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9735.580078125, + "y": 3106.866943359375 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9732.6123046875, + "y": 3119.919921875 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "dash", + "type": "path", + "x": 9737.82421875, + "y": 3116.259765625 + }, + { + "action": "", + "action_params": "", + "id": 7, + "move_mode": "dash", + "type": "path", + "x": 9745.1064453125, + "y": 3108.36669921875 + }, + { + "action": "fight", + "action_params": "", + "id": 8, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9751.5458984375, + "y": 3103.028076171875 + }, + { + "action": "fight", + "action_params": "", + "id": 9, + "move_mode": "dash", + "type": "orientation", + "x": 9751.5458984375, + "y": 3103.028076171875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7306挪德卡莱月矩力设计局南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7306挪德卡莱月矩力设计局南.json new file mode 100644 index 000000000..ede44948c --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7306挪德卡莱月矩力设计局南.json @@ -0,0 +1,107 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时69.5秒,包含以下怪物:1只愚人众特辖队·支援兵、1只愚人众特辖队·榴铳手、2只愚人众特辖队·先锋士、1只愚人众特辖队·疗愈师、1只愚人众特辖队·掷弹兵、1只巡陆艇·尖端全能斥候型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767368998227, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7306挪德卡莱月矩力设计局南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9825.5869140625, + "y": 3032.5341796875 + }, + { + "action": "fight", + "action_params": "", + "id": 2, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9845.734375, + "y": 3002.70947265625 + }, + { + "action": "log_output", + "action_params": "如果此处无怪需要先对话开怪,后续来会自动出怪", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9845.734375, + "y": 3002.70947265625 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9837.58203125, + "y": 3003.9765625 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9839.8251953125, + "y": 2952.51025390625 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "dash", + "type": "path", + "x": 9849.185546875, + "y": 2944.66015625 + }, + { + "action": "fight", + "action_params": "", + "id": 7, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9845.8701171875, + "y": 2907.82373046875 + }, + { + "action": "log_output", + "action_params": "如果此处无怪需要先对话开怪,后续来会自动出怪", + "id": 8, + "locked": false, + "move_mode": "dash", + "type": "orientation", + "x": 9845.8701171875, + "y": 2907.82373046875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 9, + "move_mode": "dash", + "type": "orientation", + "x": 9845.8701171875, + "y": 2907.82373046875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7307挪德卡莱月矩力设计局南.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7307挪德卡莱月矩力设计局南.json new file mode 100644 index 000000000..460042b51 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7307挪德卡莱月矩力设计局南.json @@ -0,0 +1,78 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时57.74秒,包含以下怪物:1只愚人众特辖队·支援兵、2只愚人众特辖队·先锋士、1只愚人众特辖队·冰雹重炮手。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767369411577, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7307挪德卡莱月矩力设计局南", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9900.01953125, + "y": 2832.7138671875 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9903.97265625, + "y": 2886.14794921875 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9939.2587890625, + "y": 2886.4580078125 + }, + { + "action": "combat_script", + "action_params": "芙宁娜 e,keydown(w),dash(3.5),keyup(w)", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9950.234375, + "y": 2873.972412109375 + }, + { + "action": "fight", + "action_params": "", + "id": 5, + "locked": false, + "move_mode": "jump", + "type": "path", + "x": 9969.490234375, + "y": 2847.7587890625 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 6, + "move_mode": "jump", + "type": "orientation", + "x": 9969.490234375, + "y": 2847.7587890625 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7308挪德卡莱月矩力设计局西.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7308挪德卡莱月矩力设计局西.json new file mode 100644 index 000000000..a770bbecc --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7308挪德卡莱月矩力设计局西.json @@ -0,0 +1,87 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时83.24秒,包含以下怪物:1只愚人众特辖队·疗愈师、1只愚人众特辖队·火刃突击队、1只巡陆艇·强侦攻坚型、1只巡陆艇·尖端全能攻坚型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767369555593, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7308挪德卡莱月矩力设计局西", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 10103.197265625, + "y": 3142.159423828125 + }, + { + "action": "fight", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 10119, + "y": 3172.24755859375 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "walk", + "type": "teleport", + "x": 10103.197265625, + "y": 3142.159423828125 + }, + { + "action": "combat_script", + "action_params": "芙宁娜 e", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 10080.9228515625, + "y": 3122.03564453125 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 10101.1904296875, + "y": 3104.951416015625 + }, + { + "action": "fight", + "action_params": "", + "id": 6, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 10088.96875, + "y": 3097.80810546875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 7, + "move_mode": "dash", + "type": "orientation", + "x": 10088.96875, + "y": 3097.80810546875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7309挪德卡莱月矩力设计局北.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7309挪德卡莱月矩力设计局北.json new file mode 100644 index 000000000..07a0692fb --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7309挪德卡莱月矩力设计局北.json @@ -0,0 +1,69 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时52.67秒,包含以下怪物:1只愚人众特辖队·线列军、1只愚人众特辖队·榴铳手、1只愚人众特辖队·疗愈师。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767369835272, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7309挪德卡莱月矩力设计局北", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9874.779296875, + "y": 3589.151611328125 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "jump", + "type": "path", + "x": 9869.9794921875, + "y": 3567.856201171875 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": 9880.6640625, + "y": 3565.200439453125 + }, + { + "action": "fight", + "action_params": "", + "id": 4, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9881.3603515625, + "y": 3552.405517578125 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 5, + "move_mode": "dash", + "type": "orientation", + "x": 9881.3603515625, + "y": 3552.405517578125 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7310挪德卡莱月矩力设计局北.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7310挪德卡莱月矩力设计局北.json new file mode 100644 index 000000000..b01b9d6f1 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7310挪德卡莱月矩力设计局北.json @@ -0,0 +1,69 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时77.84秒,包含以下怪物:2只愚人众特辖队·先锋士、1只愚人众特辖队·火刃突击队、1只愚人众特辖队·雷霰近卫军。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767369995646, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7310挪德卡莱月矩力设计局北", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9874.77734375, + "y": 3589.15283203125 + }, + { + "action": "fight", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9925.9716796875, + "y": 3592.256591796875 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 3, + "move_mode": "fly", + "type": "path", + "x": 9952.859375, + "y": 3586.307373046875 + }, + { + "action": "fight", + "action_params": "", + "id": 4, + "locked": false, + "move_mode": "jump", + "type": "path", + "x": 9957.375, + "y": 3585.138427734375 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 5, + "move_mode": "dash", + "type": "orientation", + "x": 9957.375, + "y": 3585.138427734375 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7311挪德卡莱月矩力设计局北.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7311挪德卡莱月矩力设计局北.json new file mode 100644 index 000000000..0d429acd5 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7311挪德卡莱月矩力设计局北.json @@ -0,0 +1,97 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时61.31秒,包含以下怪物:2只愚人众特辖队·掷弹兵、1只愚人众特辖队·冰雹重炮手、2只巡陆艇·强侦攻坚型、1只巡陆艇·强侦地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767370181602, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7311挪德卡莱月矩力设计局北", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9874.775390625, + "y": 3589.146484375 + }, + { + "action": "stop_flying", + "action_params": "", + "id": 2, + "move_mode": "fly", + "type": "path", + "x": 9862.07421875, + "y": 3607.859130859375 + }, + { + "action": "fight", + "action_params": "", + "id": 3, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9860.0478515625, + "y": 3619.155029296875 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": 9860.0478515625, + "y": 3619.155029296875 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "dash", + "type": "path", + "x": 9869.197265625, + "y": 3629.58251953125 + }, + { + "action": "", + "action_params": "", + "id": 6, + "move_mode": "dash", + "type": "path", + "x": 9900.91015625, + "y": 3627.00537109375 + }, + { + "action": "fight", + "action_params": "", + "id": 7, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9904.6435546875, + "y": 3608.608154296875 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 8, + "move_mode": "dash", + "type": "orientation", + "x": 9904.6435546875, + "y": 3608.608154296875 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7312挪德卡莱月矩力设计局东.json b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7312挪德卡莱月矩力设计局东.json new file mode 100644 index 000000000..ec48e38e3 --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/pathing/1-莫酱/1-其他/7312挪德卡莱月矩力设计局东.json @@ -0,0 +1,60 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": " 路线信息:该路线预计用时49.1秒,包含以下怪物:1只愚人众特辖队·冰雹重炮手、1只巡陆艇·近战攻坚型、2只巡陆艇·强侦地效型。", + "enable_monster_loot_split": false, + "hash_res": "75306089", + "last_modified_time": 1767370355535, + "map_match_method": "", + "map_name": "Teyvat", + "name": "7312挪德卡莱月矩力设计局东", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": 9590.744140625, + "y": 3399.408935546875 + }, + { + "action": "combat_script", + "action_params": "芙宁娜 e", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": 9581.0986328125, + "y": 3356.0869140625 + }, + { + "action": "fight", + "action_params": "", + "id": 3, + "locked": false, + "move_mode": "dash", + "type": "path", + "x": 9605.796875, + "y": 3378.40478515625 + }, + { + "action": "combat_script", + "action_params": "wait(1)", + "id": 4, + "move_mode": "dash", + "type": "orientation", + "x": 9605.796875, + "y": 3378.40478515625 + } + ] +} \ No newline at end of file diff --git a/repo/js/AutoHoeingOneDragon/settings/默认账户1.json b/repo/js/AutoHoeingOneDragon/settings/默认账户1.json new file mode 100644 index 000000000..7ab3a6b1b --- /dev/null +++ b/repo/js/AutoHoeingOneDragon/settings/默认账户1.json @@ -0,0 +1,20 @@ +{ + "tagsForGroup1": "蕈兽", + "tagsForGroup2": "小怪", + "tagsForGroup3": "", + "tagsForGroup4": "", + "tagsForGroup5": "", + "tagsForGroup6": "", + "tagsForGroup7": "", + "tagsForGroup8": "", + "tagsForGroup9": "", + "tagsForGroup10": "", + "disableSelfOptimization": false, + "eEfficiencyIndex": "2.5", + "mEfficiencyIndex": "0.5", + "splitFactor": "0", + "targetEliteNum": "400", + "targetMonsterNum": "1675", + "priorityTags": "", + "excludeTags": "" +} \ No newline at end of file diff --git a/repo/js/义父立本/README.md b/repo/js/义父立本/README.md new file mode 100644 index 000000000..4f6cdfb64 --- /dev/null +++ b/repo/js/义父立本/README.md @@ -0,0 +1 @@ +原则上仅用于1080p分辨率,其他分辨率能够使用纯属巧合,出现问题后果自负 \ No newline at end of file diff --git a/repo/js/义父立本/assets/RecognitionObject/F图标.png b/repo/js/义父立本/assets/RecognitionObject/F图标.png new file mode 100644 index 000000000..ab9a13e85 Binary files /dev/null and b/repo/js/义父立本/assets/RecognitionObject/F图标.png differ diff --git a/repo/js/义父立本/assets/RecognitionObject/剧情图标.png b/repo/js/义父立本/assets/RecognitionObject/剧情图标.png new file mode 100644 index 000000000..886f62789 Binary files /dev/null and b/repo/js/义父立本/assets/RecognitionObject/剧情图标.png differ diff --git a/repo/js/义父立本/assets/RecognitionObject/确认兑换.png b/repo/js/义父立本/assets/RecognitionObject/确认兑换.png new file mode 100644 index 000000000..889fb03c1 Binary files /dev/null and b/repo/js/义父立本/assets/RecognitionObject/确认兑换.png differ diff --git a/repo/js/义父立本/assets/前往立本.json b/repo/js/义父立本/assets/前往立本.json new file mode 100644 index 000000000..cb1fd1f2b --- /dev/null +++ b/repo/js/义父立本/assets/前往立本.json @@ -0,0 +1,67 @@ +{ + "info": { + "authors": [ + { + "links": "", + "name": "mno" + } + ], + "bgi_version": "0.45.0", + "description": "", + "enable_monster_loot_split": false, + "last_modified_time": 1767589093917, + "map_match_method": "", + "map_name": "Teyvat", + "name": "前往立本", + "tags": [], + "type": "collect", + "version": "1.0" + }, + "positions": [ + { + "action": "", + "action_params": "", + "id": 1, + "move_mode": "walk", + "type": "teleport", + "x": -867.68359375, + "y": 2281.378173828125 + }, + { + "action": "", + "action_params": "", + "id": 2, + "move_mode": "dash", + "type": "path", + "x": -895.017578125, + "y": 2257.43359375 + }, + { + "action": "", + "action_params": "", + "id": 3, + "move_mode": "dash", + "type": "path", + "x": -916.962890625, + "y": 2263.5703125 + }, + { + "action": "", + "action_params": "", + "id": 4, + "move_mode": "dash", + "type": "path", + "x": -934.943359375, + "y": 2253.947509765625 + }, + { + "action": "", + "action_params": "", + "id": 5, + "move_mode": "walk", + "type": "target", + "x": -936.40234375, + "y": 2254.87841796875 + } + ] +} \ No newline at end of file diff --git a/repo/js/义父立本/main.js b/repo/js/义父立本/main.js new file mode 100644 index 000000000..7b6059e58 --- /dev/null +++ b/repo/js/义父立本/main.js @@ -0,0 +1,70 @@ +let checkInterval = +settings.checkInterval || 50; +let waitTime = 40; +(async function () { + //启用自动剧情 + //dispatcher.addTimer(new RealtimeTimer("AutoSkip")); + let attempts = 0; + let success = false; + if (genshin.width !== 1920 || genshin.height !== 1080) { + log.warn("游戏窗口非 1920×1080,可能导致图像识别失败,如果执意使用可能造成异常,后果自负"); + await sleep(5000); + } + while (attempts < 3) { + attempts++; + await pathingScript.runFile(`assets/前往立本.json`); + keyPress("F"); + await sleep(2000); + while (true) { + let res1 = await findPNG("剧情图标", 1); + if (!res1) { + break; + } + keyPress("VK_SPACE"); + let res2 = await findPNG("F图标", 1); + if (res2) { + keyPress("F"); + } + await sleep(100); + } + await sleep(2000); + if (await clickPNG("确认兑换", waitTime)) { + log.info("成功进入立本"); + await sleep(1000); + click(960, 840); + success = true; + break; + } + } + + if (!success) { + log.error("3次重试均失败"); + } +})(); + +async function clickPNG(png, maxAttempts = 20) { + //log.info(`调试-点击目标${png},重试次数${maxAttempts}`); + const pngRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync(`assets/RecognitionObject/${png}.png`)); + pngRo.Threshold = 0.9; + pngRo.InitTemplate(); + return await findAndClick(pngRo, true, maxAttempts); +} + +async function findPNG(png, maxAttempts = 20) { + //log.info(`调试-识别目标${png},重试次数${maxAttempts}`); + const pngRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync(`assets/RecognitionObject/${png}.png`)); + pngRo.Threshold = 0.9; + pngRo.InitTemplate(); + return await findAndClick(pngRo, false, maxAttempts); +} + +async function findAndClick(target, doClick = true, maxAttempts = 60) { + for (let i = 0; i < maxAttempts; i++) { + const rg = captureGameRegion(); + try { + const res = rg.find(target); + if (res.isExist()) { await sleep(checkInterval * 2 + 50); if (doClick) { res.click(); } return true; } + } finally { rg.dispose(); } + if (i < maxAttempts - 1) await sleep(checkInterval); + } + return false; +} \ No newline at end of file diff --git a/repo/js/义父立本/manifest.json b/repo/js/义父立本/manifest.json new file mode 100644 index 000000000..b3a09b730 --- /dev/null +++ b/repo/js/义父立本/manifest.json @@ -0,0 +1,16 @@ +{ + "manifest_version": 1, + "name": "义父立本", + "version": "1.0", + "bgi_version": "0.44.8", + "description": "谢谢老板", + "saved_files": [], + "authors": [ + { + "name": "mno", + "links": "https://github.com/Bedrockx" + } + ], + "settings_ui": "settings.json", + "main": "main.js" +} \ No newline at end of file diff --git a/repo/js/义父立本/settings.json b/repo/js/义父立本/settings.json new file mode 100644 index 000000000..ced00eca2 --- /dev/null +++ b/repo/js/义父立本/settings.json @@ -0,0 +1,8 @@ +[ + { + "name": "checkInterval", + "type": "input-text", + "label": "识别间隔(毫秒),仅建议在设备反应较慢出现识别错误时适当调大", + "default": "50" + } +] \ No newline at end of file