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

@@ -171,6 +171,8 @@ https://www.kdocs.cn/wo/sl/v13uXscL
## 更新日志
### 1.7.12025.07.29
1.修复了不卡时间并尽可能跑A模式不可用的问题
### 1.7.02025.07.28
1.增加模式不卡时间并尽可能跑A比前一天晚间隔时间以上就跑A并设为默认选项
2.增加通知收益的选项

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;
}
}
//切换至好感队

View File

@@ -1,7 +1,7 @@
{
"manifest_version": 1,
"name": "自动狗粮重制版",
"version": "1.7.0",
"version": "1.7.1",
"tags": [
"好感",
"狗粮"

View File

@@ -74,6 +74,8 @@
---
### 更新日志
### 1.2.42025.07.29
1.修复了关键词无法对怪物名称生效的问题
### 1.2.32025.07.28
1.优化了定时终止的逻辑,会按下一条路线的预计时间来计算,避免某条线路过长
2.添加了按效率降序运行的选项,用于在时间有限且不确定时优先运行效率较高的路线

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);

View File

@@ -1,8 +1,8 @@
{
"manifest_version": 1,
"name": "锄地一条龙",
"version": "1.2.3",
"description": "一站式解决自动化锄地支持只拾取狗粮请阅读README.md后使用",
"version": "1.2.4",
"description": "一站式解决自动化锄地,支持只拾取狗粮,请仔细阅读README.md后使用",
"authors": [
{
"name": "mno",