修改了挺多, 继续完善 战斗流程设计

This commit is contained in:
2025-06-13 10:59:41 +08:00
parent 3312c2addf
commit 2376c952d2
12 changed files with 2544 additions and 1640 deletions

View File

@@ -9,6 +9,7 @@ import { RandomManager } from "db://oops-framework/core/common/random/RandomMana
import { Timer } from "db://oops-framework/core/common/timer/Timer";
import { smc } from "../common/SingletonModuleComp";
import { GameEvent } from "../common/config/GameEvent";
import { oops } from "db://oops-framework/core/Oops";
const { ccclass, property } = _decorator;
@@ -52,7 +53,8 @@ export class MissionMonCompComp extends CCComp {
mon_refresh(){
console.log("mon_refresh:start load monster lv :",smc.mission.lv)
oops.message.dispatchEvent(GameEvent.WaveUpdate)
console.log("怪物登场,当前波次 :",smc.vmdata.mission_data.current_wave)
let positions = [0, 1, 2];
positions.forEach(pos => {
let x = RandomManager.instance.getRandomInt(0, Missions[0].length, 1);