yolkbot 1.4.4 → 1.4.6

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.
Files changed (112) hide show
  1. package/browser/build/global.js +1 -1
  2. package/browser/build/module.js +1 -1
  3. package/dist/api.js +200 -1
  4. package/dist/bot/GamePlayer.js +74 -1
  5. package/dist/bot.js +1679 -1
  6. package/dist/comm/CommIn.js +79 -1
  7. package/dist/comm/CommOut.js +60 -1
  8. package/dist/comm/index.js +11 -1
  9. package/dist/constants/CloseCode.js +27 -1
  10. package/dist/constants/CommCode.js +53 -1
  11. package/dist/constants/challenges.js +1821 -1
  12. package/dist/constants/findItemById.js +2 -3
  13. package/dist/constants/guns.js +277 -1
  14. package/dist/constants/index.js +139 -1
  15. package/dist/constants/items.js +45042 -1
  16. package/dist/constants/maps.js +1263 -1
  17. package/dist/constants/regions.js +30 -1
  18. package/dist/dispatches/BanPlayerDispatch.js +32 -1
  19. package/dist/dispatches/BootPlayerDispatch.js +21 -1
  20. package/dist/dispatches/ChatDispatch.js +32 -1
  21. package/dist/dispatches/FireDispatch.js +15 -1
  22. package/dist/dispatches/GameOptionsDispatch.js +66 -1
  23. package/dist/dispatches/GoToAmmoDispatch.js +38 -1
  24. package/dist/dispatches/GoToCoopDispatch.js +38 -1
  25. package/dist/dispatches/GoToGrenadeDispatch.js +38 -1
  26. package/dist/dispatches/GoToPlayerDispatch.js +39 -1
  27. package/dist/dispatches/GoToSpatulaDispatch.js +26 -1
  28. package/dist/dispatches/LookAtDispatch.js +35 -1
  29. package/dist/dispatches/LookAtPosDispatch.js +29 -1
  30. package/dist/dispatches/MeleeDispatch.js +26 -1
  31. package/dist/dispatches/MovementDispatch.js +26 -1
  32. package/dist/dispatches/PauseDispatch.js +18 -1
  33. package/dist/dispatches/ReloadDispatch.js +28 -1
  34. package/dist/dispatches/ReportPlayerDispatch.js +42 -1
  35. package/dist/dispatches/ResetGameDispatch.js +19 -1
  36. package/dist/dispatches/SaveLoadoutDispatch.js +105 -1
  37. package/dist/dispatches/SpawnDispatch.js +22 -1
  38. package/dist/dispatches/SwapWeaponDispatch.js +25 -1
  39. package/dist/dispatches/SwitchTeamDispatch.js +33 -1
  40. package/dist/dispatches/ThrowGrenadeDispatch.js +21 -1
  41. package/dist/dispatches/index.js +74 -1
  42. package/dist/env/fetch.js +97 -10
  43. package/dist/env/globals.js +15 -1
  44. package/dist/index.js +14 -2
  45. package/dist/matchmaker.js +141 -1
  46. package/dist/pathing/astar.js +55 -1
  47. package/dist/pathing/binaryheap.js +79 -1
  48. package/dist/pathing/mapnode.js +179 -1
  49. package/dist/socket.js +97 -1
  50. package/dist/util.js +68 -1
  51. package/dist/wasm/bytes.js +8 -1
  52. package/dist/wasm/direct.js +84 -1
  53. package/dist/wasm/legacy.js +170 -1
  54. package/dist/wasm/util.js +19 -1
  55. package/package.json +38 -39
  56. /package/dist/{types/api.d.ts → api.d.ts} +0 -0
  57. /package/dist/{types/bot → bot}/GamePlayer.d.ts +0 -0
  58. /package/dist/{types/bot.d.ts → bot.d.ts} +0 -0
  59. /package/dist/{types/comm → comm}/CommIn.d.ts +0 -0
  60. /package/dist/{types/comm → comm}/CommOut.d.ts +0 -0
  61. /package/dist/{types/comm → comm}/index.d.ts +0 -0
  62. /package/dist/{types/constants → constants}/CloseCode.d.ts +0 -0
  63. /package/dist/{types/constants → constants}/CommCode.d.ts +0 -0
  64. /package/dist/{types/constants → constants}/challenges.d.ts +0 -0
  65. /package/dist/{types/constants → constants}/changelog.d.ts +0 -0
  66. /package/dist/{types/constants → constants}/findItemById.d.ts +0 -0
  67. /package/dist/{types/constants → constants}/guns.d.ts +0 -0
  68. /package/dist/{types/constants → constants}/housePromo.d.ts +0 -0
  69. /package/dist/{types/constants → constants}/index.d.ts +0 -0
  70. /package/dist/{types/constants → constants}/items.d.ts +0 -0
  71. /package/dist/{types/constants → constants}/language.d.ts +0 -0
  72. /package/dist/{types/constants → constants}/maps.d.ts +0 -0
  73. /package/dist/{types/constants → constants}/notices.d.ts +0 -0
  74. /package/dist/{types/constants → constants}/regions.d.ts +0 -0
  75. /package/dist/{types/constants → constants}/shellNews.d.ts +0 -0
  76. /package/dist/{types/constants → constants}/shellYoutube.d.ts +0 -0
  77. /package/dist/{types/constants → constants}/shopItems.d.ts +0 -0
  78. /package/dist/{types/constants → constants}/sounds.d.ts +0 -0
  79. /package/dist/{types/dispatches → dispatches}/BanPlayerDispatch.d.ts +0 -0
  80. /package/dist/{types/dispatches → dispatches}/BootPlayerDispatch.d.ts +0 -0
  81. /package/dist/{types/dispatches → dispatches}/ChatDispatch.d.ts +0 -0
  82. /package/dist/{types/dispatches → dispatches}/FireDispatch.d.ts +0 -0
  83. /package/dist/{types/dispatches → dispatches}/GameOptionsDispatch.d.ts +0 -0
  84. /package/dist/{types/dispatches → dispatches}/GoToAmmoDispatch.d.ts +0 -0
  85. /package/dist/{types/dispatches → dispatches}/GoToCoopDispatch.d.ts +0 -0
  86. /package/dist/{types/dispatches → dispatches}/GoToGrenadeDispatch.d.ts +0 -0
  87. /package/dist/{types/dispatches → dispatches}/GoToPlayerDispatch.d.ts +0 -0
  88. /package/dist/{types/dispatches → dispatches}/GoToSpatulaDispatch.d.ts +0 -0
  89. /package/dist/{types/dispatches → dispatches}/LookAtDispatch.d.ts +0 -0
  90. /package/dist/{types/dispatches → dispatches}/LookAtPosDispatch.d.ts +0 -0
  91. /package/dist/{types/dispatches → dispatches}/MeleeDispatch.d.ts +0 -0
  92. /package/dist/{types/dispatches → dispatches}/MovementDispatch.d.ts +0 -0
  93. /package/dist/{types/dispatches → dispatches}/PauseDispatch.d.ts +0 -0
  94. /package/dist/{types/dispatches → dispatches}/ReloadDispatch.d.ts +0 -0
  95. /package/dist/{types/dispatches → dispatches}/ReportPlayerDispatch.d.ts +0 -0
  96. /package/dist/{types/dispatches → dispatches}/ResetGameDispatch.d.ts +0 -0
  97. /package/dist/{types/dispatches → dispatches}/SaveLoadoutDispatch.d.ts +0 -0
  98. /package/dist/{types/dispatches → dispatches}/SpawnDispatch.d.ts +0 -0
  99. /package/dist/{types/dispatches → dispatches}/SwapWeaponDispatch.d.ts +0 -0
  100. /package/dist/{types/dispatches → dispatches}/SwitchTeamDispatch.d.ts +0 -0
  101. /package/dist/{types/dispatches → dispatches}/ThrowGrenadeDispatch.d.ts +0 -0
  102. /package/dist/{types/dispatches → dispatches}/index.d.ts +0 -0
  103. /package/dist/{types/matchmaker.d.ts → matchmaker.d.ts} +0 -0
  104. /package/dist/{types/pathing → pathing}/astar.d.ts +0 -0
  105. /package/dist/{types/pathing → pathing}/binaryheap.d.ts +0 -0
  106. /package/dist/{types/pathing → pathing}/mapnode.d.ts +0 -0
  107. /package/dist/{types/socket.d.ts → socket.d.ts} +0 -0
  108. /package/dist/{types/util.d.ts → util.d.ts} +0 -0
  109. /package/dist/{types/wasm → wasm}/bytes.d.ts +0 -0
  110. /package/dist/{types/wasm → wasm}/direct.d.ts +0 -0
  111. /package/dist/{types/wasm → wasm}/legacy.d.ts +0 -0
  112. /package/dist/{types/wasm → wasm}/util.d.ts +0 -0
@@ -1,3 +1,2 @@
1
- import { Items } from './items.js';
2
-
3
- export const findItemById = (id) => Items.find(item => item.id === id);
1
+ import { Items } from "./items.js";
2
+ export const findItemById = (id) => Items.find((item) => item.id === id);
@@ -1 +1,277 @@
1
- const s=class{constructor(){this.adsMod=0.5;this.burst=0;this.burstRof=0;this.movementAccuracyMod=1;this.radius=0;this.reloadBloom=!0;this.reloadTimeMod=1;this.tracer=0}},Eggk47=class t extends s{constructor(){super();this.ammo={rounds:30,capacity:30,reload:30,store:240,storeMax:240,pickup:30};this.longReloadTime=205;this.shortReloadTime=160;this.weaponName="EggK-47";this.internalName="Eggk47";this.standardMeshName="eggk47";this.automatic=!0;this.damage=30;this.range=20;this.recoil=7;this.rof=3;this.totalDamage=30;this.velocity=1.5;this.accuracyMin=0.15;this.accuracyMax=0.03;this.accuracyLoss=0.05;this.accuracyRecover=0.025;this.tracer=1}},DozenGauge=class t extends s{constructor(){super();this.ammo={rounds:2,capacity:2,reload:2,store:24,storeMax:24,pickup:8};this.longReloadTime=155;this.shortReloadTime=155;this.weaponName="Scrambler";this.internalName="Dozen Gauge";this.standardMeshName="dozenGauge";this.automatic=!1;this.damage=8.5;this.range=8;this.recoil=10;this.rof=8;this.totalDamage=170;this.velocity=1;this.accuracyMin=0.16;this.accuracyMax=0.13;this.accuracyLoss=0.17;this.accuracyRecover=0.02;this.adsMod=0.6;this.movementAccuracyMod=0.2;this.tracer=0}},CSG1=class t extends s{constructor(){super();this.ammo={rounds:15,capacity:15,reload:15,store:60,storeMax:60,pickup:15};this.longReloadTime=225;this.shortReloadTime=165;this.weaponName="Free Ranger";this.internalName="CSG-1";this.standardMeshName="csg1";this.automatic=!1;this.damage=105;this.range=50;this.recoil=13;this.rof=13;this.totalDamage=105;this.velocity=1.75;this.accuracyMin=0.3;this.accuracyMax=0.004;this.accuracyLoss=0.3;this.accuracyRecover=0.025;this.tracer=0}},Cluck9mm=class t extends s{constructor(){super();this.ammo={rounds:15,capacity:15,reload:15,store:60,storeMax:60,pickup:15};this.longReloadTime=195;this.shortReloadTime=160;this.weaponName="Cluck 9mm";this.internalName="Cluck 9mm";this.standardMeshName="cluck9mm";this.automatic=!1;this.damage=26;this.range=15;this.recoil=6;this.rof=4;this.totalDamage=26;this.velocity=1;this.accuracyMin=0.15;this.accuracyMax=0.035;this.accuracyLoss=0.09;this.accuracyRecover=0.08;this.adsMod=0.8;this.movementAccuracyMod=0.6;this.tracer=0}},RPEGG=class t extends s{constructor(){super();this.ammo={rounds:1,capacity:1,reload:1,store:3,storeMax:3,pickup:1};this.longReloadTime=170;this.shortReloadTime=170;this.weaponName="RPEGG";this.internalName="Eggsploder";this.standardMeshName="rpegg";this.automatic=!1;this.damage=140;this.range=45;this.recoil=60;this.rof=40;this.totalDamage=192.5;this.velocity=0.4;this.accuracyMin=0.3;this.accuracyMax=0.015;this.accuracyLoss=0.3;this.accuracyRecover=0.02;this.radius=2.75}},SMG=class t extends s{constructor(){super();this.ammo={rounds:40,capacity:40,reload:40,store:200,storeMax:200,pickup:40};this.longReloadTime=225;this.shortReloadTime=190;this.weaponName="Whipper";this.internalName="SMEGG";this.standardMeshName="smg";this.automatic=!0;this.damage=23;this.range=20;this.recoil=7;this.rof=2;this.totalDamage=23;this.velocity=1.25;this.accuracyMin=0.19;this.accuracyMax=0.06;this.accuracyLoss=0.045;this.accuracyRecover=0.05;this.adsMod=0.6;this.movementAccuracyMod=0.7;this.tracer=2}},M24=class t extends s{constructor(){super();this.ammo={rounds:1,capacity:1,reload:1,store:12,storeMax:12,pickup:4};this.longReloadTime=144;this.shortReloadTime=144;this.weaponName="Crackshot";this.internalName="M2DZ";this.standardMeshName="m24";this.automatic=!0;this.damage=170;this.range=60;this.recoil=20;this.rof=15;this.totalDamage=170;this.velocity=2;this.accuracyMin=0.35;this.accuracyMax=0;this.accuracyLoss=0.1;this.accuracyRecover=0.023;this.movementAccuracyMod=1.3;this.reloadBloom=!1;this.reloadTimeMod=0.8;this.tracer=0}},AUG=class t extends s{constructor(){super();this.ammo={rounds:24,capacity:24,reload:24,store:150,storeMax:150,pickup:24};this.longReloadTime=205;this.shortReloadTime=160;this.weaponName="Tri-Hard";this.internalName="AUG";this.standardMeshName="aug";this.automatic=!1;this.damage=32;this.range=20;this.recoil=18;this.rof=15;this.totalDamage=34;this.velocity=1.5;this.accuracyMin=0.15;this.accuracyMax=0.03;this.accuracyLoss=0.037;this.accuracyRecover=0.03;this.adsMod=0.6;this.burst=3;this.burstRof=3;this.movementAccuracyMod=0.8;this.movementInstability=2;this.tracer=0}};export{Eggk47,DozenGauge,CSG1,Cluck9mm,RPEGG,SMG,M24,AUG};
1
+ const BaseGun = class {
2
+ constructor() {
3
+ this.adsMod = 0.5;
4
+ this.burst = 0;
5
+ this.burstRof = 0;
6
+ this.movementAccuracyMod = 1;
7
+ this.radius = 0;
8
+ this.reloadBloom = true;
9
+ this.reloadTimeMod = 1;
10
+ this.tracer = 0;
11
+ }
12
+ };
13
+ const Eggk47 = class _Eggk47 extends BaseGun {
14
+ constructor() {
15
+ super();
16
+ this.ammo = {
17
+ rounds: 30,
18
+ capacity: 30,
19
+ reload: 30,
20
+ store: 240,
21
+ storeMax: 240,
22
+ pickup: 30
23
+ };
24
+ this.longReloadTime = 205;
25
+ this.shortReloadTime = 160;
26
+ this.weaponName = "EggK-47";
27
+ this.internalName = "Eggk47";
28
+ this.standardMeshName = "eggk47";
29
+ this.automatic = true;
30
+ this.damage = 30;
31
+ this.range = 20;
32
+ this.recoil = 7;
33
+ this.rof = 3;
34
+ this.totalDamage = 30;
35
+ this.velocity = 1.5;
36
+ this.accuracyMin = 0.15;
37
+ this.accuracyMax = 0.03;
38
+ this.accuracyLoss = 0.05;
39
+ this.accuracyRecover = 0.025;
40
+ this.tracer = 1;
41
+ }
42
+ };
43
+ const DozenGauge = class _DozenGauge extends BaseGun {
44
+ constructor() {
45
+ super();
46
+ this.ammo = {
47
+ rounds: 2,
48
+ capacity: 2,
49
+ reload: 2,
50
+ store: 24,
51
+ storeMax: 24,
52
+ pickup: 8
53
+ };
54
+ this.longReloadTime = 155;
55
+ this.shortReloadTime = 155;
56
+ this.weaponName = "Scrambler";
57
+ this.internalName = "Dozen Gauge";
58
+ this.standardMeshName = "dozenGauge";
59
+ this.automatic = false;
60
+ this.damage = 8.5;
61
+ this.range = 8;
62
+ this.recoil = 10;
63
+ this.rof = 8;
64
+ this.totalDamage = 170;
65
+ this.velocity = 1;
66
+ this.accuracyMin = 0.16;
67
+ this.accuracyMax = 0.13;
68
+ this.accuracyLoss = 0.17;
69
+ this.accuracyRecover = 0.02;
70
+ this.adsMod = 0.6;
71
+ this.movementAccuracyMod = 0.2;
72
+ this.tracer = 0;
73
+ }
74
+ };
75
+ const CSG1 = class _CSG1 extends BaseGun {
76
+ constructor() {
77
+ super();
78
+ this.ammo = {
79
+ rounds: 15,
80
+ capacity: 15,
81
+ reload: 15,
82
+ store: 60,
83
+ storeMax: 60,
84
+ pickup: 15
85
+ };
86
+ this.longReloadTime = 225;
87
+ this.shortReloadTime = 165;
88
+ this.weaponName = "Free Ranger";
89
+ this.internalName = "CSG-1";
90
+ this.standardMeshName = "csg1";
91
+ this.automatic = false;
92
+ this.damage = 105;
93
+ this.range = 50;
94
+ this.recoil = 13;
95
+ this.rof = 13;
96
+ this.totalDamage = 105;
97
+ this.velocity = 1.75;
98
+ this.accuracyMin = 0.3;
99
+ this.accuracyMax = 0.004;
100
+ this.accuracyLoss = 0.3;
101
+ this.accuracyRecover = 0.025;
102
+ this.tracer = 0;
103
+ }
104
+ };
105
+ const Cluck9mm = class _Cluck9mm extends BaseGun {
106
+ constructor() {
107
+ super();
108
+ this.ammo = {
109
+ rounds: 15,
110
+ capacity: 15,
111
+ reload: 15,
112
+ store: 60,
113
+ storeMax: 60,
114
+ pickup: 15
115
+ };
116
+ this.longReloadTime = 195;
117
+ this.shortReloadTime = 160;
118
+ this.weaponName = "Cluck 9mm";
119
+ this.internalName = "Cluck 9mm";
120
+ this.standardMeshName = "cluck9mm";
121
+ this.automatic = false;
122
+ this.damage = 26;
123
+ this.range = 15;
124
+ this.recoil = 6;
125
+ this.rof = 4;
126
+ this.totalDamage = 26;
127
+ this.velocity = 1;
128
+ this.accuracyMin = 0.15;
129
+ this.accuracyMax = 0.035;
130
+ this.accuracyLoss = 0.09;
131
+ this.accuracyRecover = 0.08;
132
+ this.adsMod = 0.8;
133
+ this.movementAccuracyMod = 0.6;
134
+ this.tracer = 0;
135
+ }
136
+ };
137
+ const RPEGG = class _RPEGG extends BaseGun {
138
+ constructor() {
139
+ super();
140
+ this.ammo = {
141
+ rounds: 1,
142
+ capacity: 1,
143
+ reload: 1,
144
+ store: 3,
145
+ storeMax: 3,
146
+ pickup: 1
147
+ };
148
+ this.longReloadTime = 170;
149
+ this.shortReloadTime = 170;
150
+ this.weaponName = "RPEGG";
151
+ this.internalName = "Eggsploder";
152
+ this.standardMeshName = "rpegg";
153
+ this.automatic = false;
154
+ this.damage = 140;
155
+ this.range = 45;
156
+ this.recoil = 60;
157
+ this.rof = 40;
158
+ this.totalDamage = 192.5;
159
+ this.velocity = 0.4;
160
+ this.accuracyMin = 0.3;
161
+ this.accuracyMax = 0.015;
162
+ this.accuracyLoss = 0.3;
163
+ this.accuracyRecover = 0.02;
164
+ this.radius = 2.75;
165
+ }
166
+ };
167
+ const SMG = class _SMG extends BaseGun {
168
+ constructor() {
169
+ super();
170
+ this.ammo = {
171
+ rounds: 40,
172
+ capacity: 40,
173
+ reload: 40,
174
+ store: 200,
175
+ storeMax: 200,
176
+ pickup: 40
177
+ };
178
+ this.longReloadTime = 225;
179
+ this.shortReloadTime = 190;
180
+ this.weaponName = "Whipper";
181
+ this.internalName = "SMEGG";
182
+ this.standardMeshName = "smg";
183
+ this.automatic = true;
184
+ this.damage = 23;
185
+ this.range = 20;
186
+ this.recoil = 7;
187
+ this.rof = 2;
188
+ this.totalDamage = 23;
189
+ this.velocity = 1.25;
190
+ this.accuracyMin = 0.19;
191
+ this.accuracyMax = 0.06;
192
+ this.accuracyLoss = 0.045;
193
+ this.accuracyRecover = 0.05;
194
+ this.adsMod = 0.6;
195
+ this.movementAccuracyMod = 0.7;
196
+ this.tracer = 2;
197
+ }
198
+ };
199
+ const M24 = class _M24 extends BaseGun {
200
+ constructor() {
201
+ super();
202
+ this.ammo = {
203
+ rounds: 1,
204
+ capacity: 1,
205
+ reload: 1,
206
+ store: 12,
207
+ storeMax: 12,
208
+ pickup: 4
209
+ };
210
+ this.longReloadTime = 144;
211
+ this.shortReloadTime = 144;
212
+ this.weaponName = "Crackshot";
213
+ this.internalName = "M2DZ";
214
+ this.standardMeshName = "m24";
215
+ this.automatic = true;
216
+ this.damage = 170;
217
+ this.range = 60;
218
+ this.recoil = 20;
219
+ this.rof = 15;
220
+ this.totalDamage = 170;
221
+ this.velocity = 2;
222
+ this.accuracyMin = 0.35;
223
+ this.accuracyMax = 0;
224
+ this.accuracyLoss = 0.1;
225
+ this.accuracyRecover = 0.023;
226
+ this.movementAccuracyMod = 1.3;
227
+ this.reloadBloom = false;
228
+ this.reloadTimeMod = 0.8;
229
+ this.tracer = 0;
230
+ }
231
+ };
232
+ const AUG = class _AUG extends BaseGun {
233
+ constructor() {
234
+ super();
235
+ this.ammo = {
236
+ rounds: 24,
237
+ capacity: 24,
238
+ reload: 24,
239
+ store: 150,
240
+ storeMax: 150,
241
+ pickup: 24
242
+ };
243
+ this.longReloadTime = 205;
244
+ this.shortReloadTime = 160;
245
+ this.weaponName = "Tri-Hard";
246
+ this.internalName = "AUG";
247
+ this.standardMeshName = "aug";
248
+ this.automatic = false;
249
+ this.damage = 32;
250
+ this.range = 20;
251
+ this.recoil = 18;
252
+ this.rof = 15;
253
+ this.totalDamage = 34;
254
+ this.velocity = 1.5;
255
+ this.accuracyMin = 0.15;
256
+ this.accuracyMax = 0.03;
257
+ this.accuracyLoss = 0.037;
258
+ this.accuracyRecover = 0.03;
259
+ this.adsMod = 0.6;
260
+ this.burst = 3;
261
+ this.burstRof = 3;
262
+ this.movementAccuracyMod = 0.8;
263
+ this.movementInstability = 2;
264
+ this.tracer = 0;
265
+ }
266
+ };
267
+
268
+ export {
269
+ Eggk47,
270
+ DozenGauge,
271
+ CSG1,
272
+ Cluck9mm,
273
+ RPEGG,
274
+ SMG,
275
+ M24,
276
+ AUG
277
+ };
@@ -1 +1,139 @@
1
- import e from"../env/globals.js";import{AUG as t,CSG1 as o,DozenGauge as a,Eggk47 as r,M24 as n,RPEGG as i,SMG as l}from"./guns.js";export{findItemById}from"./findItemById.js";export const BanDuration={FiveMinutes:0,FifteenMinutes:1,OneHour:2},ChallengeSubType={Killstreak:0,KillWithWeapon:1,MovementDistance:3,Jumping:4,TimePlayed:6,TimeAlive:7,KillWithCondition:8,TotalKills:10,SpatulaKills:10,Collecting:18,FromTheCoop:20,SpecialOffensive:21,WinKOTC:23,KillWithSpatula:23},ChallengeType={Kill:0,Damage:1,Death:2,Movement:3,Collect:4,Time:5,KOTC:6,Spatula:7},ChatFlag={None:0,Pinned:2,Team:4,Mod:254,Server:255},ChiknWinnerDailyLimit=3,CollectType={Ammo:0,Grenade:1},CoopState={Start:0,Score:1,Win:2,Capturing:3,Contested:4,Takeover:5,Abandoned:6,Unclaimed:7},FirebaseKey="AIzaSyDP4SIjKaw6A4c-zvfYxICpbEjn1rRnN50",FramesBetweenSyncs=3,GameAction={Reset:1,Pause:2},GameMode={FFA:0,Team:1,Spatula:2,KOTC:3},GameOptionFlag={Locked:1,NoTeamChange:2,NoTeamShuffle:4},GunEquipTime=13,GunList=[r,a,o,i,l,n,t],ItemType={Hat:1,Stamp:2,Primary:3,Secondary:4,Grenade:6,Melee:7},Movement={Forward:1,Backward:2,Left:4,Right:8,Jump:16,Fire:32,Melee:64,Scope:128},PlayType={JoinPublic:0,CreatePrivate:1,JoinPrivate:2},ShellStreak={HardBoiled:1,EggBreaker:2,Restock:4,OverHeal:8,DoubleEggs:16,MiniEgg:32},SocialMedia={Facebook:0,Instagram:1,Tiktok:2,Discord:3,Youtube:4,Twitter:5,Twitch:6},SocialReward={Discord:"rew_1200",Tiktok:"rew_1208",Instagram:"rew_1219",Steam:"rew_1223",Facebook:"rew_1227",Twitter:"rew_1234",Twitch:"rew_twitch_social"},StateBufferSize=256,Team={Blue:1,Red:2},URLRewards=["giveBasketBrosReward","mercZoneFinalGift","midMonthGiveMeEggs","newYolkerSignupReward","newYolkerItemReward","newYolkerWelcomeBack","WelcomeBack"],UserAgent=e.isBrowser?null:"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";
1
+ import globals from "../env/globals.js";
2
+ import { AUG, CSG1, DozenGauge, Eggk47, M24, RPEGG, SMG } from "./guns.js";
3
+ export { findItemById } from "./findItemById.js";
4
+ export const BanDuration = {
5
+ FiveMinutes: 0,
6
+ FifteenMinutes: 1,
7
+ OneHour: 2
8
+ };
9
+ export const ChallengeSubType = {
10
+ Killstreak: 0,
11
+ KillWithWeapon: 1,
12
+ MovementDistance: 3,
13
+ Jumping: 4,
14
+ TimePlayed: 6,
15
+ TimeAlive: 7,
16
+ KillWithCondition: 8,
17
+ TotalKills: 10,
18
+ SpatulaKills: 10,
19
+ Collecting: 18,
20
+ FromTheCoop: 20,
21
+ SpecialOffensive: 21,
22
+ WinKOTC: 23,
23
+ KillWithSpatula: 23
24
+ };
25
+ export const ChallengeType = {
26
+ Kill: 0,
27
+ Damage: 1,
28
+ Death: 2,
29
+ Movement: 3,
30
+ Collect: 4,
31
+ Time: 5,
32
+ KOTC: 6,
33
+ Spatula: 7
34
+ };
35
+ export const ChatFlag = {
36
+ None: 0,
37
+ Pinned: 2,
38
+ Team: 4,
39
+ Mod: 254,
40
+ Server: 255
41
+ };
42
+ export const ChiknWinnerDailyLimit = 3;
43
+ export const CollectType = {
44
+ Ammo: 0,
45
+ Grenade: 1
46
+ };
47
+ export const CoopState = {
48
+ Start: 0,
49
+ Score: 1,
50
+ Win: 2,
51
+ Capturing: 3,
52
+ Contested: 4,
53
+ Takeover: 5,
54
+ Abandoned: 6,
55
+ Unclaimed: 7
56
+ };
57
+ export const FirebaseKey = "AIzaSyDP4SIjKaw6A4c-zvfYxICpbEjn1rRnN50";
58
+ export const FramesBetweenSyncs = 3;
59
+ export const GameAction = {
60
+ Reset: 1,
61
+ Pause: 2
62
+ };
63
+ export const GameMode = {
64
+ FFA: 0,
65
+ Team: 1,
66
+ Spatula: 2,
67
+ KOTC: 3
68
+ };
69
+ export const GameOptionFlag = {
70
+ Locked: 1,
71
+ NoTeamChange: 2,
72
+ NoTeamShuffle: 4
73
+ };
74
+ export const GunEquipTime = 13;
75
+ export const GunList = [Eggk47, DozenGauge, CSG1, RPEGG, SMG, M24, AUG];
76
+ export const ItemType = {
77
+ Hat: 1,
78
+ Stamp: 2,
79
+ Primary: 3,
80
+ Secondary: 4,
81
+ Grenade: 6,
82
+ Melee: 7
83
+ };
84
+ export const Movement = {
85
+ Forward: 1,
86
+ Backward: 2,
87
+ Left: 4,
88
+ Right: 8,
89
+ Jump: 16,
90
+ Fire: 32,
91
+ Melee: 64,
92
+ Scope: 128
93
+ };
94
+ export const PlayType = {
95
+ JoinPublic: 0,
96
+ CreatePrivate: 1,
97
+ JoinPrivate: 2
98
+ };
99
+ export const ShellStreak = {
100
+ HardBoiled: 1,
101
+ EggBreaker: 2,
102
+ Restock: 4,
103
+ OverHeal: 8,
104
+ DoubleEggs: 16,
105
+ MiniEgg: 32
106
+ };
107
+ export const SocialMedia = {
108
+ Facebook: 0,
109
+ Instagram: 1,
110
+ Tiktok: 2,
111
+ Discord: 3,
112
+ Youtube: 4,
113
+ Twitter: 5,
114
+ Twitch: 6
115
+ };
116
+ export const SocialReward = {
117
+ Discord: "rew_1200",
118
+ Tiktok: "rew_1208",
119
+ Instagram: "rew_1219",
120
+ Steam: "rew_1223",
121
+ Facebook: "rew_1227",
122
+ Twitter: "rew_1234",
123
+ Twitch: "rew_twitch_social"
124
+ };
125
+ export const StateBufferSize = 256;
126
+ export const Team = {
127
+ Blue: 1,
128
+ Red: 2
129
+ };
130
+ export const URLRewards = [
131
+ "giveBasketBrosReward",
132
+ "mercZoneFinalGift",
133
+ "midMonthGiveMeEggs",
134
+ "newYolkerSignupReward",
135
+ "newYolkerItemReward",
136
+ "newYolkerWelcomeBack",
137
+ "WelcomeBack"
138
+ ];
139
+ export const UserAgent = globals.isBrowser ? null : "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";