dd
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -38,42 +38,60 @@ export const SkillSet={
|
||||
9003:{uuid: 9003,path: "1001",type: 2,level: 1,name: "魔法波动",sp_name:"base3",info:"释放一个魔法球攻击敌人",
|
||||
dis:720,count:1,atk:0,hp:0,shield:0,sd:10,cd:3,bsd:10,bcd:1,sk_uuid:1001,sk_count:0,speed:450,},
|
||||
|
||||
6001:{uuid: 6001,path: "6001",type: 92,level: 1,name: "普通单手剑",sp_name:"",
|
||||
6001:{uuid: 6001,path: "6001",type: 92,level: 1,name: "普通单手剑",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6002:{uuid: 6002,path: "6002",type: 93,level: 3,name: "精致单手剑",sp_name:"",
|
||||
|
||||
6002:{uuid: 6002,path: "6002",type: 93,level: 3,name: "精致单手剑",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6003:{uuid: 6003,path: "6003",type: 94,level: 3,name: "魔法单手剑",sp_name:"",
|
||||
|
||||
6003:{uuid: 6003,path: "6003",type: 94,level: 3,name: "魔法单手剑",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:10,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6004:{uuid: 6004,path: "6004",type: 92,level: 1,name: "普通木盾",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6005:{uuid: 6005,path: "6005",type: 93,level: 3,name: "精致钢盾",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6006:{uuid: 6006,path: "6006",type: 94,level: 3,name: "魔法盾",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6101:{uuid: 6101,path: "6101",type: 91,level: 1,name: "初级药水",sp_name:"",
|
||||
|
||||
6004:{uuid: 6004,path: "6004",type: 92,level: 1,name: "普通木盾",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6005:{uuid: 6005,path: "6005",type: 93,level: 3,name: "精致钢盾",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6006:{uuid: 6006,path: "6006",type: 94,level: 3,name: "魔法盾",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:30,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6101:{uuid: 6101,path: "6101",type: 91,level: 1,name: "初级药水",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6102:{uuid: 6102,path: "6102",type: 93,level: 3,name: "高级药水",sp_name:"",
|
||||
|
||||
6102:{uuid: 6102,path: "6102",type: 93,level: 3,name: "高级药水",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6103:{uuid: 6103,path: "6103",type: 94,level: 3,name: "活力药水",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6210:{uuid: 6210,path: "6210",type: 92,level: 3,name: "普通攻击石",sp_name:"",
|
||||
|
||||
6103:{uuid: 6103,path: "6103",type: 94,level: 3,name: "活力药水",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:0,shield:0,sd:30,cd:1,bsd:5,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6210:{uuid: 6210,path: "6210",type: 92,level: 3,name: "普通攻击石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6211:{uuid: 6211,path: "6211",type: 93,level: 4,name: "特效攻击石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6212:{uuid: 6212,path: "6212",type: 94,level: 4,name: "精炼攻击石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6213:{uuid: 6213,path: "6213",type: 92,level: 3,name: "普通生命石",sp_name:"",
|
||||
|
||||
6211:{uuid: 6211,path: "6211",type: 93,level: 4,name: "特效攻击石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:0,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6212:{uuid: 6212,path: "6212",type: 94,level: 4,name: "精炼攻击石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:0,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6213:{uuid: 6213,path: "6213",type: 92,level: 3,name: "普通生命石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6214:{uuid: 6214,path: "6214",type: 93,level: 4,name: "特效生命石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6215:{uuid: 6215,path: "6215",type: 94,level: 4,name: "精炼生命石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6216:{uuid: 6216,path: "6216",type: 92,level: 3,name: "普通全能石",sp_name:"",
|
||||
|
||||
6214:{uuid: 6214,path: "6214",type: 93,level: 4,name: "特效生命石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:0,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6217:{uuid: 6217,path: "6217",type: 93,level: 4,name: "特效全能石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
6218:{uuid: 6218,path: "6218",type: 94,level: 4,name: "精炼全能石",sp_name:"",
|
||||
dis:720,count:1,atk:0,hp:50,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6215:{uuid: 6215,path: "6215",type: 94,level: 4,name: "精炼生命石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6216:{uuid: 6216,path: "6216",type: 92,level: 3,name: "普通全能石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6217:{uuid: 6217,path: "6217",type: 93,level: 4,name: "特效全能石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
6218:{uuid: 6218,path: "6218",type: 94,level: 4,name: "精炼全能石",sp_name:"",info:"",
|
||||
dis:720,count:1,atk:5,hp:30,shield:0,sd:30,cd:1,bsd:0,bcd:1,sk_uuid:1001,sk_count:0,speed:350, },
|
||||
|
||||
}
|
||||
|
||||
export const AllItems={
|
||||
|
||||
@@ -64,7 +64,9 @@ export class HeroCardViewComp extends CCComp {
|
||||
this.show_info()
|
||||
}
|
||||
show_info(){
|
||||
console.log("show_info",this.card_uid)
|
||||
let parent = this.node.parent.parent
|
||||
let node =parent.getChildByName("item_box")
|
||||
if(this.card_type == 2){
|
||||
smc.vm_data.item_box.info = SkillSet[this.card_uid].info
|
||||
smc.vm_data.item_box.name = SkillSet[this.card_uid].name
|
||||
@@ -72,7 +74,24 @@ export class HeroCardViewComp extends CCComp {
|
||||
smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd
|
||||
smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk
|
||||
smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp
|
||||
parent.getChildByName("item_box").active=true
|
||||
node.active=true
|
||||
}
|
||||
if(this.card_type == 3){
|
||||
console.log(SkillSet[this.card_uid])
|
||||
smc.vm_data.item_box.info = SkillSet[this.card_uid].info
|
||||
smc.vm_data.item_box.name = SkillSet[this.card_uid].name
|
||||
smc.vm_data.item_box.skillcd = SkillSet[this.card_uid].cd
|
||||
smc.vm_data.item_box.skillsd = SkillSet[this.card_uid].sd
|
||||
smc.vm_data.item_box.atk = SkillSet[this.card_uid].atk
|
||||
smc.vm_data.item_box.hp = SkillSet[this.card_uid].hp
|
||||
smc.vm_data.item_box.shield = SkillSet[this.card_uid].shield
|
||||
node.active=true
|
||||
if(SkillSet[this.card_uid].shield > 0){
|
||||
node.getChildByName("data").getChildByName("shield").active=true
|
||||
}
|
||||
if(SkillSet[this.card_uid].hp > 0){
|
||||
node.getChildByName("data").getChildByName("hp").active=true
|
||||
}
|
||||
}
|
||||
}
|
||||
onTouchEnd(){
|
||||
@@ -82,8 +101,11 @@ export class HeroCardViewComp extends CCComp {
|
||||
this.node.setPosition(this.pos_x,this.pos_y);
|
||||
}
|
||||
let parent = this.node.parent.parent
|
||||
|
||||
parent.getChildByName("item_box").active=false
|
||||
let node = parent.getChildByName("item_box")
|
||||
node.active=false
|
||||
node.getChildByName("data").getChildByName("shield").active=false
|
||||
node.getChildByName("data").getChildByName("hp").active=false
|
||||
|
||||
}
|
||||
|
||||
private do_active_card_eid(event: string, args: any) {
|
||||
|
||||
@@ -77,7 +77,7 @@ export class MonsterViewComp extends CCComp {
|
||||
|
||||
box_group:number = 2;
|
||||
atk_range:number = 150;
|
||||
private timer:Timer = new Timer(0.1); //计时器
|
||||
private timer:Timer = new Timer(1); //计时器
|
||||
is_dead:boolean = false; //是否摧毁
|
||||
is_stop:boolean = false;
|
||||
is_atking:boolean = false;
|
||||
|
||||
Reference in New Issue
Block a user