feat(护盾系统): 完善护盾功能并添加吸收提示
- 在GameSet.ts中添加shield类型提示 - HeroViewComp新增shield_tip方法显示护盾吸收值 - 修改HeroAttrsComp移除护盾值上限限制 - TooltipCom添加shield类型提示处理 - 调整SACastSystem中治疗和护盾技能计算方式 - HeroAtkSystem优化护盾吸收逻辑并添加吸收提示
This commit is contained in:
@@ -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 管理 ====================
|
||||
|
||||
Reference in New Issue
Block a user