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]
|
||||
|
||||
@@ -46,20 +46,21 @@ export class VictoryComp extends CCComp {
|
||||
this.game_data=args.game_data
|
||||
}
|
||||
|
||||
// 接收复活参数
|
||||
if (args.can_revive !== undefined) {
|
||||
this.canRevive = args.can_revive;
|
||||
} else {
|
||||
this.canRevive = false; // 默认不可复活
|
||||
}
|
||||
// // 接收复活参数
|
||||
// if (args.can_revive !== undefined) {
|
||||
// this.canRevive = args.can_revive;
|
||||
// } else {
|
||||
// this.canRevive = false; // 默认不可复活
|
||||
// }
|
||||
|
||||
this.node.getChildByName("btns").getChildByName("next").active=!args.can_revive
|
||||
this.node.getChildByName("btns").getChildByName("alive").active=args.can_revive
|
||||
// this.node.getChildByName("btns").getChildByName("alive").active=args.can_revive
|
||||
|
||||
// 只有在不能复活(彻底结算)时才计算总分
|
||||
if (!this.canRevive) {
|
||||
this.calculateTotalScore();
|
||||
}
|
||||
// if (!this.canRevive) {
|
||||
|
||||
// }
|
||||
this.calculateTotalScore();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user