js:锄地一条龙2.0.1 (#2771)

修复一个致命bug
This commit is contained in:
mno
2026-01-23 16:10:40 +08:00
committed by GitHub
parent 029ac97072
commit 3dea03ffc6
2 changed files with 6 additions and 5 deletions

View File

@@ -32,10 +32,11 @@ let targetEliteNum = Math.max(0, +settings.targetEliteNum || 400) + 5; // 预留
let targetMonsterNum = Math.max(0, +settings.targetMonsterNum || 2000) + 25; // 预留漏怪
const partyName = settings.partyName || "";
const groupTags = Array.from({ length: 10 }, (_, i) => {
const tags = (settings[`tagsForGroup${i + 1}`] || (i === 0 ? '蕈兽' : '')).split('').filter(Boolean);
return i === 0 ? [...new Set(tags)] : tags;
});
const groupSettings = Array.from({ length: 10 }, (_, i) =>
settings[`tagsForGroup${i + 1}`] || (i === 0 ? '蕈兽' : '')
);
const groupTags = groupSettings.map(str => str.split('').filter(Boolean));
groupTags[0] = [...new Set(groupTags.flat())];
//模板与识别对象预加载
const itemFullRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync("assets/itemFull.png"), 0, 0, 1920, 1080);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "锄地一条龙",
"version": "2.0.0",
"version": "2.0.1",
"description": "一站式解决自动化锄地支持只拾取狗粮请仔细阅读README.md后使用",
"authors": [
{