js:自动狗粮pro修复问题 (#1161)

尝试修复好感战斗超时时程序异常终止的问题
This commit is contained in:
mno
2025-06-21 22:05:08 +08:00
committed by GitHub
parent 74c0dff187
commit d5e2faeafd
3 changed files with 4 additions and 3 deletions

View File

@@ -16,7 +16,7 @@
使用即表示您已阅读并同意上述条款。
**Last Updated:** 2025-06-16
**Last Updated:** 2025-06-21
---
@@ -129,6 +129,8 @@
3. 在执行过程中,确保游戏窗口保持在前台,避免干扰。
## 更新日志
### 1.3.32025.06.21
1.尝试修复好感战斗超时时程序异常终止的问题
### 1.23.42025.06.16
1.增加了对于敌人类型的处理,避免报错
### 1.23.12025.06.14

View File

@@ -903,7 +903,6 @@ async function waitForBattleResult(timeout = 2 * 60 * 1000, enemyType = "盗宝
log.warn("在超时时间内未检测到战斗结果");
cts.cancel(); // 取消任务
throw new Error("战斗超时,未检测到结果");
}
/**

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "自动狗粮重制版",
"version": "1.3.2",
"version": "1.3.3",
"tags": ["好感", "盗宝团", "愚人众", "鳄鱼", "兽肉", "狗粮"],
"description": "通过不同好感任务卡时间后运行狗粮任务以提高狗粮总收益,需要正确配置好感队伍的战斗策略,并在自定义配置中指定好感和狗粮队伍名称",
"authors": [