feat(护盾系统): 完善护盾功能并添加吸收提示

- 在GameSet.ts中添加shield类型提示
- HeroViewComp新增shield_tip方法显示护盾吸收值
- 修改HeroAttrsComp移除护盾值上限限制
- TooltipCom添加shield类型提示处理
- 调整SACastSystem中治疗和护盾技能计算方式
- HeroAtkSystem优化护盾吸收逻辑并添加吸收提示
This commit is contained in:
walkpan
2025-12-31 23:36:55 +08:00
parent f858580b34
commit 0ec1dcfd0d
6 changed files with 41 additions and 14 deletions

View File

@@ -159,7 +159,6 @@ export class HeroAttrsComp extends ecs.Comp {
addValue = value * this.Attrs[Attrs.HP_MAX] / 100;
}
this.shield += addValue;
this.shield = Math.max(0, Math.min(this.shield, this.Attrs[Attrs.HP_MAX]));
this.dirty_shield = true; // 标记护盾需要更新
}
// ==================== BUFF 管理 ====================