refactor(FullyAutoAndSemiAutoTools): 移除战斗策略配置检查逻辑

- 注释掉JSON解析和描述检查相关代码
- 保留路径关键词匹配的战斗需求检查逻辑
- 简化战斗需求判断流程
This commit is contained in:
yan
2026-01-18 12:36:39 +08:00
parent 89ed5bdb1f
commit 394e682047

View File

@@ -1371,11 +1371,12 @@ async function runPath(path) {
//检查战斗需求
try {
if (!team.fight) {
const one = JSON.parse(file.readTextSync(path))
if (one.info?.description?.includes("请配置好战斗策略")) {
log.warn(`[{mode}] 路径需要配置好战斗策略: {path},如已配置请忽略`, settings.mode, path)
team.fight = true
} else if (team.fightKeys.some(item => path.includes(`\\${item}\\`))) {
// const one = JSON.parse(file.readTextSync(path))
// if (one.info?.description?.includes("请配置好战斗策略")) {
// log.warn(`[{mode}] 路径需要配置好战斗策略: {path},如已配置请忽略`, settings.mode, path)
// team.fight = true
// } else
if (team.fightKeys.some(item => path.includes(`\\${item}\\`))) {
team.fight = true
}
}