From 57d2805761ea205346c2f5515c8503883b5de2f8 Mon Sep 17 00:00:00 2001 From: panFD Date: Sat, 20 Jun 2026 16:20:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(map):=20=E8=B0=83=E6=95=B4=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=BB=84=E4=BB=B6=E7=AD=89=E7=BA=A7=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据卡片类型区分显示等级节点:技能卡隐藏等级,英雄卡正常显示等级 --- assets/script/game/map/HInfoComp.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index 1fd7d0f3..1faed59b 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -156,9 +156,15 @@ export class HInfoComp extends CCComp { const heroUuid = this.previewUuid; const heroLv = Math.max(1, this.previewLv); + // 技能卡无等级概念,隐藏等级节点;英雄卡显示等级 if (this.lv_node) { - this.lv_node.string = `Lv.${heroLv}`; - this.lv_node.color = getLvColor(heroLv); + if (this.isSkillCard) { + this.lv_node.node.active = false; + } else { + this.lv_node.node.active = true; + this.lv_node.string = `Lv.${heroLv}`; + this.lv_node.color = getLvColor(heroLv); + } } const kindName = this.isSkillCard ? CKind[CKind.Skill] : CKind[CKind.Hero];