refactor(hero&monster): 统一使用dis字段获取攻击距离
移除HeroDisVal映射表,改为直接从实体组件读取配置的dis属性作为攻击距离,同时补全所有英雄和怪物配置中的dis字段
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user