feat(charge-plan): 战斗超时或失败后自动换队 - #2746
Draft
Hkzzzzzzz wants to merge 2 commits into
Draft
Conversation
added 2 commits
August 21, 2026 21:18
体力计划在队伍无法按目标时限完成或战斗失败时会重复使用同一队伍,容易长时间卡在同一副本。本次增加顺序换队,并把各玩法的 S 级目标用时做成可选预设。 - 新增 0..600 秒换队时限,按实际自动战斗时间判断并保持结算优先 - 实战模拟室、区域巡防、专业挑战室和体力模式恶名狩猎失败或超时后退出战斗并顺序换队 - 写回普通计划或双倍活动的预备编队,到达最后一队后不循环回绕 - 增加 120/120/180/300 秒的 S 级时限快捷按钮,保留关闭和自定义时限 - 同步后端配置说明、体力计划文档、战斗玩法和退出流程文档 验证:相关 pytest 58 项通过;修改文件 Ruff 通过,config_router.py 仅保留 4 项既有告警;调试界面确认预设填入、保存回读和自定义值保留。用户已人工验证原有超时退出与自动换队流程。
退出战斗后会停留在当前副本准备页,直接识别预备编队会导致原地重试失败。 - 复用下一步节点进入出战页后重新选择预备编队 - 在四类体力副本内部处理换队回调和队伍耗尽状态 - 保留当前副本与卡片配置并同步开发、玩法和画面文档
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么改
体力计划在战斗失败或无法按目标时限完成时会持续使用同一队伍,退出后重新走完整副本流程也会重复传送和配置。该改动让计划按预备编队顺序换队,并在当前副本准备页原地重试。
改动要点
验证
关联