refactor(hero&shield): 优化护盾系统逻辑与英雄配置

1. 修复护盾吸收数值计算错误,正确返回实际吸收伤害量
2. 调整护盾计数逻辑,改为按次数统计而非伤害量
3. 更新护盾相关提示文本与UI表现
4. 重构小铁卫与小刺客的英雄成长配置,补充详细设计文档
5. 删除冗余的旧版英雄配置文件
This commit is contained in:
pan
2026-07-24 09:44:43 +08:00
parent ee7c0ea69c
commit 42d0959b05
7 changed files with 42 additions and 983 deletions

View File

@@ -365,9 +365,9 @@ export class HeroViewComp extends CCComp {
Tooltip.load(pos, type, value, s_uuid, this.node.parent, 1, this.model?.fac ?? FacSet.MON);
}
/** 护盾吸收提示 */
/** 护盾格挡提示 */
shield_tip(absorbed: number) {
this.hp_tip(TooltipTypes.life, NumberFormatter.formatNumber(Math.max(0, Math.floor(absorbed))));
this.hp_tip(TooltipTypes.shield, NumberFormatter.formatNumber(Math.max(0, Math.floor(absorbed))));
}
public playBuff(anm: string = "") {
if (anm === "") return;