接下来测试强化
This commit is contained in:
@@ -8,6 +8,7 @@ import { smc } from "../common/SingletonModuleComp";
|
||||
import { RandomManager } from "db://oops-framework/core/common/random/RandomManager";
|
||||
import { EquipType } from "../common/config/Equips";
|
||||
import { getSkills, Quality } from "../common/config/SkillSet";
|
||||
import { getEnhancement } from "../common/config/LevelUp";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -84,12 +85,24 @@ export class CardsCompComp extends CCComp {
|
||||
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择装备"
|
||||
this.equip_select(data)
|
||||
break
|
||||
case GameEvent.EnhancementSelect:
|
||||
console.log("[CardsComp]:显示强化选择卡牌")
|
||||
this.node.getChildByName("btns").getChildByName("cancel").active=true
|
||||
this.node.getChildByName("top").getChildByName("title").getChildByName("Label").getComponent(Label).string="选择强化"
|
||||
this.enhancement_select(data)
|
||||
break
|
||||
}
|
||||
|
||||
if(!is_refresh) this.show()
|
||||
|
||||
}
|
||||
|
||||
enhancement_select(data:any){
|
||||
let list=getEnhancement([0,0,0,0],3)
|
||||
console.log("[CardsComp]:强化选择卡牌列表",list)
|
||||
this.card1c.enhancement_select(data[0])
|
||||
this.card2c.enhancement_select(data[1])
|
||||
this.card3c.enhancement_select(data[2])
|
||||
}
|
||||
hero_select(data:any){
|
||||
let list=[]
|
||||
if(data.is_master){ //1是主将,0 是伙伴
|
||||
|
||||
Reference in New Issue
Block a user