fix: 调整英雄刘邦属性和技能范围,优化移动边界逻辑

- 将刘邦的攻击距离从100增加到120
- 调整战士移动边界从±420到±280
- 修改怪物移动逻辑,x>280时允许移动攻击
- 关闭部分prefab的_active状态
- 增加技能5000和6001-6002的攻击距离
This commit is contained in:
walkpan
2026-01-04 23:19:24 +08:00
parent 20be2ae135
commit 01431f1d53
5 changed files with 16 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ export class HeroMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpd
const newX = view.node.position.x + delta;
// 对于战士,允许更自由的移动范围
if (newX >= -420 && newX <= 420) { // 使用地图边界
if (newX >= -280 && newX <= 280) { // 使用地图边界
view.status_change("move");
view.node.setPosition(newX, view.node.position.y, 0);
} else {

View File

@@ -60,8 +60,13 @@ export class MonMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpda
const shouldStopInFace = this.checkEnemiesInFace(e);
const shouldStopAtMinRange = this.shouldStopAtMinSkillRange(e);
const shouldStop = shouldStopInFace || shouldStopAtMinRange;
let shouldStop = shouldStopInFace || shouldStopAtMinRange;
model.is_atking = this.checkEnemiesInSkillRange(e);
// x > 280 强制移动,允许攻击
if (view.node.position.x > 280) {
shouldStop = false;
}
// 🔥 移除渲染层级更新:各线路固定,后召唤的天然层级更高,无需动态调整