去掉大部分 调试信息
This commit is contained in:
@@ -33,7 +33,7 @@ export class Monster extends ecs.Entity {
|
||||
load(pos: Vec3 = Vec3.ZERO,scale:number = 1,uuid:number=1001,is_boss:boolean=false,is_call:boolean=false,enhancement?: any, stageMultipliers?: any) {
|
||||
scale=-1
|
||||
let box_group=BoxSet.MONSTER
|
||||
console.log("mon load",uuid)
|
||||
// console.log("mon load",uuid)
|
||||
// this.addComponents<ecs.Comp>( MonModelComp, BattleMoveComp);
|
||||
var scene = smc.map.MapView.scene;
|
||||
this.brith_light(pos,scene)
|
||||
@@ -53,7 +53,7 @@ export class Monster extends ecs.Entity {
|
||||
move.direction = -1; // 向左移动
|
||||
move.targetX = -800; // 左边界
|
||||
smc.vmdata.mission_data.mon_num++
|
||||
console.log("[Mon] mission_data.mon_num:",smc.vmdata.mission_data.mon_num)
|
||||
// console.log("[Mon] mission_data.mon_num:",smc.vmdata.mission_data.mon_num)
|
||||
}
|
||||
brith_light(pos:Vec3,scene:any){
|
||||
var path = "game/skills/map_birth";
|
||||
@@ -92,9 +92,9 @@ export class Monster extends ecs.Entity {
|
||||
if (stageMultipliers) {
|
||||
finalHp = Math.floor(baseHp * stageMultipliers.hp);
|
||||
finalAp = Math.floor(baseAp * stageMultipliers.attack);
|
||||
console.log(`[Monster]: 怪物${hero.name} 关卡倍数 - HP: ${baseHp} x ${stageMultipliers.hp.toFixed(2)} = ${finalHp}, AP: ${baseAp} x ${stageMultipliers.attack.toFixed(2)} = ${finalAp}`);
|
||||
// console.log(`[Monster]: 怪物${hero.name} 关卡倍数 - HP: ${baseHp} x ${stageMultipliers.hp.toFixed(2)} = ${finalHp}, AP: ${baseAp} x ${stageMultipliers.attack.toFixed(2)} = ${finalAp}`);
|
||||
} else {
|
||||
console.log(`[Monster]: 怪物${hero.name} 使用基础属性 - HP: ${finalHp}, AP: ${finalAp}`);
|
||||
// console.log(`[Monster]: 怪物${hero.name} 使用基础属性 - HP: ${finalHp}, AP: ${finalAp}`);
|
||||
}
|
||||
|
||||
hv.hp = hv.hp_max = finalHp;
|
||||
@@ -116,7 +116,7 @@ export class Monster extends ecs.Entity {
|
||||
|
||||
// 处理肉鸽模式的增强属性
|
||||
if (enhancement && enhancement.buffList && enhancement.buffList.length > 0) {
|
||||
console.log(`[Monster]: 怪物${hero.name}应用增强属性:`, enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
// console.log(`[Monster]: 怪物${hero.name}应用增强属性:`, enhancement.buffList.map((buff: any) => `${buff.name}:+${buff.value}`));
|
||||
enhancement.buffList.forEach((buff:any)=>{
|
||||
hv.apply_buff(buff.buffType, buff.value);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user