mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-31 05:59:51 +08:00
refactor(FullyAutoAndSemiAutoTools): 移除战斗策略配置检查逻辑
- 注释掉JSON解析和描述检查相关代码 - 保留路径关键词匹配的战斗需求检查逻辑 - 简化战斗需求判断流程
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user