refactor(英雄属性): 移除DIS属性及相关代码

移除英雄和怪物类中不再使用的DIS属性,包括初始化、赋值和引用代码
This commit is contained in:
panw
2026-01-15 16:37:26 +08:00
parent 4147f18c5b
commit 49537a086c
4 changed files with 2 additions and 10 deletions

View File

@@ -121,7 +121,6 @@ export class SingletonModuleComp extends ecs.Comp {
mp_max:100,
def:0,
ap:0,
dis:0,
crt:0,
speed:0,
skills:[],
@@ -343,7 +342,6 @@ export class SingletonModuleComp extends ecs.Comp {
h.mp_max = Math.floor(heroAttrs.Attrs[Attrs.MP_MAX] || 0);
h.def = Math.floor(heroAttrs.Attrs[Attrs.DEF] || 0);
h.ap = Math.floor(heroAttrs.Attrs[Attrs.AP] || 0);
h.dis = Math.floor(heroAttrs.Attrs[Attrs.DIS] || 0);
h.speed = Math.floor(heroAttrs.Attrs[Attrs.SPEED] || 0);
h.crt = Math.floor(heroAttrs.Attrs[Attrs.CRITICAL] || 0);
h.as = Math.floor(heroAttrs.Attrs[Attrs.AS] || 0);