chore: 调整调试日志开关状态

修复 HeroAttrsComp 与 HeroAtkSystem 中 debugMode 默认值的矛盾,统一将系统调试关闭而组件调试开启。同时在 Hero 创建日志中增加 is_master 字段输出,便于追踪主角创建逻辑。
This commit is contained in:
walkpan
2026-02-04 20:57:18 +08:00
parent e8588ded76
commit 7812855ad3
3 changed files with 4 additions and 5 deletions

View File

@@ -86,7 +86,7 @@ export class Hero extends ecs.Entity {
model.rangeType = hero.rangeType;
// 只有主角才挂载天赋组件
if (is_master) {
mLogger.log(this.debugMode,`[Hero] 主角创建, uuid=${uuid}`);
mLogger.log(this.debugMode,`[Hero] 主角创建, uuid=${uuid},is_master=${is_master}`);
this.add(TalComp);
this.add(HeroMasterComp)
const talComp = this.get(TalComp);