refactor(hero&shield): 优化护盾系统逻辑与英雄配置
1. 修复护盾吸收数值计算错误,正确返回实际吸收伤害量 2. 调整护盾计数逻辑,改为按次数统计而非伤害量 3. 更新护盾相关提示文本与UI表现 4. 重构小铁卫与小刺客的英雄成长配置,补充详细设计文档 5. 删除冗余的旧版英雄配置文件
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user