yolkbot 0.1.3 → 0.1.4-alpha.1

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 (138) hide show
  1. package/browser/build/global.js +1 -1
  2. package/browser/build/module.js +1 -1
  3. package/dist/api.js +3 -0
  4. package/dist/bot/GamePlayer.js +3 -0
  5. package/dist/bot.js +3 -0
  6. package/dist/comm/Codes.js +3 -0
  7. package/dist/comm/CommIn.js +3 -0
  8. package/dist/comm/CommOut.js +3 -0
  9. package/dist/comm/OutBuffer.js +3 -0
  10. package/dist/comm/Pool.js +3 -0
  11. package/dist/comm/index.js +3 -0
  12. package/dist/constants/challenges.js +3 -0
  13. package/dist/constants/changelog.js +3 -0
  14. package/dist/constants/codes.js +3 -0
  15. package/dist/constants/guns.js +3 -0
  16. package/dist/constants/housePromo.js +3 -0
  17. package/dist/constants/index.js +3 -0
  18. package/dist/constants/items.js +3 -0
  19. package/dist/constants/language.js +3 -0
  20. package/dist/constants/maps.js +3 -0
  21. package/dist/constants/shellNews.js +3 -0
  22. package/dist/constants/shellYoutube.js +3 -0
  23. package/dist/constants/shopItems.js +3 -0
  24. package/dist/constants/sounds.js +3 -0
  25. package/dist/dispatches/BootPlayerDispatch.js +3 -0
  26. package/dist/dispatches/ChatDispatch.js +3 -0
  27. package/dist/dispatches/FireDispatch.js +3 -0
  28. package/dist/dispatches/GameOptionsDispatch.js +3 -0
  29. package/dist/dispatches/GoToAmmoDispatch.js +3 -0
  30. package/dist/dispatches/GoToCoopDispatch.js +3 -0
  31. package/dist/dispatches/GoToGrenadeDispatch.js +3 -0
  32. package/dist/dispatches/GoToPlayerDispatch.js +3 -0
  33. package/dist/dispatches/GoToSpatulaDispatch.js +3 -0
  34. package/dist/dispatches/LookAtDispatch.js +3 -0
  35. package/dist/dispatches/LookAtPosDispatch.js +3 -0
  36. package/dist/dispatches/MeleeDispatch.js +3 -0
  37. package/dist/dispatches/MovementDispatch.js +3 -0
  38. package/dist/dispatches/PauseDispatch.js +3 -0
  39. package/dist/dispatches/ReloadDispatch.js +3 -0
  40. package/dist/dispatches/ReportPlayerDispatch.js +3 -0
  41. package/dist/dispatches/SaveLoadoutDispatch.js +3 -0
  42. package/dist/dispatches/SpawnDispatch.js +3 -0
  43. package/dist/dispatches/SwapWeaponDispatch.js +3 -0
  44. package/dist/dispatches/SwitchTeamDispatch.js +3 -0
  45. package/dist/dispatches/ThrowGrenadeDispatch.js +3 -0
  46. package/dist/dispatches/index.js +3 -0
  47. package/dist/globals.js +3 -0
  48. package/dist/index.js +10 -0
  49. package/dist/matchmaker.js +3 -0
  50. package/dist/pathing/astar.js +3 -0
  51. package/dist/pathing/binaryheap.js +3 -0
  52. package/dist/pathing/mapnode.js +3 -0
  53. package/dist/socket.js +3 -0
  54. package/package.json +28 -28
  55. package/src/.DS_Store +0 -0
  56. package/src/api.js +0 -235
  57. package/src/bot/GamePlayer.js +0 -88
  58. package/src/bot.js +0 -1998
  59. package/src/comm/Codes.js +0 -99
  60. package/src/comm/CommIn.js +0 -84
  61. package/src/comm/CommOut.js +0 -16
  62. package/src/comm/OutBuffer.js +0 -60
  63. package/src/comm/Pool.js +0 -55
  64. package/src/comm/index.js +0 -16
  65. package/src/constants/challenges.js +0 -1822
  66. package/src/constants/changelog.js +0 -19
  67. package/src/constants/codes.js +0 -45
  68. package/src/constants/guns.js +0 -368
  69. package/src/constants/housePromo.js +0 -727
  70. package/src/constants/index.js +0 -121
  71. package/src/constants/items.js +0 -42533
  72. package/src/constants/language.js +0 -1669
  73. package/src/constants/maps.js +0 -1095
  74. package/src/constants/shellNews.js +0 -59
  75. package/src/constants/shellYoutube.js +0 -93
  76. package/src/constants/shopItems.js +0 -2032
  77. package/src/constants/sounds.js +0 -1160
  78. package/src/dispatches/BootPlayerDispatch.js +0 -21
  79. package/src/dispatches/ChatDispatch.js +0 -30
  80. package/src/dispatches/FireDispatch.js +0 -20
  81. package/src/dispatches/GameOptionsDispatch.js +0 -46
  82. package/src/dispatches/GoToAmmoDispatch.js +0 -44
  83. package/src/dispatches/GoToCoopDispatch.js +0 -44
  84. package/src/dispatches/GoToGrenadeDispatch.js +0 -44
  85. package/src/dispatches/GoToPlayerDispatch.js +0 -38
  86. package/src/dispatches/GoToSpatulaDispatch.js +0 -32
  87. package/src/dispatches/LookAtDispatch.js +0 -48
  88. package/src/dispatches/LookAtPosDispatch.js +0 -33
  89. package/src/dispatches/MeleeDispatch.js +0 -28
  90. package/src/dispatches/MovementDispatch.js +0 -19
  91. package/src/dispatches/PauseDispatch.js +0 -18
  92. package/src/dispatches/ReloadDispatch.js +0 -36
  93. package/src/dispatches/ReportPlayerDispatch.js +0 -51
  94. package/src/dispatches/SaveLoadoutDispatch.js +0 -119
  95. package/src/dispatches/SpawnDispatch.js +0 -21
  96. package/src/dispatches/SwapWeaponDispatch.js +0 -19
  97. package/src/dispatches/SwitchTeamDispatch.js +0 -34
  98. package/src/dispatches/ThrowGrenadeDispatch.js +0 -26
  99. package/src/dispatches/index.js +0 -69
  100. package/src/globals.js +0 -15
  101. package/src/index.js +0 -14
  102. package/src/matchmaker.js +0 -206
  103. package/src/pathing/astar.js +0 -71
  104. package/src/pathing/binaryheap.js +0 -117
  105. package/src/pathing/mapnode.js +0 -236
  106. package/src/socket.js +0 -19
  107. /package/{src → dist}/types/api.d.ts +0 -0
  108. /package/{src → dist}/types/bot/GamePlayer.d.ts +0 -0
  109. /package/{src → dist}/types/bot.d.ts +0 -0
  110. /package/{src → dist}/types/constants/challenges.d.ts +0 -0
  111. /package/{src → dist}/types/constants/guns.d.ts +0 -0
  112. /package/{src → dist}/types/constants/index.d.ts +0 -0
  113. /package/{src → dist}/types/constants/items.d.ts +0 -0
  114. /package/{src → dist}/types/constants/maps.d.ts +0 -0
  115. /package/{src → dist}/types/dispatches/BootPlayerDispatch.d.ts +0 -0
  116. /package/{src → dist}/types/dispatches/ChatDispatch.d.ts +0 -0
  117. /package/{src → dist}/types/dispatches/FireDispatch.d.ts +0 -0
  118. /package/{src → dist}/types/dispatches/GameOptionsDispatch.d.ts +0 -0
  119. /package/{src → dist}/types/dispatches/GoToAmmoDispatch.d.ts +0 -0
  120. /package/{src → dist}/types/dispatches/GoToCoopDispatch.d.ts +0 -0
  121. /package/{src → dist}/types/dispatches/GoToGrenadeDispatch.d.ts +0 -0
  122. /package/{src → dist}/types/dispatches/GoToPlayerDispatch.d.ts +0 -0
  123. /package/{src → dist}/types/dispatches/GoToSpatulaDispatch.d.ts +0 -0
  124. /package/{src → dist}/types/dispatches/LookAtDispatch.d.ts +0 -0
  125. /package/{src → dist}/types/dispatches/LookAtPosDispatch.d.ts +0 -0
  126. /package/{src → dist}/types/dispatches/MeleeDispatch.d.ts +0 -0
  127. /package/{src → dist}/types/dispatches/MovementDispatch.d.ts +0 -0
  128. /package/{src → dist}/types/dispatches/PauseDispatch.d.ts +0 -0
  129. /package/{src → dist}/types/dispatches/ReloadDispatch.d.ts +0 -0
  130. /package/{src → dist}/types/dispatches/ReportPlayerDispatch.d.ts +0 -0
  131. /package/{src → dist}/types/dispatches/SaveLoadoutDispatch.d.ts +0 -0
  132. /package/{src → dist}/types/dispatches/SpawnDispatch.d.ts +0 -0
  133. /package/{src → dist}/types/dispatches/SwapWeaponDispatch.d.ts +0 -0
  134. /package/{src → dist}/types/dispatches/SwitchTeamDispatch.d.ts +0 -0
  135. /package/{src → dist}/types/dispatches/ThrowGrenadeDispatch.d.ts +0 -0
  136. /package/{src → dist}/types/dispatches/index.d.ts +0 -0
  137. /package/{src → dist}/types/matchmaker.d.ts +0 -0
  138. /package/{src → dist}/types/socket.d.ts +0 -0
@@ -1,121 +0,0 @@
1
- import { AUG, CSG1, DozenGauge, Eggk47, M24, RPEGG, SMG } from './guns.js';
2
- import { Items } from './items.js';
3
-
4
- export const findItemById = (id) => Items.find(item => item.id === id);
5
-
6
- export const ChiknWinnerDailyLimit = 3;
7
-
8
- export const CollectTypes = {
9
- AMMO: 0,
10
- GRENADE: 1
11
- }
12
-
13
- export const CoopStates = {
14
- start: 0,
15
- score: 1,
16
- win: 2,
17
- capturing: 3,
18
- contested: 4,
19
- takeover: 5,
20
- abandoned: 6,
21
- unclaimed: 7
22
- }
23
-
24
- export const FirebaseKey = 'AIzaSyDP4SIjKaw6A4c-zvfYxICpbEjn1rRnN50';
25
-
26
- export const GameActions = {
27
- reset: 1,
28
- pause: 2
29
- }
30
-
31
- export const GameModes = {
32
- 'ffa': 0,
33
- 'team': 1,
34
- 'spatula': 2,
35
- 'kotc': 3
36
- }
37
-
38
- export const GameOptionFlags = {
39
- locked: 1,
40
- noTeamChange: 2,
41
- noTeamShuffle: 4
42
- }
43
-
44
- export const GunList = [Eggk47, DozenGauge, CSG1, RPEGG, SMG, M24, AUG];
45
-
46
- export const IsBrowser = typeof window !== 'undefined';
47
-
48
- export const ItemTypes = {
49
- Hat: 1,
50
- Stamp: 2,
51
- Primary: 3,
52
- Secondary: 4,
53
- Grenade: 6,
54
- Melee: 7
55
- };
56
-
57
- export const Movements = {
58
- FORWARD: 1,
59
- BACK: 2,
60
- LEFT: 4,
61
- RIGHT: 8,
62
- JUMP: 16,
63
- FIRE: 32, // useless
64
- MELEE: 64, // useless
65
- SCOPE: 128 // useless
66
- }
67
-
68
- export const PlayTypes = {
69
- joinPublic: 0,
70
- createPrivate: 1,
71
- joinPrivate: 2
72
- }
73
-
74
- export const ProxiesEnabled = !IsBrowser && typeof Bun == 'undefined';
75
-
76
- export const ShellStreaks = {
77
- HardBoiled: 1,
78
- EggBreaker: 2,
79
- Restock: 4,
80
- OverHeal: 8,
81
- DoubleEggs: 16,
82
- MiniEgg: 32
83
- }
84
-
85
- export const SocialMedias = {
86
- 0: 'Facebook',
87
- 1: 'Instagram',
88
- 2: 'Tiktok',
89
- 3: 'Discord',
90
- 4: 'Youtube',
91
- 5: 'Twitter',
92
- 6: 'Twitch'
93
- }
94
-
95
- export const SocialRewards = {
96
- Discord: 'rew_1200',
97
- Tiktok: 'rew_1208',
98
- Instagram: 'rew_1219',
99
- Steam: 'rew_1223',
100
- Facebook: 'rew_1227',
101
- Twitter: 'rew_1234',
102
- Twitch: 'rew_twitch_social'
103
- }
104
-
105
- export const Teams = {
106
- blue: 1,
107
- red: 2
108
- }
109
-
110
- export const URLRewards = [
111
- 'giveBasketBrosReward',
112
- 'mercZoneFinalGift',
113
- 'midMonthGiveMeEggs',
114
- 'newYolkerSignupReward',
115
- 'newYolkerItemReward',
116
- 'newYolkerWelcomeBack',
117
- 'WelcomeBack'
118
- ]
119
-
120
- export const UserAgent = IsBrowser ? undefined :
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'