dd
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user