feat: 添加天赋添加日志并更新天赋配置注释
- 在 TalComp.ts 的 addTal 方法中添加 console.log 用于调试 - 在 TalSet.ts 中为天赋类别添加注释以提升代码可读性
This commit is contained in:
@@ -143,10 +143,13 @@ export class TalComp extends ecs.Comp {
|
||||
desc: tConf.desc,
|
||||
cur: 0, // 当前累积值初始为0
|
||||
};
|
||||
console.log(`[TalComp]添加天赋成功,天赋ID:${uuid}`);
|
||||
}
|
||||
|
||||
checkTal() {
|
||||
return Object.keys(this.Tals).length > 0;
|
||||
}
|
||||
|
||||
getTriggers() {
|
||||
// 存储所有触发的天赋
|
||||
let Triggers: Record<string, TalSlot> = {};
|
||||
|
||||
Reference in New Issue
Block a user