去掉大部分 调试信息
This commit is contained in:
@@ -106,7 +106,7 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
let level=smc.vmdata.mission_data.level
|
||||
const stageType = getStageType(currentStage,level);
|
||||
const monsterConfigs = getStageMonsterConfigs(currentStage,level);
|
||||
console.log(`[MissionMonComp]:第${currentStage}关 - ${stageType}类型,怪物数量: ${monsterConfigs.length}`);
|
||||
// console.log(`[MissionMonComp]:第${currentStage}关 - ${stageType}类型,怪物数量: ${monsterConfigs.length}`);
|
||||
this.generateMonstersFromStageConfig(monsterConfigs);
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
const currentStage = smc.data.mission;
|
||||
|
||||
// 设置怪物总数
|
||||
console.log("[MissionMonComp] generateMonstersFromStageConfig",monsterConfigs)
|
||||
// console.log("[MissionMonComp] generateMonstersFromStageConfig",monsterConfigs)
|
||||
if (!monsterConfigs || monsterConfigs.length === 0) {
|
||||
console.warn(`[MissionMonComp]:关卡${currentStage}配置中没有怪物信息`);
|
||||
return;
|
||||
@@ -139,13 +139,13 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
);
|
||||
});
|
||||
|
||||
console.log(`[MissionMonComp]:关卡${currentStage}将生成 ${monsterConfigs.length} 只怪物`);
|
||||
// console.log(`[MissionMonComp]:关卡${currentStage}将生成 ${monsterConfigs.length} 只怪物`);
|
||||
|
||||
// 输出增强属性信息
|
||||
monsterConfigs.forEach((monsterConfig: any) => {
|
||||
if (monsterConfig.enhancement && monsterConfig.enhancement.buffList.length > 0) {
|
||||
console.log(`[MissionMonComp]:怪物 ${monsterConfig.uuid} (${monsterConfig.type}) 拥有增强属性:`,
|
||||
monsterConfig.enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
// console.log(`[MissionMonComp]:怪物 ${monsterConfig.uuid} (${monsterConfig.type}) 拥有增强属性:`,
|
||||
// monsterConfig.enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -189,7 +189,7 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
|
||||
// 增加召唤计数
|
||||
this.spawnCount++;
|
||||
console.log(`[MissionMonComp]: 召唤第${this.spawnCount}只${monsterData.type}怪物,剩余队列: ${this.monsterQueue.length}`);
|
||||
// console.log(`[MissionMonComp]: 召唤第${this.spawnCount}只${monsterData.type}怪物,剩余队列: ${this.monsterQueue.length}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -211,13 +211,13 @@ export class MissionMonCompComp extends CCComp { // 添加刷怪队列 - 使
|
||||
|
||||
// 如果有增强属性,记录到控制台
|
||||
if (enhancement && enhancement.buffList && enhancement.buffList.length > 0) {
|
||||
console.log(`[MissionMonComp]: 怪物 ${uuid} 获得增强属性:`,
|
||||
enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
// console.log(`[MissionMonComp]: 怪物 ${uuid} 获得增强属性:`,
|
||||
// enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
}
|
||||
|
||||
// 如果有关卡倍数,记录到控制台
|
||||
if (stageMultipliers) {
|
||||
console.log(`[MissionMonComp]: 怪物 ${uuid} 关卡倍数 - HP: x${stageMultipliers.hp.toFixed(2)}, 攻击: x${stageMultipliers.attack.toFixed(2)}`);
|
||||
// console.log(`[MissionMonComp]: 怪物 ${uuid} 关卡倍数 - HP: x${stageMultipliers.hp.toFixed(2)}, 攻击: x${stageMultipliers.attack.toFixed(2)}`);
|
||||
}
|
||||
}
|
||||
/** 视图对象通过 ecs.Entity.remove(ModuleViewComp) 删除组件是触发组件处理自定义释放逻辑 */
|
||||
|
||||
Reference in New Issue
Block a user