fix(map): 移除奖励数字前的加号前缀

调整RewardItemComp和VictoryComp中的奖励数量显示逻辑,去掉原本的+号前缀,统一展示原始数值
This commit is contained in:
panFD
2026-09-04 22:26:01 +08:00
parent a7223669cc
commit c239eafc10
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ export class RewardItemComp extends CCComp {
*/
setReward(count: number) {
if (this.count_label) {
this.count_label.string = `+${count}`;
this.count_label.string = `${count}`;
}
this.playEnter();
}

View File

@@ -619,7 +619,7 @@ export class VictoryComp extends CCComp {
node.getComponent(ChipComp)?.setHeroByUuid(f.uuid);
const numLabel = node.getChildByName("num")?.getComponent(Label);
if (numLabel) {
numLabel.string = `+${f.count}`;
numLabel.string = `${f.count}`;
numLabel.node.active = true;
}
items.push(node);