feat(hero&config): 新增反伤属性与反伤结算逻辑

1. 新增反伤相关配置属性thorns_dmg和thorns_rate
2. 在HeroAttrsComp中添加反伤属性字段与初始化逻辑
3. 实现反伤伤害结算逻辑,支持固定值+比例混合反伤
4. 新增计时buff施加概率与目标覆写配置项
This commit is contained in:
panFD
2026-09-05 17:53:21 +08:00
parent 0097e8c4c7
commit 370b455352
4 changed files with 61 additions and 2 deletions

View File

@@ -46,6 +46,8 @@ export enum Attrs {
paralyze_power = "paralyze_power", // 麻痹强化(百分点;提升麻痹对技能 CD 的减速量,累计达 100 则 CD 停止增长)
heal_power = "heal_power", // 治疗强化(百分点;放大该英雄施放技能的治疗量,辅助专精天赋写入)
buff_power = "buff_power", // buff 强化(百分点;放大该英雄施加的友方 buff 数值,辅助专精天赋写入)
thorns_dmg = "thorns_dmg", // 反伤伤害(固定值,受到攻击时对攻击者造成等量伤害)
thorns_rate = "thorns_rate", // 反伤比例(百分点;反伤值 = 实际受到伤害 * thorns_rate / 100 + thorns_dmg)
}
/**