feat(hero): 为英雄系统添加复活机制

- 在 HeroAttrsComp 中增加 `is_revived` 字段以追踪已复活次数
- 修改 HeroViewComp 的 `scheduleRevive` 方法,使其能播放复活技能的准备动画并立即触发复活
- 在 heroInfo 接口中新增 `revive` 配置项,用于定义英雄的复活技能
- 在 SkillSet 中添加新的复活技能配置(uuid: 6501)
- 新增 hero-roster.md 的元数据配置文件
This commit is contained in:
panw
2026-04-23 09:09:49 +08:00
parent 100a520df1
commit 8ab0cc3971
5 changed files with 24 additions and 5 deletions

View File

@@ -70,6 +70,7 @@ export interface heroInfo {
field?:number[]; // 驻场技能uuid列表英雄在场时对全局生效
atking?:{s_uuid:number, t_num:number}[]; // 普通攻击后触发的技能配置s_uuid: 技能id, t_num: 触发所需的普攻次数
atked?:{s_uuid:number, t_num:number}[]; // 受击后触发的技能配置s_uuid: 技能id, t_num: 触发所需的受击次数
revive?:{s_uuid:number,r_num:number,upr:number}[]
// dis: number; // 攻击距离(像素)
speed: number; // 移动速度(像素/秒)
skills: Record<number, HSkillInfo> ; // 携带技能ID列表