yolkbot 0.1.4-alpha.3 → 0.1.4-alpha.30
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/README.md +5 -3
- package/browser/build/global.js +1 -1
- package/browser/build/module.js +1 -1
- package/dist/api.js +1 -1
- package/dist/bot/GamePlayer.js +1 -1
- package/dist/bot.js +1 -1
- package/dist/constants/changelog.js +1 -1
- package/dist/constants/codes.js +1 -1
- package/dist/constants/housePromo.js +1 -1
- package/dist/constants/items.js +1 -1
- package/dist/constants/language.js +1 -1
- package/dist/constants/maps.js +1 -1
- package/dist/constants/shellNews.js +1 -1
- package/dist/constants/shopItems.js +1 -1
- package/dist/constants/sounds.js +1 -1
- package/dist/matchmaker.js +1 -1
- package/dist/pathing/mapnode.js +1 -1
- package/dist/types/bot.d.ts +5 -1
- package/dist/types/comm/Codes.d.ts +21 -0
- package/dist/types/comm/CommIn.d.ts +22 -0
- package/dist/types/comm/CommOut.d.ts +10 -0
- package/dist/types/comm/OutBuffer.d.ts +24 -0
- package/dist/types/comm/Pool.d.ts +20 -0
- package/dist/types/comm/index.d.ts +16 -0
- package/dist/types/constants/challenges.d.ts +1 -1
- package/dist/types/constants/changelog.d.ts +7 -0
- package/dist/types/constants/codes.d.ts +44 -0
- package/dist/types/constants/housePromo.d.ts +40 -0
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/constants/items.d.ts +1 -1
- package/dist/types/constants/language.d.ts +3 -0
- package/dist/types/constants/maps.d.ts +1 -1
- package/dist/types/constants/shellNews.d.ts +12 -0
- package/dist/types/constants/shellYoutube.d.ts +12 -0
- package/dist/types/constants/shopItems.d.ts +15 -0
- package/dist/types/constants/sounds.d.ts +10 -0
- package/dist/types/matchmaker.d.ts +2 -0
- package/dist/types/util.d.ts +2 -0
- package/dist/util.js +3 -0
- package/package.json +13 -6
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ShopItem {
|
|
2
|
+
itemIds: number[] | null;
|
|
3
|
+
sku: string;
|
|
4
|
+
name: string;
|
|
5
|
+
price: number;
|
|
6
|
+
salePrice: number | null;
|
|
7
|
+
flagText: string;
|
|
8
|
+
type: 'currency' | 'item' | 'subscription' | 'pass' | 'bundle';
|
|
9
|
+
inStore: number;
|
|
10
|
+
currency: number;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
id: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const ShopItems: ShopItem[];
|
package/dist/util.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
import{IsBrowser as p}from"./constants/index.js";async function y(i,r){if(p)return await(await fetch(`https://esm.sh/gh/yolkorg/maps/maps/${i}.json?${r}`)).json();{const{existsSync:t,mkdirSync:a,readFileSync:l,writeFileSync:z}=await import("node:fs"),{join:o}=await import("node:path"),{homedir:s}=await import("node:os"),e=o(s(),".yolkbot"),n=o(e,"maps");t(e)||a(e),t(n)||a(n);const c=o(n,`${i}-${r}.json`);if(t(c))return JSON.parse(l(c,"utf-8"));const f=await(await fetch(`https://esm.sh/gh/yolkorg/maps/maps/${i}.json?${r}`)).json();return z(c,JSON.stringify(f,null,4),{flag:"w+"}),f}}function x(i){let r=0;const t={},a=[];for(const o of i)t[o.x]||(t[o.x]={}),t[o.x][o.y]||(t[o.x][o.y]={}),t[o.x][o.y][o.z]={zone:null};const l=[{x:-1,z:0},{x:1,z:0},{x:0,z:-1},{x:0,z:1}];function z(o,s,e){return t[o]&&t[o][s]&&t[o][s][e]?t[o][s][e]:null}for(const o of i)if(!t[o.x][o.y][o.z].zone){o.zone=++r,t[o.x][o.y][o.z].zone=o.zone;const s=[o];let e;do{e=0;for(const n of i)if(!t[n.x][n.y][n.z].zone)for(const c of l){const f=z(n.x+c.x,n.y,n.z+c.z);if(f&&f.zone==o.zone){e++,n.zone=o.zone,t[n.x][n.y][n.z].zone=o.zone,s.push(n);break}}}while(e>0);a.push(s)}return a}export{y as fetchMap,x as initKotcZones};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yolkbot",
|
|
3
3
|
"description": "create a shell shockers bot in under 10 lines.",
|
|
4
|
-
"version": "0.1.4-alpha.
|
|
4
|
+
"version": "0.1.4-alpha.30",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"shell shockers",
|
|
7
7
|
"shellshock.io",
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://github.com/yolkorg/yolkbot#readme",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/yolkorg/yolkbot/issues"
|
|
13
|
+
"url": "https://github.com/yolkorg/yolkbot/issues",
|
|
14
|
+
"email": "hello@villainsrule.xyz"
|
|
14
15
|
},
|
|
15
16
|
"author": "1ust",
|
|
16
|
-
"contributors": ["hijinks"],
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "
|
|
19
|
+
"url": "https://github.com/yolkorg/axios.git"
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
@@ -36,11 +36,18 @@
|
|
|
36
36
|
"./browser": "./browser/build/module.js",
|
|
37
37
|
"./browser/*": "./browser/build/*.js",
|
|
38
38
|
"./browser/*.js": "./browser/build/*.js",
|
|
39
|
-
"./comm":
|
|
39
|
+
"./comm": {
|
|
40
|
+
"import": "./dist/comm/index.js",
|
|
41
|
+
"types": "./dist/types/comm/index.d.ts"
|
|
42
|
+
},
|
|
40
43
|
"./matchmaker": {
|
|
41
44
|
"import": "./dist/matchmaker.js",
|
|
42
45
|
"types": "./dist/types/matchmaker.d.ts"
|
|
43
46
|
},
|
|
47
|
+
"./util": {
|
|
48
|
+
"import": "./dist/util.js",
|
|
49
|
+
"types": "./dist/types/util.d.ts"
|
|
50
|
+
},
|
|
44
51
|
"./pathing/*": "./dist/pathing/*.js",
|
|
45
52
|
"./pathing/*.js": "./dist/pathing/*.js",
|
|
46
53
|
"./bot": {
|
|
@@ -92,4 +99,4 @@
|
|
|
92
99
|
"eslint": "^9.25.0",
|
|
93
100
|
"globals": "^15.15.0"
|
|
94
101
|
}
|
|
95
|
-
}
|
|
102
|
+
}
|