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.
- package/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/dist/api.js +3 -0
- package/dist/bot/GamePlayer.js +3 -0
- package/dist/bot.js +3 -0
- package/dist/comm/Codes.js +3 -0
- package/dist/comm/CommIn.js +3 -0
- package/dist/comm/CommOut.js +3 -0
- package/dist/comm/OutBuffer.js +3 -0
- package/dist/comm/Pool.js +3 -0
- package/dist/comm/index.js +3 -0
- package/dist/constants/challenges.js +3 -0
- package/dist/constants/changelog.js +3 -0
- package/dist/constants/codes.js +3 -0
- package/dist/constants/guns.js +3 -0
- package/dist/constants/housePromo.js +3 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/items.js +3 -0
- package/dist/constants/language.js +3 -0
- package/dist/constants/maps.js +3 -0
- package/dist/constants/shellNews.js +3 -0
- package/dist/constants/shellYoutube.js +3 -0
- package/dist/constants/shopItems.js +3 -0
- package/dist/constants/sounds.js +3 -0
- package/dist/dispatches/BootPlayerDispatch.js +3 -0
- package/dist/dispatches/ChatDispatch.js +3 -0
- package/dist/dispatches/FireDispatch.js +3 -0
- package/dist/dispatches/GameOptionsDispatch.js +3 -0
- package/dist/dispatches/GoToAmmoDispatch.js +3 -0
- package/dist/dispatches/GoToCoopDispatch.js +3 -0
- package/dist/dispatches/GoToGrenadeDispatch.js +3 -0
- package/dist/dispatches/GoToPlayerDispatch.js +3 -0
- package/dist/dispatches/GoToSpatulaDispatch.js +3 -0
- package/dist/dispatches/LookAtDispatch.js +3 -0
- package/dist/dispatches/LookAtPosDispatch.js +3 -0
- package/dist/dispatches/MeleeDispatch.js +3 -0
- package/dist/dispatches/MovementDispatch.js +3 -0
- package/dist/dispatches/PauseDispatch.js +3 -0
- package/dist/dispatches/ReloadDispatch.js +3 -0
- package/dist/dispatches/ReportPlayerDispatch.js +3 -0
- package/dist/dispatches/SaveLoadoutDispatch.js +3 -0
- package/dist/dispatches/SpawnDispatch.js +3 -0
- package/dist/dispatches/SwapWeaponDispatch.js +3 -0
- package/dist/dispatches/SwitchTeamDispatch.js +3 -0
- package/dist/dispatches/ThrowGrenadeDispatch.js +3 -0
- package/dist/dispatches/index.js +3 -0
- package/dist/globals.js +3 -0
- package/dist/index.js +10 -0
- package/dist/matchmaker.js +3 -0
- package/dist/pathing/astar.js +3 -0
- package/dist/pathing/binaryheap.js +3 -0
- package/dist/pathing/mapnode.js +3 -0
- package/dist/socket.js +3 -0
- package/package.json +28 -28
- package/src/.DS_Store +0 -0
- package/src/api.js +0 -235
- package/src/bot/GamePlayer.js +0 -88
- package/src/bot.js +0 -1998
- package/src/comm/Codes.js +0 -99
- package/src/comm/CommIn.js +0 -84
- package/src/comm/CommOut.js +0 -16
- package/src/comm/OutBuffer.js +0 -60
- package/src/comm/Pool.js +0 -55
- package/src/comm/index.js +0 -16
- package/src/constants/challenges.js +0 -1822
- package/src/constants/changelog.js +0 -19
- package/src/constants/codes.js +0 -45
- package/src/constants/guns.js +0 -368
- package/src/constants/housePromo.js +0 -727
- package/src/constants/index.js +0 -121
- package/src/constants/items.js +0 -42533
- package/src/constants/language.js +0 -1669
- package/src/constants/maps.js +0 -1095
- package/src/constants/shellNews.js +0 -59
- package/src/constants/shellYoutube.js +0 -93
- package/src/constants/shopItems.js +0 -2032
- package/src/constants/sounds.js +0 -1160
- package/src/dispatches/BootPlayerDispatch.js +0 -21
- package/src/dispatches/ChatDispatch.js +0 -30
- package/src/dispatches/FireDispatch.js +0 -20
- package/src/dispatches/GameOptionsDispatch.js +0 -46
- package/src/dispatches/GoToAmmoDispatch.js +0 -44
- package/src/dispatches/GoToCoopDispatch.js +0 -44
- package/src/dispatches/GoToGrenadeDispatch.js +0 -44
- package/src/dispatches/GoToPlayerDispatch.js +0 -38
- package/src/dispatches/GoToSpatulaDispatch.js +0 -32
- package/src/dispatches/LookAtDispatch.js +0 -48
- package/src/dispatches/LookAtPosDispatch.js +0 -33
- package/src/dispatches/MeleeDispatch.js +0 -28
- package/src/dispatches/MovementDispatch.js +0 -19
- package/src/dispatches/PauseDispatch.js +0 -18
- package/src/dispatches/ReloadDispatch.js +0 -36
- package/src/dispatches/ReportPlayerDispatch.js +0 -51
- package/src/dispatches/SaveLoadoutDispatch.js +0 -119
- package/src/dispatches/SpawnDispatch.js +0 -21
- package/src/dispatches/SwapWeaponDispatch.js +0 -19
- package/src/dispatches/SwitchTeamDispatch.js +0 -34
- package/src/dispatches/ThrowGrenadeDispatch.js +0 -26
- package/src/dispatches/index.js +0 -69
- package/src/globals.js +0 -15
- package/src/index.js +0 -14
- package/src/matchmaker.js +0 -206
- package/src/pathing/astar.js +0 -71
- package/src/pathing/binaryheap.js +0 -117
- package/src/pathing/mapnode.js +0 -236
- package/src/socket.js +0 -19
- /package/{src → dist}/types/api.d.ts +0 -0
- /package/{src → dist}/types/bot/GamePlayer.d.ts +0 -0
- /package/{src → dist}/types/bot.d.ts +0 -0
- /package/{src → dist}/types/constants/challenges.d.ts +0 -0
- /package/{src → dist}/types/constants/guns.d.ts +0 -0
- /package/{src → dist}/types/constants/index.d.ts +0 -0
- /package/{src → dist}/types/constants/items.d.ts +0 -0
- /package/{src → dist}/types/constants/maps.d.ts +0 -0
- /package/{src → dist}/types/dispatches/BootPlayerDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/ChatDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/FireDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GameOptionsDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GoToAmmoDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GoToCoopDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GoToGrenadeDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GoToPlayerDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/GoToSpatulaDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/LookAtDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/LookAtPosDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/MeleeDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/MovementDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/PauseDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/ReloadDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/ReportPlayerDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/SaveLoadoutDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/SpawnDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/SwapWeaponDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/SwitchTeamDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/ThrowGrenadeDispatch.d.ts +0 -0
- /package/{src → dist}/types/dispatches/index.d.ts +0 -0
- /package/{src → dist}/types/matchmaker.d.ts +0 -0
- /package/{src → dist}/types/socket.d.ts +0 -0
package/src/constants/index.js
DELETED
|
@@ -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'
|