diff --git a/assets/script/game/map/CardComp.ts b/assets/script/game/map/CardComp.ts index 71764956..5a61729f 100644 --- a/assets/script/game/map/CardComp.ts +++ b/assets/script/game/map/CardComp.ts @@ -405,7 +405,8 @@ export class CardComp extends CCComp { if(this.card_type===CardType.Hero){ const hero = HeroInfo[this.card_uuid]; const heroLv = Math.max(1, Math.floor(this.cardData.hero_lv ?? hero?.lv ?? 1)); - this.setLabel(this.name_node, `${hero?.name || ""}Lv.${heroLv}`); + const suffix = heroLv >= 2 ? "★".repeat(heroLv - 1) : ""; + this.setLabel(this.name_node, `${suffix}${hero?.name || ""}${suffix}`); this.info_node.active = true; this.oinfo_node.active = false; this.info_node.getChildByName("ap").getChildByName("val").getComponent(Label).string = `${(hero?.ap ?? 0) * heroLv}`; @@ -414,7 +415,9 @@ export class CardComp extends CCComp { const specialCard = this.card_type === CardType.SpecialUpgrade ? SpecialUpgradeCardList[this.card_uuid] : SpecialRefreshCardList[this.card_uuid]; - this.setLabel(this.name_node, `${specialCard?.name || ""}Lv.${this.cardData.pool_lv}`); + 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}`); this.info_node.active = false; this.oinfo_node.active = true; this.oinfo_node.getChildByName("info").getComponent(Label).string = `${specialCard?.info || ""}`;