feat(skill-system): 新增计时debuff机制,支持技能命中敌方附加减益效果
本次提交完整实现了技能对敌附加debuff的完整流程: 1. 新增TimedDebuffSnapshot数据结构,用于透传debuff配置 2. 在SkillConfig和SkillOverrides中新增debuff相关配置项 3. 实现HeroAtkSystem中debuff的判定与施加逻辑 4. 完善后台配置、前端编辑器的debuff配置支持 5. 调整了buff目标判定逻辑,修复了原有默认目标的语义混淆问题 6. 优化了BuffSystem的调试日志,新增了debuff分类标识 7. 批量更新了现有英雄技能的debuff配置示例
This commit is contained in:
@@ -109,19 +109,25 @@ export const OVERRIDE_KEYS = [
|
||||
{ key: 'bck', label: 'bck 击退' },
|
||||
{ key: 'bck_chance', label: 'bck_chance 击退概率' },
|
||||
// buff 型覆写:值为 BuffList 配置 id,前端用 meta.BuffList 渲染下拉(支持 allow-create 手输兜底)
|
||||
// buff 语义为增益,缺省挂施法者自身;debuff 语义为对敌减益,缺省挂被命中者(目标不可覆写)
|
||||
{ key: 'timed_buff_id', label: 'timed_buff_id 计时buff', type: 'buff' },
|
||||
{ key: 'buff_value', label: 'buff_value 修饰数值' },
|
||||
{ key: 'buff_duration', label: 'buff_duration 持续时间' },
|
||||
{ key: 'buff_chance', label: 'buff_chance 附加概率' },
|
||||
{ key: 'thorns_dmg', label: 'thorns_dmg 反伤固定值' },
|
||||
{ key: 'thorns_rate', label: 'thorns_rate 反伤比例(%)' },
|
||||
// 枚举型覆写:计时 buff 施加目标(缺省跟随技能主效果目标,见 SkillSet.BuffTarget)
|
||||
// 枚举型覆写:计时 buff 施加目标(缺省按技能主效果推导:伤害→施法者自身,辅助→友方目标)
|
||||
{ key: 'buff_target', label: 'buff_target buff施加目标', type: 'enum', options: [
|
||||
{ value: 0, label: '0 被命中者(Hit/默认)' },
|
||||
{ value: 1, label: '1 施法者自身(Self)' },
|
||||
{ value: 0, label: '0 被命中者(Hit)' },
|
||||
{ value: 1, label: '1 施法者自身(Self/默认)' },
|
||||
{ value: 2, label: '2 全体友方(Ally)' },
|
||||
{ value: 3, label: '3 全体敌方(Enemy)' },
|
||||
]},
|
||||
// debuff 型覆写:值为 BuffList 配置 id,命中被攻击者后施加;目标固定为被命中者,不可覆写
|
||||
{ key: 'timed_debuff_id', label: 'timed_debuff_id 计时debuff', type: 'buff' },
|
||||
{ key: 'debuff_value', label: 'debuff_value 修饰数值' },
|
||||
{ key: 'debuff_duration', label: 'debuff_duration 持续时间' },
|
||||
{ key: 'debuff_chance', label: 'debuff_chance 附加概率' },
|
||||
// 枚举型覆写:技能目标群体(JSON 存字符串,导出还原 TGroup.X;proc_skill.overrides 可借此改变被触发技能的释放对象)
|
||||
// 注:不提供 All —— SCastSystem 未对 TGroup.All 做友/敌分流(会落到敌方分支),避免误配
|
||||
{ key: 'TGroup', label: 'TGroup 目标群体', type: 'enum', options: [
|
||||
|
||||
Reference in New Issue
Block a user