refactor: 整理技能与战斗相关的配置与逻辑

1.  新增技能飞行距离配置项,支持自定义直线技能飞行距离
2.  调整英雄后退击退范围从30改为20
3.  重构击退逻辑,统一敌我双方的边界钳制处理
4.  优化Boss数值配置,固定基础面板为初始英雄2倍强度
5.  修正技能6006的动画资源引用为atk1
6.  调整近战英雄默认停火距离从80改为60
7.  更新注释文档与配置注释,优化代码可读性
This commit is contained in:
panFD
2026-08-14 00:36:26 +08:00
parent 4fee02d82e
commit df0dedba75
12 changed files with 301 additions and 55 deletions

View File

@@ -74,6 +74,9 @@ export class SMoveDataComp extends ecs.Comp {
/** 是否自动销毁(到达目标后) */
autoDestroy: boolean = true;
/** 直线飞行距离(仅 runType=linear 生效,<=0 时延长终点飞出屏幕) */
distance: number = 0;
reset() {
this.startPos.set(0, 0, 0);
@@ -98,6 +101,7 @@ export class SMoveDataComp extends ecs.Comp {
this.startTime = 0;
this.totalTime = 0;
this.autoDestroy = true;
this.distance = 0;
}
/**