This commit is contained in:
2025-06-25 23:57:19 +08:00
parent 7363952dae
commit 862777a9c7
6 changed files with 4486 additions and 4792 deletions

View File

@@ -30,6 +30,7 @@ export class MissionComp extends CCComp {
this.on(GameEvent.MissionEnd,this.mission_end,this)
// this.on(GameEvent.CardsClose,this.after_used_skill_card,this)
this.on(GameEvent.WaveUpdate,this.on_mon_wave_update,this)
this.on(GameEvent.FriendCalled,this.friend_called,this)
}
protected update(dt: number): void {
@@ -51,7 +52,7 @@ export class MissionComp extends CCComp {
let wave=smc.vmdata.mission_data.current_wave
if(wave==FightSet.FRIEND_WAVE_UP){
console.log("[任务系统] FRIEND_WAVE_UP 英雄选择 :",wave,FightSet.FRIEND_WAVE_UP)
this.to_hero_select()
this.to_call_friend()
}
if(wave==FightSet.BOSS_WAVE_UP_1){
console.log("[任务系统] BOSS_WAVE_UP_1 装备选择 :",wave,FightSet.BOSS_WAVE_UP_1)
@@ -88,6 +89,7 @@ export class MissionComp extends CCComp {
async mission_start(){
oops.message.dispatchEvent(GameEvent.FightReady)
this.node.getChildByName("herobar").getChildByName("fbar").active=false //隐藏伙伴栏
this.node.active=true
this.data_init()
this.hart_hero_load()
@@ -104,10 +106,12 @@ export class MissionComp extends CCComp {
// oops.message.dispatchEvent(GameEvent.HeroSkillSelect)
}
to_hero_select(){
to_call_friend(){
oops.message.dispatchEvent(GameEvent.HeroSelect)
}
friend_called(){
this.node.getChildByName("herobar").getChildByName("fbar").active=true
}
to_fight(){
smc.vmdata.mission_data.in_fight=true
oops.message.dispatchEvent(GameEvent.FightStart) //MissionMonComp 监听刷怪