Compare commits

..

2 Commits

Author SHA1 Message Date
physligl
a1286f00a1 update repo.json
Some checks failed
Build repo.json / build (18.x) (push) Has been cancelled
Build repo.json / upload (push) Has been cancelled
2025-07-15 00:16:36 +00:00
mno
726af55700 js:锄地一条龙 (#1347)
修复修改主界面判定导致的拾取失效
2025-07-15 08:16:18 +08:00
3 changed files with 9 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
{ {
"time": "20250715060943", "time": "20250715081634",
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip", "url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
"file": "repo.json", "file": "repo.json",
"indexes": [ "indexes": [
@@ -70129,8 +70129,8 @@
{ {
"name": "AutoHoeingOneDragon", "name": "AutoHoeingOneDragon",
"type": "directory", "type": "directory",
"hash": "f7b4de6b703b0b8a1e156a619da6fa7e1c179b32", "hash": "e451abb1d21e5d998628bbba0a6c6686eae55547",
"version": "1.1.9", "version": "1.1.10",
"author": "mno", "author": "mno",
"authors": [ "authors": [
{ {
@@ -70139,7 +70139,7 @@
], ],
"description": "锄地一条龙~|~一站式解决自动化锄地支持只拾取狗粮请阅读README.md后使用", "description": "锄地一条龙~|~一站式解决自动化锄地支持只拾取狗粮请阅读README.md后使用",
"tags": [], "tags": [],
"lastUpdated": "2025-07-14 23:02:31" "lastUpdated": "2025-07-15 08:16:18"
}, },
{ {
"name": "AutoLeyLineOutcrop", "name": "AutoLeyLineOutcrop",

View File

@@ -512,6 +512,7 @@ async function runPath(pathFilePath, map_name, whitelistKeywords, blacklistKeywo
} }
return null; return null;
} }
//检查是否在主界面 //检查是否在主界面
async function isMainUI() { async function isMainUI() {
// 修改后的图像路径 // 修改后的图像路径
@@ -553,13 +554,15 @@ async function runPath(pathFilePath, map_name, whitelistKeywords, blacklistKeywo
// 尝试找到 F 图标 // 尝试找到 F 图标
let fRes = await findFIcon(imagePath, 1102, 335, 34, 400, 200); let fRes = await findFIcon(imagePath, 1102, 335, 34, 400, 200);
if (!fRes || new Date() - lastCheckMainUi > 2011) { if (!fRes || ((new Date() - lastCheckMainUi) > 2011)) {
state.atMainUi = await isMainUI(); state.atMainUi = await isMainUI();
lastCheckMainUi = new Date(); lastCheckMainUi = new Date();
} }
if (!fRes && state.atMainUi) { if (!fRes && state.atMainUi) {
//log.info("在主界面,尝试下滑"); //log.info("在主界面,尝试下滑");
await keyMouseScript.runFile(`assets/滚轮下翻.json`); await keyMouseScript.runFile(`assets/滚轮下翻.json`);
}
if (!fRes) {
continue; continue;
} }

View File

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