Skip to content

Commit 40b2ac2

Browse files
authored
js:AAA狗粮批发1.7.1 (#2753)
修复选择保留四星时出现错误的bug
1 parent a2f1729 commit 40b2ac2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

repo/js/AAA-Artifacts-Bulk-Supply/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ async function processArtifacts(times = 1) {
401401
await sleep(1000);
402402

403403
// 识别已储存经验(1570-880-1650-930)
404-
const digits = await numberTemplateMatch("assets/已储存经验数字", 1573, 885, 74, 36);
404+
let digits = await numberTemplateMatch("assets/已储存经验数字", 1573, 885, 74, 36);
405405

406406
let initialValue = 0;
407407
if (digits >= 0) {
@@ -429,7 +429,7 @@ async function processArtifacts(times = 1) {
429429
}
430430
await sleep(1000);
431431

432-
const match = await numberTemplateMatch("assets/分解数量数字", 100, 885, 200, 50);
432+
let match = await numberTemplateMatch("assets/分解数量数字", 100, 885, 200, 50);
433433
match = (match - 1000) / 10000;
434434

435435
if (match >= 0) {
@@ -479,7 +479,7 @@ async function processArtifacts(times = 1) {
479479
}
480480
// 当前总经验(1470-880-205-70)
481481

482-
const digits2 = await numberTemplateMatch("assets/分解可获得经验数字", 1469, 899, 180, 37, 0.95, 0.85, 5, 1);
482+
let digits2 = await numberTemplateMatch("assets/分解可获得经验数字", 1469, 899, 180, 37, 0.95, 0.85, 5, 1);
483483

484484
let newValue = 0;
485485
if (digits2 >= 0) {
@@ -516,7 +516,7 @@ async function processArtifacts(times = 1) {
516516
}
517517

518518
// 7. 计算分解获得经验=总经验-上次剩余
519-
const resinExperience = Math.max(newValue - initialValue, 0);
519+
let resinExperience = Math.max(newValue - initialValue, 0);
520520
log.info(`分解可获得经验: ${resinExperience}`);
521521
let fourStarNum = firstNumber - firstNumber2;
522522
if (settings.keep4Star) {
@@ -526,7 +526,7 @@ async function processArtifacts(times = 1) {
526526
if (resultExperience === 0) {
527527
resultExperience = initialValue;
528528
}
529-
const result = resultExperience;
529+
let result = resultExperience;
530530
await genshin.returnMainUi();
531531
return result;
532532
}

repo/js/AAA-Artifacts-Bulk-Supply/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 1,
33
"name": "AAA狗粮批发",
4-
"version": "1.7.0",
4+
"version": "1.7.1",
55
"tags": [
66
"狗粮"
77
],

0 commit comments

Comments
 (0)