fix: 修复火焰法师和冰法法师的UUID配置错误
移除胜利界面未使用的复活功能逻辑 修正英雄卡牌显示等级计算和属性显示 清理地图预制件中未使用的背景和英雄节点
This commit is contained in:
@@ -369,11 +369,13 @@ export class CardComp extends CCComp {
|
||||
|
||||
|
||||
if(this.card_type===CardType.Hero){
|
||||
this.setLabel(this.name_node, `${HeroInfo[this.card_uuid].name}Lv.${this.cardData.hero_lv}`);
|
||||
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}`);
|
||||
this.info_node.active = true;
|
||||
this.oinfo_node.active = false;
|
||||
this.info_node.getChildByName("ap").getChildByName("val").getComponent(Label).string = `${HeroInfo[this.card_uuid].ap*this.cardData.hero_lv}`;
|
||||
this.info_node.getChildByName("hp").getChildByName("val").getComponent(Label).string = `${HeroInfo[this.card_uuid].hp*this.cardData.hero_lv}`;
|
||||
this.info_node.getChildByName("ap").getChildByName("val").getComponent(Label).string = `${(hero?.ap ?? 0) * heroLv}`;
|
||||
this.info_node.getChildByName("hp").getChildByName("val").getComponent(Label).string = `${(hero?.hp ?? 0) * heroLv}`;
|
||||
}else{
|
||||
const specialCard = this.card_type === CardType.SpecialUpgrade
|
||||
? SpecialUpgradeCardList[this.card_uuid]
|
||||
|
||||
Reference in New Issue
Block a user