From 729af91185efe4c5c981171e8dbb4a04aae08a83 Mon Sep 17 00:00:00 2001 From: LXYan2333 Date: Tue, 9 Sep 2025 17:36:32 +0800 Subject: [PATCH] Update main.js (#1839) fix bug --- repo/js/AutoArtifactsSalvageOrDestroy(1-4star)/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repo/js/AutoArtifactsSalvageOrDestroy(1-4star)/main.js b/repo/js/AutoArtifactsSalvageOrDestroy(1-4star)/main.js index 90862090a..8244db338 100644 --- a/repo/js/AutoArtifactsSalvageOrDestroy(1-4star)/main.js +++ b/repo/js/AutoArtifactsSalvageOrDestroy(1-4star)/main.js @@ -2,7 +2,7 @@ const outDatedRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("assets (async function () { // 读取用户设置 - let operationType = settings.operationType || "分解"; // 默认为分解 + let operationType = settings.operationType || "分解(经验瓶)"; // 默认为分解 let times = settings.times || 1; // 默认为1 let includeOneStar = settings.includeOneStar || false; let includeTwoStar = settings.includeTwoStar || false; @@ -94,11 +94,11 @@ const outDatedRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("assets } // 执行操作 - if (operationType === "分解") { + if (operationType === "分解(经验瓶)") { await salvage(); log.info("分解完成。"); - } else if (operationType === "摧毁") { + } else if (operationType === "摧毁(摩拉)") { await destroy(); log.info("摧毁完成。"); } -})(); \ No newline at end of file +})();