diff --git a/assets/script/game/map/HInfoComp.ts b/assets/script/game/map/HInfoComp.ts index 8249c41a..a57ef9dc 100644 --- a/assets/script/game/map/HInfoComp.ts +++ b/assets/script/game/map/HInfoComp.ts @@ -167,6 +167,20 @@ export class HInfoComp extends CCComp { this.lv_node.string = `Lv.${currentLv}`; } + // ---- 卡池等级标识 ---- + if (this.pool_lv_node) { + const poolLvStr = `lv${this.model.pool_lv ?? 1}`; + this.pool_lv_node.children.forEach(child => { + if (child.name === "light") { + child.active = false; + } else if (child.name === "bg") { + child.active = true; + } else { + child.active = (child.name === poolLvStr); + } + }); + } + // ---- 图标动画(仅在 UUID 变化时重新加载) ---- const heroUuid = this.model.hero_uuid ?? 0; if (heroUuid !== this.iconHeroUuid) {