fix: 调整英雄刘邦属性和技能范围,优化移动边界逻辑
- 将刘邦的攻击距离从100增加到120 - 调整战士移动边界从±420到±280 - 修改怪物移动逻辑,x>280时允许移动攻击 - 关闭部分prefab的_active状态 - 增加技能5000和6001-6002的攻击距离
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
// 🔥 移除渲染层级更新:各线路固定,后召唤的天然层级更高,无需动态调整
|
||||
|
||||
|
||||
Reference in New Issue
Block a user