From c6601529b944fe9bf135b7e539e4e70d5d841471 Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 3 Apr 2026 10:59:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E7=89=B9=E6=AE=8A?= =?UTF-8?q?=E5=8D=A1=E7=89=8C=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E7=AD=89=E7=BA=A7=E6=A0=87=E8=AF=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复特殊升级/刷新卡牌名称显示逻辑,将等级后缀改为前缀,并使用★符号表示等级。 同时修复高等级卡牌边框节点激活逻辑,确保HB节点正确显示。 --- assets/script/game/map/CardComp.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index 5a61729f..2ab5ce0e 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -394,7 +394,7 @@ export class CardComp extends CCComp { const isHighLevel = (this.cardData.hero_lv ?? 0) > 1 || card_lv_val > 1; if (this.HF_node) this.HF_node.active = isHighLevel; if (this.NF_node) this.NF_node.active = !isHighLevel; - + this.node.getChildByName("HB").active = isHighLevel; const activeFrameNode = isHighLevel ? this.HF_node : this.NF_node; if (activeFrameNode) { activeFrameNode.children.forEach(child => { @@ -415,9 +415,9 @@ export class CardComp extends CCComp { const specialCard = this.card_type === CardType.SpecialUpgrade ? SpecialUpgradeCardList[this.card_uuid] : SpecialRefreshCardList[this.card_uuid]; - const poolLv = Math.max(1, Math.floor(this.cardData.pool_lv ?? 1)); - const spSuffix = poolLv >= 2 ? "+".repeat(poolLv - 1) : ""; - this.setLabel(this.name_node, `${specialCard?.name || ""}${spSuffix}`); + const card_lv = Math.max(1, Math.floor(this.cardData.card_lv ?? 1)); + const spSuffix = card_lv >= 2 ? "★".repeat(card_lv - 1) : ""; + this.setLabel(this.name_node, `${spSuffix}${specialCard?.name || ""}${spSuffix}`); this.info_node.active = false; this.oinfo_node.active = true; this.oinfo_node.getChildByName("info").getComponent(Label).string = `${specialCard?.info || ""}`;