From c061ba548b1bbaf2c08b9e127b7b43eef3ef54bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E4=BA=91?= Date: Mon, 31 Mar 2025 03:32:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=E5=92=8C=E4=BD=9C=E8=80=85=EF=BC=8C=E7=A7=BB=E9=99=A4=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=AC=A1=E8=BF=94=E5=9B=9E=E7=94=9C=E7=94=9C?= =?UTF-8?q?=E8=8A=B1=E9=87=8D=E7=99=BB=20(#498)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/鸡腿好感/assets/AutoPath/从狗盆到甜甜花.json | 4 ++-- repo/js/鸡腿好感/assets/AutoPath/导航至甜甜花位置.json | 4 ++-- repo/js/鸡腿好感/main.js | 6 ++++-- repo/js/鸡腿好感/manifest.json | 7 ++++--- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/repo/js/鸡腿好感/assets/AutoPath/从狗盆到甜甜花.json b/repo/js/鸡腿好感/assets/AutoPath/从狗盆到甜甜花.json index 6ac81770..3eb3cd1a 100644 --- a/repo/js/鸡腿好感/assets/AutoPath/从狗盆到甜甜花.json +++ b/repo/js/鸡腿好感/assets/AutoPath/从狗盆到甜甜花.json @@ -3,9 +3,9 @@ "name": "从狗盆到甜甜花", "type": "collect", "author": "花火", - "version": "1.0", + "version": "1.1", "description": "", - "bgiVersion": "0.35.1" + "bgiVersion": "0.43.5" }, "positions": [ { diff --git a/repo/js/鸡腿好感/assets/AutoPath/导航至甜甜花位置.json b/repo/js/鸡腿好感/assets/AutoPath/导航至甜甜花位置.json index 137d6f10..7fa3cf5c 100644 --- a/repo/js/鸡腿好感/assets/AutoPath/导航至甜甜花位置.json +++ b/repo/js/鸡腿好感/assets/AutoPath/导航至甜甜花位置.json @@ -3,9 +3,9 @@ "name": "到达甜甜花位置", "type": "collect", "author": "花火", - "version": "1.0", + "version": "1.1", "description": "", - "bgiVersion": "0.35.1" + "bgiVersion": "0.43.5" }, "positions": [ { diff --git a/repo/js/鸡腿好感/main.js b/repo/js/鸡腿好感/main.js index 632d7af2..dceb5c24 100644 --- a/repo/js/鸡腿好感/main.js +++ b/repo/js/鸡腿好感/main.js @@ -25,7 +25,7 @@ await sleep(1000); click(1010, 760); await sleep(1000); - } + } // todo:考虑添加ocr参数确保一定点击到 F async function AutoPath(locationName) { try { @@ -48,7 +48,9 @@ log.info(`自动好感当前次数:${i + 1}/${times}`); await AutoPath('从甜甜花到狗盆'); await Feed(); - await AutoPath('从狗盆到甜甜花'); + if( i == times - 1) { + await AutoPath('从狗盆到甜甜花'); + } //最后一次不需要返回到甜甜花 const estimatedCompletion = CalculateEstimatedCompletion(startFirstTime, i + 1, times); const currentTime = LogTimeTaken(startFirstTime); log.info(`当前进度:${i + 1}/${times} (${((i + 1) / times * 100).toFixed(1)}%)`); diff --git a/repo/js/鸡腿好感/manifest.json b/repo/js/鸡腿好感/manifest.json index 02396092..ca434fdd 100644 --- a/repo/js/鸡腿好感/manifest.json +++ b/repo/js/鸡腿好感/manifest.json @@ -1,11 +1,12 @@ { "manifest_version": 1, "name": "鸡腿好感", - "version": "1.0", - "description": "通过喂狗突发事件刷好感度,使用满员好感度队伍", + "version": "1.1", + "bgiVersion": "0.43.5", + "description": "通过喂狗突发事件刷好感度,使用满员好感度队伍,每天上限10次,有概率失败可以适当增加次数", "authors": [ { - "name": "花火" + "name": "花火 & 秋云" } ], "settings_ui": "settings.json",