feat(editor): add proc_skill override support for skills

1. 新增proc_skill覆写配置项,支持配置概率触发额外技能
2. 重构OverrideEditor,支持对象类型覆写的结构化编辑
3. 给SkillEditor和TriggerGroupEditor透传技能选项用于uuid选择
4. 更新英雄技能数据示例,添加触发普攻的proc_skill配置
5. 修复覆写编辑器同步逻辑,保留编辑中未完成的配置项
This commit is contained in:
panFD
2026-09-05 13:38:30 +08:00
parent 63423c5378
commit c4b49e4df6
8 changed files with 89 additions and 28 deletions

View File

@@ -124,6 +124,8 @@ export const OVERRIDE_KEYS = [
{ key: 'call_hero', label: 'call_hero 召唤英雄id' },
{ key: 'revive_hp', label: 'revive_hp 复活回血比例(%)' },
{ key: 'revive_count', label: 'revive_count 复活次数上限' },
// 对象型覆写:命中后概率触发额外技能(技能级触发器),含 s_uuid/chance/overrides 子字段
{ key: 'proc_skill', label: 'proc_skill 命中概率触发技能', type: 'object' },
// 字符串型覆写:value 为图标ID(uicons 图集帧名),非数值
{ key: 'icon', label: 'icon 英雄语境图标(覆写 SkillSet.icon)', type: 'string' },
]