This commit is contained in:
panw
2025-07-28 14:17:56 +08:00
parent 48eaa6d1ad
commit 953ae2e0f9
10 changed files with 734 additions and 178 deletions

View File

@@ -92,11 +92,24 @@ export class CardsCompComp extends CCComp {
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择强化"
this.enhancement_select()
break
case GameEvent.TalentSelect:
console.log("[CardsComp]:显示天赋选择卡牌")
this.node.getChildByName("btns").getChildByName("cancel").active=true
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择天赋"
this.talent_select()
break
}
if(!is_refresh) this.show()
}
talent_select(){
let list=getRandomCardsByType(cardType.TALENT,3,Quality.GREEN)
console.log("[CardsComp]:天赋选择卡牌列表",list)
this.card1c.talent_select(list[0])
this.card2c.talent_select(list[1])
this.card3c.talent_select(list[2])
}
enhancement_select(){
let list=getEnhancement(smc.enhancements,3)
console.log("[CardsComp]:强化选择卡牌列表",smc.enhancements,list)