Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alclient

Package Overview
Dependencies
Maintainers
1
Versions
474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alclient - npm Package Compare versions

Comparing version 0.3.13 to 0.3.14

8

build/Pathfinder.js

@@ -389,8 +389,8 @@ "use strict";

throw new Error("Prepare pathfinding before querying getPath()!");
if (from.map == to.map && this.canWalkPath(from, to)) {
return [{ type: "move", map: from.map, x: from.x, y: from.y }, { type: "move", map: from.map, x: to.x, y: to.y }];
}
const fromNode = this.findClosestNode(from.map, from.x, from.y);
const toNode = this.findClosestNode(to.map, to.x, to.y);
const path = [];
if (from.map == to.map && this.canWalkPath(from, to)) {
return [{ type: "move", map: from.map, x: from.x, y: from.y }, { type: "move", map: from.map, x: to.x, y: to.y }];
}
console.log(`Looking for a path from ${fromNode.id} to ${toNode.id}...`);

@@ -401,3 +401,3 @@ const rawPath = this.path.find(fromNode.id, toNode.id);

}
path.push({ type: "move", map: from.map, x: from.x, y: from.y });
path.push({ type: "move", map: fromNode.data.map, x: fromNode.data.x, y: fromNode.data.y });
for (let i = rawPath.length - 1; i > 0; i--) {

@@ -404,0 +404,0 @@ const currentNode = rawPath[i];

{
"name": "alclient",
"version": "0.3.13",
"version": "0.3.14",
"description": "A node client for interacting with Adventure Land - The Code MMORPG",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc