feat(hero&buff): 新增限时最大生命Buff与配套技能

新增7029生命爆发Buff和对应6517技能,实现限时提升最大生命功能:
1.  Buff生效时按增量等量回血,到期自动钳回血量防止溢血
2.  血条显示逻辑适配动态最大生命值变化
3.  新增血量与最终最大生命同步方法统一处理边界情况
This commit is contained in:
pan
2026-09-07 11:16:02 +08:00
parent 852976d54b
commit 922ca7318d
5 changed files with 58 additions and 3 deletions

View File

@@ -278,4 +278,13 @@ export const BuffList: Record<number, BuffConfig> = {
modifiers: [{ attr: Attrs.thorns_rate, op: ModOp.PercentAdd, value: 10 }],
info: "受到攻击时反弹 10% 所受伤害,可叠加,持续 5 秒",
},
// ==================== 生命上限系 ====================
// 生命爆发(限时提升最大生命;生效时按增量等量回血,到期钳回,由 HeroAttrsComp.syncHpWithFinalMax 统一结算)
7029: {
id: 7029, name: "生命爆发", icon: "29-Endure",
category: BuffCategory.Buff, duration: 5, max_stack: 1,
modifiers: [{ attr: Attrs.hp_max, op: ModOp.PercentAdd, value: 30 }],
info: "最大生命值提升 30%,并立即回复等量生命,持续 5 秒",
},
};