添加 tags,处理换队失败逻辑.

This commit is contained in:
秋云
2025-05-10 07:28:23 +08:00
parent 4b38f6825b
commit 327c6c2b27
3 changed files with 9 additions and 4 deletions

View File

@@ -99,6 +99,7 @@
ocrStatus = true;
break;
}
await sleep(1000);
}
}
@@ -193,10 +194,12 @@
// 切换队伍
if (!!settings.partyName) {
try {
await genshin.tpToStatueOfTheSeven();
await sleep(2000);
log.info("正在尝试切换至" + settings.partyName);
await genshin.switchParty(settings.partyName);
if(!await genshin.switchParty(settings.partyName)){
log.info("切换队伍失败,前往七天神像重试");
await genshin.tpToStatueOfTheSeven();
await genshin.switchParty(settings.partyName);
}
} catch {
log.error("队伍切换失败,可能处于联机模式或其他不可切换状态");
notification.error(`队伍切换失败,可能处于联机模式或其他不可切换状态`);

View File

@@ -1,7 +1,8 @@
{
"manifest_version": 1,
"name": "盗宝团好感:自动好感度&刷盗宝团&卡时间",
"version": "1.1",
"version": "1.2",
"tags": ["好感", "盗宝团", "突发事件"],
"description": "通过突发事件【岛上无贼】刷好感度,刷盗宝团材料,小怪锄地,卡时间等,请配合战斗脚本使用。在 HZYgrandma & 愚溪的原始脚本上改编。",
"authors": [
{

View File

@@ -2,6 +2,7 @@
"manifest_version": 1,
"name": "鸡腿好感",
"version": "1.1",
"tags": ["好感", "突发事件"],
"bgiVersion": "0.43.5",
"description": "通过喂狗突发事件刷好感度使用满员好感度队伍每天上限10次有概率失败可以适当增加次数",
"authors": [