js:AAA狗粮批发1.0.2 (#1652)

This commit is contained in:
mno
2025-08-20 11:53:43 +08:00
committed by GitHub
parent 71055faad5
commit 8f8cfa8541
3 changed files with 15 additions and 2 deletions

View File

@@ -82,6 +82,8 @@ https://www.kdocs.cn/wo/sl/v13uXscL
## 更新日志
### 1.0.22025.08.20
1.修复沿途自动分解不生效
### 1.0.12025.08.19
1.正式版的第一次归我了
2.优化几个度假村路线

View File

@@ -38,6 +38,7 @@ let state = {};
let record = {};
let CDInfo = [];
let failcount = 0;
let autoSalvageCount = 0;
(async function () {
setGameMetrics(1920, 1080, 1);
@@ -359,7 +360,7 @@ async function processArtifacts(times = 1) {
keyPress("VK_ESCAPE");
await recognizeTextAndClick("分解", { x: 635, y: 991, width: 81, height: 57 });
await findAndClick(decomposeRo);
await sleep(1000);
}
await findAndClick(quickChooseRo);
@@ -843,6 +844,16 @@ async function runEndingAndExtraPath() {
}
async function runPaths(folderFilePath, PartyName, doStop) {
if (settings.autoSalvage && autoSalvageCount >= 4) {
autoSalvageCount = 0;
if (settings.decomposeMode === "分解(经验瓶)") {
artifactExperienceDiff += await processArtifacts(1);
} else {
await processArtifacts(1);
}
} else {
autoSalvageCount++;
}
if (state.cancel) return;
let Paths = await readFolder(folderFilePath, true);
for (let i = 0; i < Paths.length; i++) {

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "AAA狗粮批发",
"version": "1.0.1",
"version": "1.0.2",
"tags": [
"狗粮"
],