refactor(hero): 重构技能触发与属性系统,使用运行时解析缓存
1. 重构英雄属性组件,将静态配置与运行时缓存分离,新增runtime_前缀的运行时解析字段 2. 移除旧的evolve进化配置处理逻辑,改为通过等级解析器动态获取当前等级生效的技能与属性 3. 统一怪物与英雄的技能触发逻辑,均使用运行时缓存字段 4. 更新测试模式配置结构,适配新的分组+等级数组配置格式 5. 优化技能描述生成逻辑,支持新的等级配置结构
This commit is contained in:
@@ -489,7 +489,7 @@ export class HeroViewComp extends CCComp {
|
||||
}
|
||||
|
||||
// 如果角色带有死亡触发技能,则由 SCastSystem 播放 playReady("dead")
|
||||
if (this.model && this.model.dead && this.model.dead.length > 0) {
|
||||
if (this.model && this.model.runtime_dead && this.model.runtime_dead.length > 0) {
|
||||
// SCastSystem will handle the "dead" ready animation
|
||||
} else {
|
||||
// 播放默认死亡特效
|
||||
|
||||
Reference in New Issue
Block a user