refactor(mission): 优化肉鸽关卡及怪物生成逻辑

- 将出战英雄配置由数组改为单个英雄编号,简化相关接口和数据结构
- 统一出战英雄设置和获取方法,移除冗余多英雄管理逻辑
- 增加怪物生成时的强度倍率参数,支持怪物属性随关卡进度递增调整
- 扩展肉鸽模式配置,实现关卡类型区分及怪物数量动态计算
- 新增随机事件系统,支持事件关卡随机触发宝箱、陷阱、增益、减益等事件
- 优化怪物生成流程,整合怪物配置、等级和强度倍率信息,增强游戏体验
This commit is contained in:
2025-10-19 17:18:22 +08:00
parent 928f1dbe16
commit 3f6b94af0e
8 changed files with 240 additions and 217 deletions

View File

@@ -42,8 +42,7 @@ export class MissionHeroCompComp extends CCComp {
// this.current_hero_uuid=0
smc.vmdata.mission_data.hero_num=0
// console.log("[MissionHeroComp]:fight_ready",smc.fight_heros,Object.keys(smc.fight_heros).length)
let heros:any = smc.fight_heros
this.addHero(heros[0],false)
this.addHero(smc.fight_hero,false)
// for(let i=0;i<Object.keys(heros).length;i++){
// if(heros[i]!=0){
// // console.log("[MissionHeroComp]:fight_ready",heros[i])