From 6e7952fc5ff918fb3d97453c7b5ad5771be7621a Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 24 Apr 2026 15:57:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8B=B1=E9=9B=84?= =?UTF-8?q?=E5=8D=A1=E7=89=8C=E8=B4=B9=E7=94=A8=E6=A0=87=E7=AD=BE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除对英雄卡牌隐藏费用标签的特殊处理,统一显示所有卡牌的费用标签,确保界面一致性。 --- assets/script/game/map/CardComp.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index d7843fcd..cc3ad939 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -878,15 +878,11 @@ export class CardComp extends CCComp { } // ---- 费用标签 ---- - if (this.card_type === CardType.Hero) { - if (this.cost_node) this.cost_node.active = false; - } else { - if (this.cost_node) { - this.cost_node.active = true; - const numNode = this.cost_node.getChildByName("num"); - if (numNode) { - this.setLabel(numNode, `${this.card_cost}`); - } + if (this.cost_node) { + this.cost_node.active = true; + const numNode = this.cost_node.getChildByName("num"); + if (numNode) { + this.setLabel(numNode, `${this.card_cost}`); } }