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 {
|
||||
|
||||
Reference in New Issue
Block a user