有错误,需要解决
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -6,21 +6,21 @@ type:
|
||||
*/
|
||||
|
||||
export const Items={
|
||||
1001:{uuid: 1001,path: "1001",type: 1,name: "近战经验卷轴",info:"提升普通近战英雄等级", },
|
||||
1002:{uuid: 1002,path: "1001",type: 1,name: "远程经验卷轴",info:"提升普通远程英雄等级", },
|
||||
1003:{uuid: 1003,path: "1001",type: 1,name: "辅助经验卷轴",info:"提升普通辅助英雄等级", },
|
||||
1004:{uuid: 1004,path: "1001",type: 1,name: "<传说>近战经验卷轴",info:"提升<传说>近战英雄等级", },
|
||||
1005:{uuid: 1005,path: "1001",type: 1,name: "<传说>远程经验卷轴",info:"提升<传说>远程英雄等级", },
|
||||
1006:{uuid: 1006,path: "1001",type: 1,name: "<传说>辅助经验卷轴",info:"提升<传说>辅助英雄等级", },
|
||||
1007:{uuid: 1007,path: "1001",type: 1,name: "近战英雄原石",info:"普通近战英雄升星", },
|
||||
1008:{uuid: 1008,path: "1001",type: 1,name: "远程英雄原石",info:"普通远程英雄升星", },
|
||||
1009:{uuid: 1009,path: "1001",type: 1,name: "辅助英雄原石",info:"普通辅助英雄升星", },
|
||||
1010:{uuid: 1010,path: "1001",type: 1,name: "<传说>近战英雄原石",info:"<传说>近战英雄升星", },
|
||||
1011:{uuid: 1011,path: "1001",type: 1,name: "<传说>远程英雄原石",info:"<传说>远程英雄升星", },
|
||||
1012:{uuid: 1012,path: "1001",type: 1,name: "<传说>辅助英雄原石",info:"<传说>辅助英雄升星", },
|
||||
1013:{uuid: 1013,path: "1001",type: 1,name: "英雄召唤券",info:"普通英雄召唤券,无法召唤传说英雄", },
|
||||
1014:{uuid: 1014,path: "1001",type: 1,name: "<高级>英雄召唤券",info:"<高级>英雄召唤券,召唤传说英雄机率提升", },
|
||||
1015:{uuid: 1015,path: "1001",type: 1,name: "<传说>英雄召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", },
|
||||
1001:{uuid: 1001,path: "1001",type: 1,r_num:10,name: "近战经验卷轴",info:"提升普通近战英雄等级", },
|
||||
1002:{uuid: 1002,path: "1001",type: 1,r_num:10,name: "远程经验卷轴",info:"提升普通远程英雄等级", },
|
||||
1003:{uuid: 1003,path: "1001",type: 1,r_num:10,name: "辅助经验卷轴",info:"提升普通辅助英雄等级", },
|
||||
1004:{uuid: 1004,path: "1001",type: 1,r_num:10,name: "<传说>近战经验卷轴",info:"提升<传说>近战英雄等级", },
|
||||
1005:{uuid: 1005,path: "1001",type: 1,r_num:10,name: "<传说>远程经验卷轴",info:"提升<传说>远程英雄等级", },
|
||||
1006:{uuid: 1006,path: "1001",type: 1,r_num:10,name: "<传说>辅助经验卷轴",info:"提升<传说>辅助英雄等级", },
|
||||
1007:{uuid: 1007,path: "1001",type: 1,r_num:1,name: "近战英雄原石",info:"普通近战英雄升星", },
|
||||
1008:{uuid: 1008,path: "1001",type: 1,r_num:1,name: "远程英雄原石",info:"普通远程英雄升星", },
|
||||
1009:{uuid: 1009,path: "1001",type: 1,r_num:1,name: "辅助英雄原石",info:"普通辅助英雄升星", },
|
||||
1010:{uuid: 1010,path: "1001",type: 1,r_num:1,name: "<传说>近战英雄原石",info:"<传说>近战英雄升星", },
|
||||
1011:{uuid: 1011,path: "1001",type: 1,r_num:1,name: "<传说>远程英雄原石",info:"<传说>远程英雄升星", },
|
||||
1012:{uuid: 1012,path: "1001",type: 1,r_num:1,name: "<传说>辅助英雄原石",info:"<传说>辅助英雄升星", },
|
||||
1013:{uuid: 1013,path: "1001",type: 1,r_num:1,name: "英雄召唤券",info:"普通英雄召唤券,无法召唤传说英雄", },
|
||||
1014:{uuid: 1014,path: "1001",type: 1,r_num:1,name: "<高级>英雄召唤券",info:"<高级>英雄召唤券,召唤传说英雄机率提升", },
|
||||
1015:{uuid: 1015,path: "1001",type: 1,r_num:1,name: "<传说>英雄召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", },
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export const MissionSet = [
|
||||
|
||||
|
||||
export const MissionReward = {
|
||||
1:[1001,1002,1003,1004,1005],
|
||||
2:[1001],
|
||||
3:[1001],
|
||||
1:[1001,1002,1003,1013],
|
||||
2:[1004,1005,1006,1007,1008,1009,1014],
|
||||
3:[1010,1011,1012,1014],
|
||||
}
|
||||
|
||||
@@ -36,10 +36,18 @@ export class VictoryComp extends CCComp {
|
||||
this.node.getChildByName("Node").getChildByName("defeat").active = true
|
||||
}
|
||||
getReward(){
|
||||
let reward:any = RandomManager.instance.getRandomByObjectList(MissionReward[this.reward_lv], 1);
|
||||
this.rerawd_item =Items[reward[0]]
|
||||
// console.log("getReward:",this.rerawd_item)
|
||||
this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=this.reward_num.toString()
|
||||
let reward:any = RandomManager.instance.getRandomByObjectList(MissionReward[this.reward_lv], 2);
|
||||
let item1 =Items[reward[0]]
|
||||
let item2 =Items[reward[1]]
|
||||
let r1_num=0
|
||||
let r2_num=0
|
||||
console.log("getReward:",reward,item1,item2)
|
||||
this.node.getChildByName("Node").getChildByName("item2").getChildByName("num").getComponent(Label).string=item1.r_num.toString()
|
||||
this.node.getChildByName("Node").getChildByName("item2").getChildByName("name").getComponent(Label).string=item1.name.toString()
|
||||
this.node.getChildByName("Node").getChildByName("item3").getChildByName("num").getComponent(Label).string=item2.r_num.toString()
|
||||
this.node.getChildByName("Node").getChildByName("item3").getChildByName("name").getComponent(Label).string=item2.r_num.toString()
|
||||
|
||||
|
||||
}
|
||||
end_mission(){
|
||||
this.node.getChildByName("Node").active=false
|
||||
|
||||
Reference in New Issue
Block a user