js:狗粮和锄地修几个bug (#2217)

* js:联机狗粮1.5.6

增加按键延迟,修正1234P图片

* js:锄地一条龙1.9.6

修复狗粮拾取模板文件路径
移除调试日志输出

* js:锄地一条龙

修正部分模板图片
This commit is contained in:
mno
2025-10-23 19:36:37 +08:00
committed by GitHub
parent a4970cd614
commit c0d8311210
23 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 888 B

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 971 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -767,6 +767,7 @@ async function findAndClick(target, maxAttempts = 20) {
try {
const result = gameRegion.find(target);
if (result.isExist()) {
await sleep(250);
result.click();
return true; // 成功立刻返回
}
@@ -1411,6 +1412,7 @@ async function processArtifacts() {
try {
const result = gameRegion.find(target);
if (result.isExist) {
await sleep(250);
result.click();
return true; // 成功立刻返回
}

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "AAA狗粮联机团购",
"version": "1.5.4",
"version": "1.5.6",
"tags": [
"狗粮"
],

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -674,7 +674,7 @@ async function recognizeAndInteract() {
let time1 = new Date();
itemName = await performTemplateMatch(centerYF);
let time2 = new Date();
log.info(`调试-本次识别用时${time2 - time1}毫秒`);
//log.info(`调试-本次识别用时${time2 - time1}毫秒`);
}
if (itemName) {
//log.info(`调试-识别到物品${itemName}`);
@@ -826,7 +826,7 @@ async function loadTargetItems() {
if (pickup_Mode === "模板匹配拾取,拾取狗粮和怪物材料") {
targetItemPath = "assets/targetItems/";
} else if (pickup_Mode === "模板匹配拾取,只拾取狗粮") {
targetItemPath = "assets/targetItems/其他/";
targetItemPath = "assets/targetItems/00狗粮0.8/";
} else {
return null;
}

View File

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