yolkbot 0.1.0-alpha.6 → 0.1.0-alpha.60
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/build/browser.js +6 -6
- package/package.json +15 -5
- package/src/api.js +97 -23
- package/src/bot/GamePlayer.js +3 -3
- package/src/bot.js +851 -484
- package/src/constants/index.js +23 -1
- package/src/constants/items.js +372 -173
- package/src/constants/maps.js +51 -12
- package/src/dispatches/BootPlayerDispatch.js +1 -1
- package/src/dispatches/ChatDispatch.js +1 -1
- package/src/dispatches/GameOptionsDispatch.js +1 -1
- package/src/dispatches/GoToAmmoDispatch.js +44 -0
- package/src/dispatches/GoToCoopDispatch.js +44 -0
- package/src/dispatches/GoToGrenadeDispatch.js +44 -0
- package/src/dispatches/GoToPlayerDispatch.js +5 -1
- package/src/dispatches/GoToSpatulaDispatch.js +5 -1
- package/src/dispatches/MeleeDispatch.js +1 -1
- package/src/dispatches/PauseDispatch.js +1 -1
- package/src/dispatches/ReloadDispatch.js +14 -2
- package/src/dispatches/ReportPlayerDispatch.js +1 -1
- package/src/dispatches/SaveLoadoutDispatch.js +11 -34
- package/src/dispatches/SpawnDispatch.js +1 -1
- package/src/dispatches/SwapWeaponDispatch.js +1 -1
- package/src/dispatches/SwitchTeamDispatch.js +1 -1
- package/src/dispatches/ThrowGrenadeDispatch.js +1 -1
- package/src/dispatches/index.js +9 -0
- package/src/matchmaker.js +11 -2
- package/src/pathing/mapnode.js +83 -250
- package/src/socket.js +1 -1
- package/src/types/api.d.ts +2 -16
- package/src/types/bot/GamePlayer.d.ts +26 -22
- package/src/types/bot.d.ts +118 -30
- package/src/types/constants/guns.d.ts +240 -0
- package/src/types/constants/index.d.ts +100 -0
- package/src/types/constants/items.d.ts +21 -0
- package/src/types/constants/maps.d.ts +15 -0
- package/src/types/dispatches/BootPlayerDispatch.d.ts +4 -2
- package/src/types/dispatches/ChatDispatch.d.ts +1 -1
- package/src/types/dispatches/FireDispatch.d.ts +2 -0
- package/src/types/dispatches/GameOptionsDispatch.d.ts +1 -1
- package/src/types/dispatches/GoToAmmoDispatch.d.ts +8 -0
- package/src/types/dispatches/GoToCoopDispatch.d.ts +8 -0
- package/src/types/dispatches/GoToGrenadeDispatch.d.ts +8 -0
- package/src/types/dispatches/GoToPlayerDispatch.d.ts +2 -1
- package/src/types/dispatches/GoToSpatulaDispatch.d.ts +1 -1
- package/src/types/dispatches/LookAtPosDispatch.d.ts +2 -0
- package/src/types/dispatches/MeleeDispatch.d.ts +2 -0
- package/src/types/dispatches/MovementDispatch.d.ts +2 -0
- package/src/types/dispatches/PauseDispatch.d.ts +2 -0
- package/src/types/dispatches/ReloadDispatch.d.ts +2 -0
- package/src/types/dispatches/ReportPlayerDispatch.d.ts +10 -1
- package/src/types/dispatches/SaveLoadoutDispatch.d.ts +2 -0
- package/src/types/dispatches/SpawnDispatch.d.ts +2 -0
- package/src/types/dispatches/SwapWeaponDispatch.d.ts +2 -0
- package/src/types/dispatches/SwitchTeamDispatch.d.ts +2 -0
- package/src/types/dispatches/ThrowGrenadeDispatch.d.ts +3 -0
- package/src/types/dispatches/index.d.ts +45 -1
- package/src/types/matchmaker.d.ts +19 -14
- package/src/types/socket.d.ts +7 -0
package/src/constants/index.js
CHANGED
|
@@ -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
|
|
@@ -78,10 +80,30 @@ export const ShellStreaks = {
|
|
|
78
80
|
MiniEgg: 32
|
|
79
81
|
}
|
|
80
82
|
|
|
83
|
+
export const SocialRewards = {
|
|
84
|
+
Discord: 'rew_1200',
|
|
85
|
+
Tiktok: 'rew_1208',
|
|
86
|
+
Instagram: 'rew_1219',
|
|
87
|
+
Steam: 'rew_1223',
|
|
88
|
+
Facebook: 'rew_1227',
|
|
89
|
+
Twitter: 'rew_1234',
|
|
90
|
+
Twitch: 'rew_twitch_social'
|
|
91
|
+
}
|
|
92
|
+
|
|
81
93
|
export const Teams = {
|
|
82
94
|
blue: 1,
|
|
83
95
|
red: 2
|
|
84
96
|
}
|
|
85
97
|
|
|
98
|
+
export const URLRewards = [
|
|
99
|
+
'giveBasketBrosReward',
|
|
100
|
+
'mercZoneFinalGift',
|
|
101
|
+
'midMonthGiveMeEggs',
|
|
102
|
+
'newYolkerSignupReward',
|
|
103
|
+
'newYolkerItemReward',
|
|
104
|
+
'newYolkerWelcomeBack',
|
|
105
|
+
'WelcomeBack'
|
|
106
|
+
]
|
|
107
|
+
|
|
86
108
|
export const UserAgent =
|
|
87
|
-
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
|
109
|
+
'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'
|