fix: 修复角色名不同,喊话内容相同冲突的问题#113
Closed
LyKoiya wants to merge 4 commits into
Closed
Conversation
Owner
|
提错仓库了,这是停止维护的备份仓库,线上仓库在 https://github.com/tinymins/MY |
Contributor
Author
|
好的,已提交至新仓库,可否审核,非常感谢!
TIAN
***@***.***
|
Owner
是西山居官方审核的,现在所有人提交代码也是走这个流程 😸 |
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.
提交1:团队监控,喊话内容相同时只记录第一次NPC名称,在原条件cache.HIT[v.szContent] 增加NPC名称 cache.HIT[v.szContent][v.szTarget or 'sys']条件修复角色名不同,喊话内容相同冲突的问题。
提交2:团队监控,增加正则模式支持{$team}模板字符。实现思路:先在 szContent 中尝试移除成员名来定位被点名者,若移除成功,说明符合{$team}条件,再将正则规则中的 {$team} 替换为空,用剩余内容执行单次正则匹配。相比遍历所有成员逐个执行正则,只需一次正则调用,避免性能损耗。
提交3:团队面板,缓存团队监控数据的气劲显示名称,使面板头顶警报可使用团队监控中的自定名称
提交4:团队监控,加入判断允许监控来自团队队友的气劲