fix(AutoPlan): 修复树脂耗尽模式和开放模式计数配置

- 将 isResinExhaustionMode 配置项从 false 修改为 true
- 将 openModeCountMin 配置项从 false 修改为 true
- 更新自动运行列表过滤条件以支持多个运行类型
- 添加对 autoLeyLineOutcrop.count 的可选链检查
- 扩展运行配置以同时处理 DomainRoundNum 和 LeyLineOutcrop 计数
This commit is contained in:
yan
2026-02-15 22:10:47 +08:00
parent 5b65b55567
commit 0e2480012a

View File

@@ -115,8 +115,8 @@ async function autoLeyLineOutcrop(autoLeyLineOutcrop) {
"count": 0,
"country": "country_cb3d792be8db",
"leyLineOutcropType": "leyLineOutcropType_f259b77fabcb",
"isResinExhaustionMode": false,
"openModeCountMin": false,
"isResinExhaustionMode": true,
"openModeCountMin": true,
"useAdventurerHandbook": false,
"friendshipTeam": "friendshipTeam_7122cab56b16",
"team": "team_d0798ca3aa27",
@@ -352,7 +352,10 @@ async function main() {
let runConfig = config.run.config;
//"队伍名称|秘境名称/刷取物品名称|刷几轮|限时/周日|周几执行(0-6)不填默认执行|执行顺序,..."
const autoRunOrderList = await initRunOrderList(runConfig);
const list = autoRunOrderList.filter(item => item.runType === config.user.runTypes[0] && item.autoFight.DomainRoundNum > 0)
const list = autoRunOrderList.filter(item =>
(item.runType === config.user.runTypes[0] && item?.autoFight.DomainRoundNum > 0)
|| (item.runType === config.user.runTypes[1] && item?.autoLeyLineOutcrop.count > 0)
)
if (list?.length > 0) {
await autoRunList(list);
} else {