refactor(mission): 优化肉鸽关卡及怪物生成逻辑
- 将出战英雄配置由数组改为单个英雄编号,简化相关接口和数据结构 - 统一出战英雄设置和获取方法,移除冗余多英雄管理逻辑 - 增加怪物生成时的强度倍率参数,支持怪物属性随关卡进度递增调整 - 扩展肉鸽模式配置,实现关卡类型区分及怪物数量动态计算 - 新增随机事件系统,支持事件关卡随机触发宝箱、陷阱、增益、减益等事件 - 优化怪物生成流程,整合怪物配置、等级和强度倍率信息,增强游戏体验
This commit is contained in:
@@ -18,7 +18,7 @@ export class HInfoComp extends Component {
|
||||
this.ap_node=this.node.getChildByName("info").getChildByName("base").getChildByName("ap").getChildByName("num")
|
||||
this.hp_node=this.node.getChildByName("info").getChildByName("base").getChildByName("hp").getChildByName("num")
|
||||
this.def_node=this.node.getChildByName("info").getChildByName("base").getChildByName("def").getChildByName("num")
|
||||
this.h_uuid=smc.fight_heros[0]
|
||||
this.h_uuid=smc.fight_hero
|
||||
this.update_data(this.h_uuid)
|
||||
}
|
||||
update(deltaTime: number) {
|
||||
|
||||
Reference in New Issue
Block a user