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

@@ -272,6 +272,11 @@ let enemyType = "无";
runRouteA = false;
}
if (operationType === "不卡时间尽可能跑A") {
// 根据当前时间与上次运行时间给布尔变量 runRouteA 赋值
runRouteA = endTime <= timeNow;
}
// 检查 lastRunRoute 是否为 "B"
if (lastRunRoute === "B" && operationType !== "不卡时间ab交替运行") {
// 如果 lastRunRoute 为 "B",则将 endTime 改为当天的开始时间
@@ -287,11 +292,6 @@ let enemyType = "无";
// 根据当前时间与 1970-01-01T20:00:00.000Z 的天数差的奇偶性给布尔变量 runRouteA 赋值
runRouteA = Math.floor((now - epochTime) / (24 * 60 * 60 * 1000)) % 2 === 0;
}
if (operationType === "不卡时间ab交替运行") {
// 根据当前时间与上次运行时间给布尔变量 runRouteA 赋值
runRouteA = endTime <= timeNow;
}
}
//切换至好感队