mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-04-03 06:35:14 +08:00
fix(AutoPlan): 修复自动运行循环的条件判断逻辑
- 修改了循环终止条件,将硬编码的 true 改为 false - 添加了体力值检查条件 config.user.physical.current < config.user.physical.min - 调整了体力不足时的 break 逻辑位置 - 移除了冗余的 else if 分支,简化代码结构
This commit is contained in:
@@ -468,11 +468,10 @@ async function main() {
|
|||||||
//循环跑
|
//循环跑
|
||||||
while (true) {
|
while (true) {
|
||||||
await autoRunList(list);
|
await autoRunList(list);
|
||||||
if (true) {
|
if (false && config.user.physical.current < config.user.physical.min) {
|
||||||
//不循环跑
|
//不循环跑
|
||||||
break
|
break
|
||||||
} else if (config.user.physical.current < config.user.physical.min) {
|
}else {
|
||||||
//体力耗尽
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user