去掉局内经验 触发技能设定,没必要有局内技能设定,后期可以加入随机技能英雄,增加娱乐性

This commit is contained in:
2024-11-25 09:44:42 +08:00
parent 2d4d564c1f
commit b9548a0777
6 changed files with 270 additions and 1434 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -79,12 +79,6 @@ export class SingletonModuleComp extends ecs.Comp {
h_up_exp:10, h_up_exp:10,
h_up:5, //每次增加的hp量 h_up:5, //每次增加的hp量
hp:0, hp:0,
s_exp:0, //场地技能经验
s_up_exp:10,
s_up:5,
d_exp:0, //特殊经验
d_up_exp:10,
d_up:5,
ma_exp:0, //敌方攻击经验 ma_exp:0, //敌方攻击经验
ma_up_exp:10, ma_up_exp:10,
ma_up:5, ma_up:5,
@@ -93,13 +87,6 @@ export class SingletonModuleComp extends ecs.Comp {
mh_up_exp:10, mh_up_exp:10,
mh_up:5, mh_up:5,
mhp:0, mhp:0,
ms_exp:0, //敌方场地技能经验
ms_up_exp:10,
ms_up:5,
md_exp:0, //敌方特殊经验
md_up_exp:10,
md_up:5,
reward_num:0, //怪物死亡数 reward_num:0, //怪物死亡数
reward_gold:0, reward_gold:0,
reward_exp:0, reward_exp:0,

View File

@@ -6,18 +6,18 @@ type:
*/ */
export const Items={ export const Items={
1001:{uuid: 1001,path: "1001",type: 1,r_num:10,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:"提升普通远程英雄等级", }, 1002:{uuid: 1002,path: "1001",type: 1,r_num:10,name: "远程卷轴",info:"提升普通远程英雄等级", },
1003:{uuid: 1003,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:"提升<传说>近战英雄等级", }, 1004:{uuid: 1004,path: "1001",type: 1,r_num:10,name: "<传说>坦克卷轴",info:"提升<传说>坦克型英雄等级", },
1005:{uuid: 1005,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:"提升<传说>辅助英雄等级", }, 1006:{uuid: 1006,path: "1001",type: 1,r_num:10,name: "<传说>辅助卷轴",info:"提升<传说>辅助英雄等级", },
1007:{uuid: 1007,path: "1001",type: 1,r_num:1,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:"普通远程英雄升星", }, 1008:{uuid: 1008,path: "1001",type: 1,r_num:1,name: "远程原石",info:"普通远程英雄升星", },
1009:{uuid: 1009,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:"<传说>近战英雄升星", }, 1010:{uuid: 1010,path: "1001",type: 1,r_num:1,name: "<传说>坦克原石",info:"<传说>坦克型英雄升星", },
1011:{uuid: 1011,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:"<传说>辅助英雄升星", }, 1012:{uuid: 1012,path: "1001",type: 1,r_num:1,name: "<传说>辅助原石",info:"<传说>辅助英雄升星", },
1013:{uuid: 1013,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:"<高级>英雄召唤券,召唤传说英雄机率提升", }, 1014:{uuid: 1014,path: "1001",type: 1,r_num:1,name: "<高级>召唤券",info:"<高级>英雄召唤券,召唤传说英雄机率提升", },
1015:{uuid: 1015,path: "1001",type: 1,r_num:1,name: "<传说>召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", }, 1015:{uuid: 1015,path: "1001",type: 1,r_num:1,name: "<传说>召唤券",info:"<传说>英雄召唤券,召唤传说英雄机率大幅提升", },

View File

@@ -438,12 +438,18 @@ export class HeroViewComp extends CCComp {
if(this.box_group==BoxSet.HERO){ if(this.box_group==BoxSet.HERO){
if(this.type == 1)smc.vmdata.mission.a_exp +=exp if(this.type == 1)smc.vmdata.mission.a_exp +=exp
if(this.type == 2)smc.vmdata.mission.h_exp +=exp if(this.type == 2)smc.vmdata.mission.h_exp +=exp
if(this.type == 3)smc.vmdata.mission.s_exp +=exp if(this.type == 3){
smc.vmdata.mission.a_exp +=exp
smc.vmdata.mission.h_exp +=exp
}
} }
if(this.box_group==BoxSet.MONSTER){ if(this.box_group==BoxSet.MONSTER){
if(this.type == 1)smc.vmdata.mission.ma_exp +=exp if(this.type == 1)smc.vmdata.mission.ma_exp +=exp
if(this.type == 2)smc.vmdata.mission.mh_exp +=exp if(this.type == 2)smc.vmdata.mission.mh_exp +=exp
if(this.type == 3)smc.vmdata.mission.ms_exp +=exp if(this.type == 3){
smc.vmdata.mission.ma_exp +=exp
smc.vmdata.mission.mh_exp +=exp
}
} }
} }
//使用max_skill //使用max_skill

View File

@@ -86,18 +86,14 @@ export class MissionComp extends CCComp {
smc.vmdata.mission.is_defeat=false smc.vmdata.mission.is_defeat=false
smc.vmdata.mission.a_exp=0 //近战经验 smc.vmdata.mission.a_exp=0 //近战经验
smc.vmdata.mission.h_exp=0 //远程经验 smc.vmdata.mission.h_exp=0 //远程经验
smc.vmdata.mission.s_exp=0 //辅助经验
smc.vmdata.mission.ma_exp=0 //敌方近战经验 smc.vmdata.mission.ma_exp=0 //敌方近战经验
smc.vmdata.mission.mh_exp=0 //敌方远程经验 smc.vmdata.mission.mh_exp=0 //敌方远程经验
smc.vmdata.mission.ms_exp=0 //敌方辅助经验
this.msk={ on :false, uuid:1001,type:1,lv: 1} this.msk={ on :false, uuid:1001,type:1,lv: 1}
this.mmsk={ on :false, uuid:1001,type:1,lv: 1} this.mmsk={ on :false, uuid:1001,type:1,lv: 1}
this.node.getChildByName("exp").getChildByName("ap").active = true this.node.getChildByName("exp").getChildByName("ap").active = true
this.node.getChildByName("exp").getChildByName("hp").active = true this.node.getChildByName("exp").getChildByName("hp").active = true
this.node.getChildByName("exp").getChildByName("mskill").active = true
this.node.getChildByName("mexp").getChildByName("ap").active = true this.node.getChildByName("mexp").getChildByName("ap").active = true
this.node.getChildByName("mexp").getChildByName("hp").active = true this.node.getChildByName("mexp").getChildByName("hp").active = true
this.node.getChildByName("mexp").getChildByName("mskill").active = true
this.mon_refresh() this.mon_refresh()
this.heros_call() this.heros_call()
} }
@@ -165,21 +161,6 @@ export class MissionComp extends CCComp {
} }
} }
select_msk(type:number){
smc.vmdata.mission.s_exp=0
let sk:any=RandomManager.instance.getRandomByObjectList(MSlist[type],1)
this.msk.uuid=sk[0]
let skill=ecs.getEntity<MSkill>(MSkill)
skill.load(BoxSet.HERO,this.msk.uuid)
}
select_mmsk(type:number){
smc.vmdata.mission.ms_exp=0
let sk:any=RandomManager.instance.getRandomByObjectList(MSlist[type],1)
this.mmsk.uuid=sk[0]
let mskill=ecs.getEntity<MSkill>(MSkill)
mskill.load(BoxSet.MONSTER,this.mmsk.uuid)
}
do_reward(){ do_reward(){
console.log("do_reward") console.log("do_reward")