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

@@ -59,6 +59,7 @@ export const DEBUFF_ICON_MAP: Record<number, DebuffIcon> = {
7006: DebuffIcon.AttackDebuff, // 减攻
7007: DebuffIcon.Blood, // 出血
7008: DebuffIcon.Penetration, // 破甲
7025: DebuffIcon.LightningDamag, // 麻痹(雷系图标,注意 prefab 原始拼写少个 e
};
/** 易伤 buff 的 idHeroAtkSystem 结算时按此 id 汇总易伤值) */
@@ -79,7 +80,7 @@ export interface BuffConfig {
modifiers?: BuffModifier[];
tick?: BuffTickEffect;
is_control?: boolean;
control_kind?: 'frost' | 'stun' | 'none';
control_kind?: 'frost' | 'stun' | 'paralyze' | 'none';
info: string;
}
@@ -107,12 +108,12 @@ export const BuffList: Record<number, BuffConfig> = {
is_control: true, control_kind: 'frost',
info: "冰冻目标,无法行动",
},
// 击晕(控制
// 击晕(短控:施加瞬间技能 CD 削减 20%,持续期间 CD 停止增长
7004: {
id: 7004, name: "击晕", icon: "Stat_Stun",
category: BuffCategory.Control, duration: 2, max_stack: 1,
category: BuffCategory.Control, duration: 1, max_stack: 1,
is_control: true, control_kind: 'stun',
info: "击晕目标,无法行动",
info: "击晕目标 1 秒,无法行动,技能 CD 削减 20% 并停止增长",
},
// 中毒(纯伤害 DoT可叠层
7005: {
@@ -242,4 +243,20 @@ export const BuffList: Record<number, BuffConfig> = {
modifiers: [{ attr: Attrs.defense, op: ModOp.PercentAdd, value: 100 }],
info: "防御提升 100持续 5 秒",
},
// ==================== 控制 / 麻痹系 ====================
// 麻痹(控制:技能 CD 增长减速 50%,可被麻痹强化 buff 提升,累计达 100% 则停止增长)
7025: {
id: 7025, name: "麻痹", icon: "Stat_LightningDamag",
category: BuffCategory.Control, duration: 5, max_stack: 1,
is_control: true, control_kind: 'paralyze',
info: "麻痹目标,技能 CD 增长减慢 50%,持续 5 秒",
},
// 麻痹强化(提升麻痹对技能 CD 的减速量,与麻痹基础减速按百分点叠加)
7026: {
id: 7026, name: "麻痹强化", icon: "Stat_LightningDamag",
category: BuffCategory.Buff, duration: 5, max_stack: 1,
modifiers: [{ attr: Attrs.paralyze_power, op: ModOp.PercentAdd, value: 30 }],
info: "麻痹对技能 CD 的减速量额外提升 30%,持续 5 秒",
},
};