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

@@ -146,10 +146,11 @@ export class TooltipCom extends CCComp {
this.node.setPosition(v3(this.node.position.x, currentY - 60));
this.node.setSiblingIndex(topSiblingIndex);
break;
case TooltipTypes.shield:
case TooltipTypes.shield: // 护盾格挡
this.node.setPosition(v3(this.node.position.x + offsetX, currentY));
this.node.setSiblingIndex(topSiblingIndex);
this.setupLabel("add_life", "hp", this.value);
this.setupLabel("add_life", "hp", "格挡");
isHeal = true;
break;
}