mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-31 05:59:51 +08:00
feat(AutoPlan): 实现自动运行列表的循环执行机制
- 添加while循环结构支持重复执行autoRunList - 集成体力检测逻辑防止体力耗尽时继续运行 - 添加循环控制条件避免无限执行 - 实现体力不足时的自动中断机制 - 优化运行流程确保按需执行和停止
This commit is contained in:
@@ -464,7 +464,18 @@ async function main() {
|
||||
|| (item.runType === config.user.runTypes[1] && item?.autoLeyLineOutcrop.count > 0)
|
||||
)
|
||||
if (list?.length > 0) {
|
||||
await autoRunList(list);
|
||||
//循环跑
|
||||
while (true){
|
||||
await autoRunList(list);
|
||||
if (true){
|
||||
//不循环跑
|
||||
break
|
||||
}else
|
||||
if (config.user.physical.current<config.user.physical.min){
|
||||
//体力耗尽
|
||||
break
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log.info(`本日无计划`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user