From 66bfb3ad75e1977da076ddc2353d6463e6d52fe8 Mon Sep 17 00:00:00 2001 From: kaedelcb <57870068+kaedelcb@users.noreply.github.com> Date: Wed, 22 Oct 2025 22:51:16 +0800 Subject: [PATCH] =?UTF-8?q?v.4.2=E7=89=88=20=E5=85=A8=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9E=AB=E4=B8=B9=E5=9C=B0=E8=84=89=E8=8A=B1=2020251021=20(#22?= =?UTF-8?q?12)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复地区选择BUG。 - 删除游泳检测判断识别,本体已经支持游泳检测返回战斗节点。 --- repo/js/AutoFontaineLeyLine/README.md | 7 ++++++- repo/js/AutoFontaineLeyLine/main.js | 11 +++++++---- repo/js/AutoFontaineLeyLine/manifest.json | 2 +- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/repo/js/AutoFontaineLeyLine/README.md b/repo/js/AutoFontaineLeyLine/README.md index 0e0f3453f..bb39d72fb 100644 --- a/repo/js/AutoFontaineLeyLine/README.md +++ b/repo/js/AutoFontaineLeyLine/README.md @@ -28,7 +28,12 @@ ## 三、更新说明 -### v.4.1版 全自动枫丹地脉花 0250926 +### v.4.2版 全自动枫丹地脉花 20251021 + +- 修复地区选择BUG。 +- 删除游泳检测判断识别,本体已经支持游泳检测返回战斗节点。 + +### v.4.1版 全自动枫丹地脉花 20250926 - **优化**: 1. 删除拖动模式寻找地脉花,全部使用冒险之证的方式。 diff --git a/repo/js/AutoFontaineLeyLine/main.js b/repo/js/AutoFontaineLeyLine/main.js index d7d6e19a3..8a9d5c5cf 100644 --- a/repo/js/AutoFontaineLeyLine/main.js +++ b/repo/js/AutoFontaineLeyLine/main.js @@ -198,7 +198,7 @@ : genshin.width > 1920 ? 0.8 : 0.9; - log.warn(`全自动枫丹地脉花: v4.1 - ${SHUV}.${color}.${rawTimes}`);//调试LOG + log.warn(`全自动枫丹地脉花: v4.2 - ${SHUV}.${color}.${rawTimes}`);//调试LOG log.warn(`使用树脂类型数量:${rewards.length}`); log.warn(`使用树脂顺序:${golbalRewardText.join(" ->")}`); @@ -456,8 +456,11 @@ await sleep(1000); await click(1562,787); await sleep(1000); - let fontaine1 = await Textocr("枫丹",1,1,0,1031,641,250,240); - if(!fontaine1.found){await click(1524,670);} + let fontaine1 = await Textocr("枫丹",2,1,0,1031,611,250,270); + if(!fontaine1.found){ + log.info("强制选枫丹..."); + await click(1524,625); + } await sleep(1000); let fontaine2 = await Textocr("枫丹",1,0,0,1031,641,250,240); if (!fontaine2.found){continue} @@ -1047,7 +1050,7 @@ let startTime = Date.now(); let noTextCount = 0; const successKeywords = ["挑战达成", "战斗胜利", "挑战成功"]; - const failureKeywords = ["挑战失败","游泳"]; + const failureKeywords = ["挑战失败"]; const recovery = ["复苏"]; // 循环检测直到超时 diff --git a/repo/js/AutoFontaineLeyLine/manifest.json b/repo/js/AutoFontaineLeyLine/manifest.json index 19157eef3..2f2188257 100644 --- a/repo/js/AutoFontaineLeyLine/manifest.json +++ b/repo/js/AutoFontaineLeyLine/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 1, "name": "全自动枫丹地脉花", - "version": "4.1", + "version": "4.2", "bgi_version": "0.47.1", "description": "枫丹地脉花,蓝花金花通用。生存压力大,请带盾奶;避免纯水输出,请注意说明文件。如有BUG请联系作者QQ:119996800", "tags": [