From 08c5a4e5a897c7716804fc7cc57c34e2debff757 Mon Sep 17 00:00:00 2001 From: panFD Date: Sun, 23 Aug 2026 23:55:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(HerosListComp):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=8B=B1=E9=9B=84=E7=AD=89=E7=BA=A7=E6=98=BE=E7=A4=BA=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将updateLvDisplay方法参数从传入uuid获取英雄外显等级替换原有的hero对象直接取card_lv --- assets/script/game/map/HerosListComp.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/script/game/map/HerosListComp.ts b/assets/script/game/map/HerosListComp.ts index 575083aa..4f680f94 100644 --- a/assets/script/game/map/HerosListComp.ts +++ b/assets/script/game/map/HerosListComp.ts @@ -263,7 +263,7 @@ export class HerosListComp extends CCComp { } this.updatePoolLvBg(hero.card_lv ?? 1) - this.updateLvDisplay(hero) + this.updateLvDisplay(uuid) this.updateTypeDisplay(hero) this.updateHeroAnimation(uuid) this.updateGrowthPanel(uuid) @@ -288,9 +288,10 @@ export class HerosListComp extends CCComp { } } - private updateLvDisplay(hero: typeof HeroInfo[number]) { + private updateLvDisplay(uuid: number) { if (!this.lv_label) return - this.lv_label.string = `lv.${hero.card_lv ?? 1}` + const outerLv = smc.getHeroOuterLv(uuid) + this.lv_label.string = `lv.${outerLv}` } private updateTypeDisplay(hero: typeof HeroInfo[number]) {