js:采集cd管理2.1.1 (#2447)

* js:采集cd管理2.1.1

忘加冒号了

* js:只要大瓶1.2

分解前增加选择未锁定
This commit is contained in:
mno
2025-12-07 00:20:06 +08:00
committed by GitHub
parent 336aa5041c
commit cc5c2bc328
7 changed files with 13 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

View File

@@ -54,9 +54,13 @@ let rg;
click(30, 30);
await sleep(100);
await clickPNG("重置");
await sleep(200);
await clickPNG("祝圣之霜定义");
await sleep(200);
await clickPNG("未装备");
await sleep(200);
await clickPNG("未锁定");
await sleep(200);
await clickPNG("确认");
await sleep(200);
click(30, 30);
@@ -113,6 +117,11 @@ let rg;
//点击分解
await clickPNG("分解");
await sleep(500);
await clickPNG("分解筛选");
await sleep(200);
await clickPNG("分解未锁定");
await clickPNG("分解确认");
//点击倒序
await clickPNG("倒序");
rg = captureGameRegion();
@@ -266,7 +275,7 @@ async function selectOneAritfact() {
return false;
}
async function clickPNG(png, maxAttempts = 20, Threshold = 0.9) {
async function clickPNG(png, maxAttempts = 40, Threshold = 0.9) {
const pngRo = RecognitionObject.TemplateMatch(file.ReadImageMatSync(`assets/RecognitionObject/${png}.png`));
pngRo.Threshold = Threshold;
pngRo.InitTemplate();

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "只要大瓶",
"version": "1.1",
"version": "1.2",
"description": "分解狗粮尽量只要大瓶",
"authors": [
{

View File

@@ -13,7 +13,7 @@ const targetItemPath = "assets/targetItems";
const mainUITemplate = file.ReadImageMatSync("assets/MainUI.png");
const itemFullTemplate = file.ReadImageMatSync("assets/itemFull.png");
const fIcontemplate = file.ReadImageMatSync("assets/F_Dialogue.png");
const accountName = settings.infoFileName || 默认账户;
const accountName = settings.infoFileName || "默认账户";
// 定义目标文件夹路径和记录文件路径
const recordFolder = "record"; // 存储记录文件的文件夹路径

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "采集cd管理",
"version": "2.1.0",
"version": "2.1.1",
"bgi_version": "0.44.8",
"description": "仅面对会操作文件和读readme的用户基于文件夹操作自动管理采集路线的cd会按照路径组的顺序依次运行直到指定的时间并会按照给定的cd类型自动跳过未刷新的路线",
"saved_files": [