fix(sound-dodge): 修复模式配置并提升闪避响应稳定性#357
Open
CCYellowStar2 wants to merge 2 commits into
Open
Conversation
Contributor
审阅者指南重构声音闪避动作以支持新的配置节点,新增仅闪避模式,通过小型队列串行化声音触发的动作,并改进闪避/反击决策的时序与置信度处理,同时更新文档以保持一致。 串行化声音闪避动作的时序图sequenceDiagram
participant Ear
participant Ctx
participant Dodger
Ear->>Ear: _check(d_score, c_score)
alt [dodge_hit]
Ear->>Ctx: on_dodge()
Ctx->>Ctx: _enqueue_action("dodge")
else [counter_hit]
Ear->>Ctx: on_counter()
Ctx->>Ctx: _enqueue_action("counter")
end
loop while not context.tasker.stopping
Ctx->>Ctx: process_next(timeout=0.05)
alt action == dodge
Ctx->>Dodger: dodge()
else action == counter
Ctx->>Dodger: counter()
end
end
文件级改动
可能关联的 Issue
Tips and commandsInteracting with Sourcery
Customizing Your Experience访问你的 dashboard 以:
Getting HelpOriginal review guide in EnglishReviewer's GuideRefactors the sound dodge action to honor new config nodes, add a dodge-only mode, serialize sound-triggered actions through a small queue, and improve timing and confidence handling for dodge/counter decisions, while updating docs to match. Sequence diagram for serialized sound dodge actionssequenceDiagram
participant Ear
participant Ctx
participant Dodger
Ear->>Ear: _check(d_score, c_score)
alt [dodge_hit]
Ear->>Ctx: on_dodge()
Ctx->>Ctx: _enqueue_action("dodge")
else [counter_hit]
Ear->>Ctx: on_counter()
Ctx->>Ctx: _enqueue_action("counter")
end
loop while not context.tasker.stopping
Ctx->>Ctx: process_next(timeout=0.05)
alt action == dodge
Ctx->>Dodger: dodge()
else action == counter
Ctx->>Dodger: counter()
end
end
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
嗨,我已经审阅了你的修改,看起来非常不错!
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进审查质量。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
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.
关联 Issue
Fixes #354
变更摘要
Summary by Sourcery
改进声音闪避配置处理方式,并基于音频检测稳定闪避/反击触发行为。
New Features:
Bug Fixes:
Enhancements:
Documentation:
Original summary in English
Summary by Sourcery
Improve sound dodge configuration handling and stabilize dodge/counter trigger behavior based on audio detection.
New Features:
Bug Fixes:
Enhancements:
Documentation: