fix(hero&move): 调整英雄基础移速并优化近战逻辑

将默认移速从800改为100,重构近战战斗移动逻辑:
1. 增加敌人存在校验,无敌人时恢复原编队战斗逻辑
2. 新增近战接触距离常量,让英雄贴近敌人后再停下攻击
3. 优化移动速度和停止位置计算,确保近战贴脸输出
This commit is contained in:
pan
2026-08-12 11:16:20 +08:00
parent 4594f673b4
commit 762dc91a11
2 changed files with 29 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ export class Hero extends ecs.Entity {
model.hp = model.hp_max = base_hp;
}
model.speed = hero.speed ?? 800;
model.speed = hero.speed ?? 100;
// 构建技能表并注入运行时冷却字段 ccd
model.skills = {};