From 21c2add36618dfcfb24a9efc9f9ba78a3f659290 Mon Sep 17 00:00:00 2001 From: zaodonganqi <3193156071@qq.com> Date: Sun, 16 Nov 2025 16:43:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E9=A3=9F=E5=9B=BE=E5=83=8F=E9=87=8A?= =?UTF-8?q?=E6=94=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repo/js/Auto Theft NPC & 原食/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repo/js/Auto Theft NPC & 原食/main.js b/repo/js/Auto Theft NPC & 原食/main.js index 1f2b8a0b8..180aef85a 100644 --- a/repo/js/Auto Theft NPC & 原食/main.js +++ b/repo/js/Auto Theft NPC & 原食/main.js @@ -522,6 +522,7 @@ async function buyGoods(npcName) { } else { log.info("识别到初始摩拉数值: {initialMora}", initialMora); } + captureRegion.dispose(); } } // 多页购买 @@ -559,18 +560,19 @@ async function buyGoods(npcName) { log.info(`当前摩拉已花费: ${currentSpent},剩余预算: ${maxMora - currentSpent}`); if (currentSpent >= maxMora) { log.info("已达到最大使用摩拉数值,停止购买"); + captureRegion.dispose(); return true; } } else { log.info("未设置最大摩拉数值,继续购买下一件商品"); } - } else { log.info("购买失败: {item}, 背包已经满或商品已售罄", goodsData[item].name); } } } + captureRegion.dispose(); // 从已购买物品中移除 tempGoods = tempGoods.filter(item => !boughtGoods.has(item));