yolkbot 0.1.1-alpha.26 → 0.1.1-alpha.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yolkbot",
3
3
  "description": "create a shell shockers (self) bot in under 10 lines.",
4
- "version": "0.1.1-alpha.26",
4
+ "version": "0.1.1-alpha.28",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
package/src/bot.js CHANGED
@@ -1076,18 +1076,6 @@ export class Bot {
1076
1076
  const serverStateIdx = CommIn.unPackInt8U();
1077
1077
  player.serverStateIdx = serverStateIdx;
1078
1078
 
1079
- /*
1080
- l = Rh.unPackInt8U();
1081
- var I = Rh.unPackInt8U();
1082
- var P = Rh.unPackInt8U();
1083
- p = Rh.unPackFloat();
1084
- _ = Rh.unPackFloat();
1085
- g = Rh.unPackFloat();
1086
- var k = Rh.unPackInt8U();
1087
- var D = Rh.unPackInt8U();
1088
- var O = Rh.unPackInt8U();
1089
- */
1090
-
1091
1079
  const newX = CommIn.unPackFloat();
1092
1080
  const newY = CommIn.unPackFloat();
1093
1081
  const newZ = CommIn.unPackFloat();
@@ -1888,6 +1876,9 @@ export class Bot {
1888
1876
  this.game.socket.close();
1889
1877
  this.matchmaker.close();
1890
1878
 
1879
+ this._dispatches = [];
1880
+ this._packetQueue = [];
1881
+
1891
1882
  if (!noCleanup) {
1892
1883
  delete this.account;
1893
1884
  delete this.game;
@@ -117,5 +117,5 @@ export const URLRewards = [
117
117
  'WelcomeBack'
118
118
  ]
119
119
 
120
- export const UserAgent =
120
+ export const UserAgent = IsBrowser ? undefined :
121
121
  'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36'
@@ -18,7 +18,6 @@
18
18
 
19
19
  class NodeList {
20
20
  constructor(raw) {
21
- const now = Date.now();
22
21
  this.list = [];
23
22
  const addedPositions = {};
24
23
 
@@ -69,8 +68,6 @@ class NodeList {
69
68
  }
70
69
  }
71
70
  }
72
-
73
- console.log(`NodeList created in ${Date.now() - now}ms`);
74
71
  }
75
72
 
76
73
  add(node) {
@@ -109,4 +109,4 @@ export declare const Teams: {
109
109
 
110
110
  export declare const URLRewards: string[];
111
111
 
112
- export declare const UserAgent: string;
112
+ export declare const UserAgent: string | undefined;