feat: 新增天赋系统,实现局外天赋养成与战斗属性加成
- 新增天赋配置表与相关枚举、数据结构 - 新增全局单例的天赋数据管理接口,支持升级、重置、点数管理 - 新增天赋属性加成结算逻辑,支持全局天赋与职业专精天赋 - 新增治疗强化、buff强化属性与对应天赋支持 - 新增天赋更新事件,同步UI与战斗数据 - 在英雄加载、升级流程中接入天赋加成计算
This commit is contained in:
@@ -89,7 +89,9 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
puncture_chance: number = 0; // 穿透概率
|
||||
puncture_dmg_bonus: number = 0; // 穿透后伤害增量(百分点,乘算加成)
|
||||
wfuny: number = 0; // 风怒
|
||||
vulnerable_res: number = 0; // 易伤抗性(百分比减免易伤附加伤害)
|
||||
vulnerable_res: number = 0; // 易伤抗性(百分比减免易伤附加伤害)
|
||||
heal_power: number = 0; // 治疗强化(百分点;放大该英雄施放技能的治疗量,辅助专精天赋写入)
|
||||
buff_power: number = 0; // buff 强化(百分点;放大该英雄施加的友方 buff 数值,辅助专精天赋写入)
|
||||
|
||||
revived_count: number = 0; // 已复活次数
|
||||
invincible_time: number = 0;// 无敌时间
|
||||
@@ -660,6 +662,8 @@ export class HeroAttrsComp extends ecs.Comp {
|
||||
this.puncture_dmg_bonus = 0;
|
||||
this.wfuny = 0;
|
||||
this.vulnerable_res = 0;
|
||||
this.heal_power = 0;
|
||||
this.buff_power = 0;
|
||||
this.boom = false;
|
||||
|
||||
// 重置技能距离缓存
|
||||
|
||||
Reference in New Issue
Block a user