js:锄地一条龙和自动狗粮 (#1436)

### 1.7.1(2025.07.29)
1.修复了不卡时间,并尽可能跑A模式不可用的问题
### 1.2.4(2025.07.29)
1.修复了关键词无法对怪物名称生效的问题
This commit is contained in:
mno
2025-07-29 12:11:08 +08:00
committed by GitHub
parent b504c16aa4
commit 39baae8149
6 changed files with 15 additions and 10 deletions

View File

@@ -158,8 +158,9 @@ async function processPathings() {
// 解析 description 获取预计用时和怪物信息
const routeInfo = parseDescription(description);
// 初始化 pathing 对象的属性
pathing.t = routeInfo.time; // 预计用时初始化为60秒如果 description 中有值则覆盖
//pathing 对象的属性
pathing.t = routeInfo.time; // description 中有值则覆盖
pathing.monsterInfo = routeInfo.monsterInfo;
if (!settings.disableSelfOptimization && pathing.records) {
//如果用户没有禁用自动优化,则参考运行记录更改预期用时
const history = pathing.records.filter(v => v > 0);