feat: 新增麻痹控制机制,优化击晕与技能CD逻辑

1.  新增麻痹控制相关属性、buff配置与逻辑实现
2.  调整击晕时长与CD削减机制,优化技能CD更新逻辑
3.  修正多个技能预制件的参数与动画配置
4.  扩展控制类型检测与游戏配置项
This commit is contained in:
pan
2026-08-19 16:40:10 +08:00
parent d6e8cb4828
commit 5585149b12
11 changed files with 109 additions and 49 deletions

View File

@@ -110,7 +110,7 @@ class BuffManagerImpl {
* 判断目标是否处于指定类型的控制状态下。
* 唯一判定来源BuffComp 中是否存在对应 control_kind 的活跃控制 buff。
*/
hasControl(target: ecs.Entity, kind: 'frost' | 'stun'): boolean {
hasControl(target: ecs.Entity, kind: 'frost' | 'stun' | 'paralyze'): boolean {
if (!target.has(BuffComp)) return false;
const buffComp = target.get(BuffComp);
for (const [buffId, layers] of buffComp.buffs) {