Compare commits

...

2 Commits

Author SHA1 Message Date
physligl
ca1deb8a3b update repo.json
Some checks failed
Build repo.json / build (18.x) (push) Has been cancelled
Build repo.json / upload (push) Has been cancelled
2025-07-12 18:36:44 +00:00
mno
cad6906ed5 js:锄地一条龙1.17 (#1340)
### 1.1.7(2025.07.13)
1. 获取结束坐标添加独立地图处理
2. 含有传奇或高危标签的路线将不再被视为小怪路线
2025-07-13 02:36:24 +08:00
5 changed files with 24 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
{
"time": "20250713001229",
"time": "20250713023642",
"url": "https://github.com/babalae/bettergi-scripts-list/archive/refs/heads/main.zip",
"file": "repo.json",
"indexes": [
@@ -70133,8 +70133,8 @@
{
"name": "AutoHoeingOneDragon",
"type": "directory",
"hash": "1156673c26ed5a9e4a7e9300098c17514cd6f9a7",
"version": "1.1.6",
"hash": "e3c8e874596958e9249754d56af7d7b2a538b71c",
"version": "1.1.7",
"author": "mno",
"authors": [
{
@@ -70143,7 +70143,7 @@
],
"description": "锄地一条龙~|~一站式解决自动化锄地支持只拾取狗粮请阅读README.md后使用",
"tags": [],
"lastUpdated": "2025-07-12 11:30:54"
"lastUpdated": "2025-07-13 02:36:24"
},
{
"name": "AutoLeyLineOutcrop",

View File

@@ -1,5 +1,3 @@
# 锄地一条龙
**重要免责声明:**
1. **使用风险:**
@@ -73,6 +71,9 @@
---
### 更新日志
### 1.1.72025.07.13
1. 获取结束坐标添加独立地图处理
2. 含有传奇或高危标签的路线将不再被视为小怪路线
### 1.1.52025.07.10
1. 添加验证游戏卡住等情况下会终止js并不再将后续路线视为运行完成便于重跑
2. 添加优先关键词,便于优先考虑部分路线

View File

@@ -1600,12 +1600,12 @@
{
"fileName": "6706--纳塔_踞石山_彩石顶2_(7-16).json",
"时间": 241.03,
"精英摩拉": 0,
"精英摩拉": 200,
"小怪摩拉": 1048.5,
"小怪数量": 20.5,
"水免": 0,
"高危": 0,
"精英数量": 0
"精英数量": 1
},
{
"fileName": "6707--纳塔_踞石山_庙宇_(9-11).json",

View File

@@ -180,8 +180,9 @@ async function processPathings() {
// 去除重复标签
pathing.tags = [...new Set(pathing.tags)];
// 处理 map_name 属性
pathing.map_name = parsedContent.info?.map_name || "Teyvat"; // 如果有 map_name则使用其值否则默认为 "Teyvat"
}
return pathings; // 返回处理后的 pathings 数组
}
@@ -343,7 +344,11 @@ async function findBestRouteGroups(pathings, k, targetEliteNum, targetMonsterNum
// 为最终选中且精英怪数量为0的路线添加小怪标签
pathings.forEach(pathing => {
if (pathing.selected && pathing.e === 0) {
// 检查是否包含 "传奇" 或 "高危" 标签
const hasLegendOrHighRisk = pathing.tags.includes("传奇") || pathing.tags.includes("高危");
// 如果路径被选中、没有精英怪物且不包含 "传奇" 或 "高危" 标签,则添加 "小怪" 标签
if (pathing.selected && pathing.e === 0 && !hasLegendOrHighRisk) {
pathing.tags.push("小怪");
}
});
@@ -810,7 +815,7 @@ async function processPathingsByGroup(pathings, targetTexts, blacklistKeywords,
await fakeLog(`${pathing.fileName}`, false, false, 0);
try {
const miniMapPosition = await genshin.getPositionFromMap();
const miniMapPosition = await genshin.getPositionFromMap(pathing.map_name);
// 比较坐标
const diffX = Math.abs(lastX - miniMapPosition.X);
const diffY = Math.abs(lastY - miniMapPosition.Y);
@@ -819,14 +824,19 @@ async function processPathingsByGroup(pathings, targetTexts, blacklistKeywords,
if ((diffX + diffY) < 5) {
runningFailCount++;
} else {
//log.info(`当前坐标(${miniMapPosition.X}${miniMapPosition.Y},距离上次距离${(diffX + diffY)}`)
runningFailCount = 0;
}
//log.info(`当前位于${pathing.map_name}地图的(${miniMapPosition.X}${miniMapPosition.Y},距离上次距离${(diffX + diffY)}`);
} catch (error) {
log.error(`执行任务时发生错误:${error.message}`);
runningFailCount++;
}
if (runningFailCount >= 1) {
log.error("连续两条路线终止时坐标不变,不记录运行数据");
continue;
}
// 计算下一个 UTC 时间的晚上 8 点(即北京时间凌晨四点)
const nextEightClock = new Date(now);
nextEightClock.setUTCHours(20, 0, 0, 0); // 设置为 UTC 时间的 20:00
@@ -847,11 +857,6 @@ async function processPathingsByGroup(pathings, targetTexts, blacklistKeywords,
const remainingseconds = predictRemainingTime % 60;
log.info(`当前进度:第 ${targetGroup} 组第 ${groupPathCount}/${totalPathsInGroup}${pathing.fileName}已完成,该组预计剩余: ${remaininghours}${remainingminutes}${remainingseconds.toFixed(0)}`);
if (runningFailCount >= 1) {
log.error("连续两条路线终止时坐标不变,暂时不记录运行数据");
continue;
}
await updateCdTimeRecord(pathings, accountName);
}
}

View File

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