refactor(属性): 统一默认属性定义并移除调试属性

- 新增 defaultAttrs 对象集中定义 BACK_CHANCE、DODGE、CON_RES 的默认值
- 修改 Hero 和 Monster 初始化逻辑,使用 defaultAttrs 代替硬编码值
- 移除 HeroAttrsComp 中未使用的 debugMode 装饰器属性
- 简化日志消息,移除重复的组件名前缀
- 修复 SingletonModuleComp 中属性名错误(speed 改为 dodge)
This commit is contained in:
walkpan
2026-02-06 20:38:34 +08:00
parent 84963f6a3b
commit 369c10cf62
5 changed files with 16 additions and 12 deletions

View File

@@ -123,7 +123,7 @@ export class SingletonModuleComp extends ecs.Comp {
def:0,
ap:0,
crt:0,
speed:0,
dodge:0,
skills:[],
buff:[],
tal:[],