装备和技能获取逻辑改变

This commit is contained in:
2025-07-01 23:30:00 +08:00
parent bdb0ca5bb1
commit 8c1216f24d
7 changed files with 13127 additions and 8477 deletions

View File

@@ -43,6 +43,7 @@ export class MissionComp extends CCComp {
smc.vmdata.mission_data.gold+=(smc.vmdata.mission_data.add_gold+smc.vmdata.mission_data.buff_add_gold)
}
}
}
@@ -55,37 +56,7 @@ export class MissionComp extends CCComp {
let node= this.node.getChildByName("new_hero")
tween(node).to(0.3, {position:v3(280,node.position.y,1)}).start()
}
if(wave==FightSet.BOSS_WAVE_UP_1){
console.log("[任务系统] BOSS_WAVE_UP_1 装备选择 :",wave,FightSet.BOSS_WAVE_UP_1)
}
if(wave==FightSet.BOSS_WAVE_UP_2){
console.log("[任务系统] BOSS_WAVE_UP_2 装备选择 :",wave,FightSet.BOSS_WAVE_UP_2)
}
if(wave==FightSet.BOSS_WAVE_UP_3){
console.log("[任务系统] BOSS_WAVE_UP_3 装备选择 :",wave,FightSet.BOSS_WAVE_UP_3)
}
if(wave==FightSet.EQUIP_WAVE_UP_1){
console.log("[任务系统] EQUIP_WAVE_UP_1 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_1)
}
if(wave==FightSet.EQUIP_WAVE_UP_2){
console.log("[任务系统] EQUIP_WAVE_UP_2 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_2)
}
if(wave==FightSet.EQUIP_WAVE_UP_3){
console.log("[任务系统] EQUIP_WAVE_UP_3 装备选择 :",wave,FightSet.EQUIP_WAVE_UP_3)
}
if(wave==FightSet.SKILL_WAVE_UP_1){
console.log("[任务系统] SKILL_WAVE_UP_1 技能选择 :",wave,FightSet.SKILL_WAVE_UP_1)
this.show_skill_get("skill1")
}
if(wave==FightSet.SKILL_WAVE_UP_2){
console.log("[任务系统] SKILL_WAVE_UP_2 技能选择 :",wave,FightSet.SKILL_WAVE_UP_2)
this.show_skill_get("skill2")
}
if(wave==FightSet.SKILL_WAVE_UP_3){
console.log("[任务系统] SKILL_WAVE_UP_3 技能选择 :",wave,FightSet.SKILL_WAVE_UP_3)
this.show_skill_get("skill3")
}
}
async mission_start(){
@@ -120,21 +91,10 @@ export class MissionComp extends CCComp {
oops.message.dispatchEvent(GameEvent.FightEnd)
}
private show_skill_get(e:string){
this.node.getChildByName("equips").getChildByName("boxs").getChildByName(e).getChildByName("get").active =true
}
private hide_skill_get(e:any,data:string){
this.node.getChildByName("equips").getChildByName("boxs").getChildByName(data).getChildByName("get").active =false
}
private show_skill_change(e:string){
this.node.getChildByName("equips").getChildByName("boxs").getChildByName(e).getChildByName("change").active =true
}
private hide_skill_change(e:any,data:any){
this.node.getChildByName("equips").getChildByName("boxs").getChildByName(data).getChildByName("change").active =false
}
fight_end(){
console.log("任务结束")
@@ -160,12 +120,7 @@ export class MissionComp extends CCComp {
smc.vmdata.boss = JSON.parse(JSON.stringify(VmInfo));
this.GlodAddTimer=new Timer(smc.vmdata.mission_data.refrsh_time)
this.hide_call_friend()
this.hide_skill_get(null,"skill1")
this.hide_skill_get(null,"skill2")
this.hide_skill_get(null,"skill3")
this.hide_skill_change(null,"skill1")
this.hide_skill_change(null,"skill2")
this.hide_skill_change(null,"skill3")
}