optional following path movement speed
This commit is contained in:
parent
9b94705177
commit
c023c4f8fd
5 changed files with 30 additions and 8 deletions
|
@ -1467,8 +1467,7 @@ ${escapedMessage}
|
|||
const startTile = this.getGameMap().getTileIndexAt(this.CurrentPlayer.x, this.CurrentPlayer.y);
|
||||
const path = await this.getPathfindingManager().findPath(startTile, index, true, true);
|
||||
path.shift();
|
||||
return this.CurrentPlayer.setPathToFollow(path);
|
||||
// return position;
|
||||
return this.CurrentPlayer.setPathToFollow(path, message.speed);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue