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

@@ -101,7 +101,6 @@ export class Hero extends ecs.Entity {
model.base_def = hero.def;
model.base_hp = hero.hp;
model.base_mp = hero.mp;
model.base_dis = hero.dis;
model.base_speed = hero.speed;
// 初始化属性数组
@@ -112,7 +111,6 @@ export class Hero extends ecs.Entity {
model.Attrs[Attrs.DEF] = model.base_def;
model.Attrs[Attrs.AP] = model.base_ap;
model.Attrs[Attrs.SPEED] = hero.speed;
model.Attrs[Attrs.DIS] = hero.dis;
// 初始化 buff/debuff 系统
model.initAttrs();