JS:使用历练点完成每日委托 2.1.2 (#2745)

This commit is contained in:
this-Fish
2026-01-20 13:50:39 +08:00
committed by GitHub
parent 818ff69566
commit ef854bf501
2 changed files with 10 additions and 7 deletions

View File

@@ -108,7 +108,6 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
await genshin.returnMainUi();
}
} else {
log.warn("没有设置切换队伍,使用当前队伍使用历练點");
await genshin.returnMainUi();
}
@@ -248,6 +247,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("识别到部署按钮:({x},{y},{w},{h})", DeployButton.x, DeployButton.y, DeployButton.Width, DeployButton.Height);
}
DeployButton.click();
await sleep(200);
ConfigureStatue = true;
break;
}
@@ -316,6 +316,7 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("申请造访尘歌壶位置:({x},{y},{w},{h}), 识别内容:{text}", res.x, res.y, res.Width, res.Height, res.text);
}
res.click();
await sleep(200);
}
}
}
@@ -460,7 +461,6 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
if (AdventurerHandbookButton.isExist()) {
log.info("识别到冒险之证按钮");
AdventurerHandbookButton.click();
await sleep(2000)
const ro22 = captureGameRegion();
let resList = ro22.findMulti(RecognitionObject.ocr(200, 300, 200, 100));
@@ -472,12 +472,13 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("识别到委托选项卡位置:({x},{y},{w},{h}), 识别内容:{text}", res.x, res.y, res.Width, res.Height, res.text);
}
res.click();
await sleep(200);
} else {
log.info("未识别到识别到委托选项卡");
}
}
await sleep(2000)
await sleep(1800)
const ro23 = captureGameRegion();
let EncounterPointsStageRewardsButton = ro23.find(EncounterPointsStageRewardsRo);
ro23.dispose();
@@ -524,24 +525,26 @@ const adventurePath = settings.adventurePath || '蒙德'; // 若未定义,用
log.info("识别到委托选项卡位置:({x},{y},{w},{h}), 识别内容:{text}", res.x, res.y, res.Width, res.Height, res.text);
}
res.click();
await sleep(200);
} else {
log.info("未识别到识别到委托选项卡");
}
}
await sleep(2000)
await sleep(1800)
const ro28 = captureGameRegion();
let EncounterPointsStageRewardsButton = ro28.find(Cannot_receive);
ro28.dispose();
if (EncounterPointsStageRewardsButton.isExist()) {
log.info("识别到 完成所有任務");
// EncounterPointsStageRewardsButton.click();
returnValue = true;
await sleep(2000);
await sleep(500);
log.info("可领取历练点奖励");
// 檢查是否可以領取 且 沒有設置隊伍名稱
if (settingsNotDoublePoints == true && !settings.partyName) {
log.info("没有设置切换队伍,使用当前队伍使用历练點");
log.info(`不使用好友尘歌壶历练点领取双倍好感,直接使用历练点`);
const ro29 = captureGameRegion();
let EncounterPointsStageRewardsButton = ro29.find(EncounterPointsStageRewardsRo);

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "使用历练点完成每日委托",
"version": "2.1.1",
"version": "2.1.2",
"bgi_version": "0.44.1",
"description": "使用历练点完成每日委托:\n支持进入好友尘歌壶使用历练点领取双倍好感(队伍中小于等于两人时,能使队伍中两人获得双倍好感)\n支持进入好友尘歌壶后让指定位置角色离队\n能指定星期几执行星期几不执行\n前往冒险家协会领取奖励",
"authors": [