yolkbot 0.1.0-alpha.9 → 0.1.1-alpha.10

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 (49) hide show
  1. package/build/browser.js +6 -6
  2. package/package.json +29 -9
  3. package/src/api.js +97 -23
  4. package/src/bot/GamePlayer.js +2 -2
  5. package/src/bot.js +888 -481
  6. package/src/comm/Codes.js +73 -0
  7. package/src/constants/challenges.js +1822 -0
  8. package/src/constants/index.js +25 -1
  9. package/src/constants/items.js +663 -264
  10. package/src/constants/maps.js +57 -18
  11. package/src/dispatches/BootPlayerDispatch.js +1 -1
  12. package/src/dispatches/ChatDispatch.js +1 -1
  13. package/src/dispatches/GameOptionsDispatch.js +1 -1
  14. package/src/dispatches/GoToAmmoDispatch.js +44 -0
  15. package/src/dispatches/GoToCoopDispatch.js +44 -0
  16. package/src/dispatches/GoToGrenadeDispatch.js +44 -0
  17. package/src/dispatches/GoToPlayerDispatch.js +5 -1
  18. package/src/dispatches/GoToSpatulaDispatch.js +5 -1
  19. package/src/dispatches/LookAtPosDispatch.js +0 -2
  20. package/src/dispatches/LookDispatch2.js +18 -0
  21. package/src/dispatches/MeleeDispatch.js +1 -1
  22. package/src/dispatches/PauseDispatch.js +1 -1
  23. package/src/dispatches/ReloadDispatch.js +14 -2
  24. package/src/dispatches/ReportPlayerDispatch.js +1 -1
  25. package/src/dispatches/SaveLoadoutDispatch.js +11 -34
  26. package/src/dispatches/SpawnDispatch.js +1 -1
  27. package/src/dispatches/SwapWeaponDispatch.js +1 -1
  28. package/src/dispatches/SwitchTeamDispatch.js +1 -1
  29. package/src/dispatches/ThrowGrenadeDispatch.js +1 -1
  30. package/src/dispatches/index.js +9 -0
  31. package/src/matchmaker.js +13 -7
  32. package/src/pathing/mapnode.js +89 -250
  33. package/src/socket.js +2 -3
  34. package/src/types/api.d.ts +2 -16
  35. package/src/types/bot/GamePlayer.d.ts +25 -21
  36. package/src/types/bot.d.ts +125 -54
  37. package/src/types/constants/challenges.d.ts +19 -0
  38. package/src/types/constants/guns.d.ts +240 -0
  39. package/src/types/constants/index.d.ts +102 -0
  40. package/src/types/constants/items.d.ts +21 -0
  41. package/src/types/constants/maps.d.ts +15 -0
  42. package/src/types/dispatches/GoToAmmoDispatch.d.ts +8 -0
  43. package/src/types/dispatches/GoToCoopDispatch.d.ts +8 -0
  44. package/src/types/dispatches/GoToGrenadeDispatch.d.ts +8 -0
  45. package/src/types/dispatches/MovementDispatch.d.ts +2 -0
  46. package/src/types/dispatches/index.d.ts +45 -1
  47. package/src/types/matchmaker.d.ts +19 -14
  48. package/src/types/socket.d.ts +7 -0
  49. package/src/types/gun.d.ts +0 -131
@@ -3,6 +3,8 @@ import { Items } from './items.js';
3
3
 
4
4
  export const findItemById = (id) => Items.find(item => item.id === id);
5
5
 
6
+ export const ChiknWinnerDailyLimit = 3;
7
+
6
8
  export const CollectTypes = {
7
9
  AMMO: 0,
8
10
  GRENADE: 1
@@ -69,6 +71,8 @@ export const PlayTypes = {
69
71
  joinPrivate: 2
70
72
  }
71
73
 
74
+ export const ProxiesEnabled = !IsBrowser && typeof Bun == 'undefined';
75
+
72
76
  export const ShellStreaks = {
73
77
  HardBoiled: 1,
74
78
  EggBreaker: 2,
@@ -78,10 +82,30 @@ export const ShellStreaks = {
78
82
  MiniEgg: 32
79
83
  }
80
84
 
85
+ export const SocialRewards = {
86
+ Discord: 'rew_1200',
87
+ Tiktok: 'rew_1208',
88
+ Instagram: 'rew_1219',
89
+ Steam: 'rew_1223',
90
+ Facebook: 'rew_1227',
91
+ Twitter: 'rew_1234',
92
+ Twitch: 'rew_twitch_social'
93
+ }
94
+
81
95
  export const Teams = {
82
96
  blue: 1,
83
97
  red: 2
84
98
  }
85
99
 
100
+ export const URLRewards = [
101
+ 'giveBasketBrosReward',
102
+ 'mercZoneFinalGift',
103
+ 'midMonthGiveMeEggs',
104
+ 'newYolkerSignupReward',
105
+ 'newYolkerItemReward',
106
+ 'newYolkerWelcomeBack',
107
+ 'WelcomeBack'
108
+ ]
109
+
86
110
  export const UserAgent =
87
- 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/1230.0.0.0 Safari/537.36'
111
+ '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'