yolkbot 0.1.0-alpha.60 → 0.1.0-alpha.61

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.0-alpha.60",
4
+ "version": "0.1.0-alpha.61",
5
5
  "keywords": [
6
6
  "shell shockers",
7
7
  "shellshock.io",
package/src/comm/Codes.js CHANGED
@@ -1,3 +1,4 @@
1
+ /*
1
2
  const CommCode = {
2
3
  announcement: 10, // unused
3
4
  updateBalance: 11,
@@ -71,6 +72,78 @@ const CommCode = {
71
72
  startReload: 70 // unused
72
73
  }
73
74
 
75
+ */
76
+
77
+ const CommCode = {
78
+ swapWeapon: 0,
79
+ joinGame: 0,
80
+ refreshGameState: 0,
81
+ spawnItem: 0,
82
+ observeGame: 0,
83
+ ping: 0,
84
+ bootPlayer: 0,
85
+ banPlayer: 0,
86
+ loginRequired: 0,
87
+ gameLocked: 0,
88
+ reportPlayer: 0,
89
+ banned: 0,
90
+ createPrivateGame: 0,
91
+ switchTeam: 0,
92
+ changeCharacter: 0,
93
+ pause: 0,
94
+ gameOptions: 0,
95
+ gameAction: 0,
96
+ requestGameOptions: 0,
97
+ gameJoined: 0,
98
+ socketReady: 0,
99
+ addPlayer: 0,
100
+ removePlayer: 0,
101
+ fire: 0,
102
+ melee: 0,
103
+ throwGrenade: 0,
104
+ info: 0,
105
+ eventModifier: 0,
106
+ hitThem: 0,
107
+ hitMe: 0,
108
+ collectItem: 0,
109
+ chlgPlayerRerollInGame: 0,
110
+ playerInGameReward: 0,
111
+ playerRewards: 0,
112
+ chat: 0,
113
+ syncThem: 0,
114
+ syncAmmo: 0,
115
+ die: 0,
116
+ beginShellStreak: 0,
117
+ endShellStreak: 0,
118
+ startReload: 0,
119
+ announcement: 0,
120
+ updateBalance: 0,
121
+ reload: 0,
122
+ respawn: 0,
123
+ respawnDenied: 0,
124
+ pong: 0,
125
+ clientReady: 0,
126
+ requestRespawn: 0,
127
+ joinPublicGame: 0,
128
+ joinPrivateGame: 0,
129
+ switchTeamFail: 0,
130
+ expireUpgrade: 0,
131
+ metaGameState: 0,
132
+ syncMe: 0,
133
+ explode: 0,
134
+ keepAlive: 0,
135
+ musicInfo: 0,
136
+ hitMeHardBoiled: 0,
137
+ playerInfo: 0,
138
+ challengeCompleted: 0
139
+ };
140
+
141
+ let ih = 1;
142
+
143
+ Object.keys(CommCode).forEach(e => {
144
+ CommCode[e] = ih++;
145
+ });
146
+
74
147
  const CloseCode = {
75
148
  gameNotFound: 4000,
76
149
  gameFull: 4001,