feat(英雄AI): 重构英雄移动系统,基于攻击距离类型实现智能战术走位

1. 新增SkillRange枚举定义近/中/远程攻击类型
2. 在HeroAttrsComp和hero配置中添加rangeType字段
3. 重写HeroMoveSystem,根据rangeType实现差异化移动策略
4. 移除技能施放的攻击状态限制,优化AI决策逻辑
This commit is contained in:
walkpan
2026-01-06 18:26:18 +08:00
parent fcc2aaf0a0
commit bb28492550
6 changed files with 295 additions and 288 deletions

View File

@@ -83,7 +83,7 @@ export class Hero extends ecs.Entity {
model.fac = FacSet.HERO;
model.is_master = is_master;
model.is_friend = is_friend
model.rangeType = hero.rangeType;
// 只有主角才挂载天赋组件
if (is_master) {
this.add(TalComp);