refactor(hero&monster): 统一使用dis字段获取攻击距离

移除HeroDisVal映射表,改为直接从实体组件读取配置的dis属性作为攻击距离,同时补全所有英雄和怪物配置中的dis字段
This commit is contained in:
walkpan
2026-05-18 09:29:22 +08:00
parent 39316cf266
commit 3e84566f94
7 changed files with 43 additions and 45 deletions

View File

@@ -167,6 +167,7 @@ export class Monster extends ecs.Entity {
model.speed = hero.speed;
model.type = hero.type;
model.fac = FacSet.MON;
model.dis = hero.dis;
// 复制触发技能配置
model.call = hero.call;