lol-constants 2.6.1 → 2.7.0
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/core/constants/QueueDescriptions.d.ts +2 -19
- package/core/constants/QueueDescriptions.js +10 -5
- package/core/constants/QueueIds.d.ts +27 -0
- package/core/constants/QueueIds.js +27 -0
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +1 -1
- package/core/constants/Runes/RuneTreeIdsNum.js +3 -3
- package/core/index.d.ts +2 -0
- package/core/index.js +2 -0
- package/package.json +1 -1
@@ -1,21 +1,4 @@
|
|
1
|
+
import { QueueId } from './QueueIds';
|
1
2
|
export declare const QueueDescriptions: {
|
2
|
-
|
3
|
-
readonly 400: "5v5 Draft Pick";
|
4
|
-
readonly 420: "5v5 Ranked Solo";
|
5
|
-
readonly 430: "5v5 Blind Pick";
|
6
|
-
readonly 440: "5v5 Ranked Flex";
|
7
|
-
readonly 450: "5v5 ARAM";
|
8
|
-
readonly 700: "Clash";
|
9
|
-
readonly 900: "ARURF";
|
10
|
-
readonly 920: "Legend of the Poro King";
|
11
|
-
readonly 1020: "One for All";
|
12
|
-
readonly 1090: "Teamfight Tactics";
|
13
|
-
readonly 1100: "Ranked Teamfight Tactics";
|
14
|
-
readonly 1110: "Teamfight Tactics Tutorial";
|
15
|
-
readonly 1111: "Teamfight Tactics test";
|
16
|
-
readonly 1300: "Nexus Blitz";
|
17
|
-
readonly 1400: "Ultimate Spellbook";
|
18
|
-
readonly 1900: "URF";
|
3
|
+
[queueId in QueueId]: string;
|
19
4
|
};
|
20
|
-
export type QueueDescription = typeof QueueDescriptions[keyof typeof QueueDescriptions];
|
21
|
-
export declare function isQueueDescription(value: any): value is QueueDescription;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.QueueDescriptions = void 0;
|
4
4
|
exports.QueueDescriptions = {
|
5
5
|
0: 'Custom',
|
6
6
|
400: '5v5 Draft Pick',
|
@@ -9,8 +9,13 @@ exports.QueueDescriptions = {
|
|
9
9
|
440: '5v5 Ranked Flex',
|
10
10
|
450: '5v5 ARAM',
|
11
11
|
700: 'Clash',
|
12
|
+
720: 'ARAM Clash',
|
13
|
+
830: 'Co-op vs. AI Intro Bots',
|
14
|
+
840: 'Co-op vs. AI Beginner Bots',
|
15
|
+
850: 'Co-op vs. AI Intermediate Bots',
|
12
16
|
900: 'ARURF',
|
13
17
|
920: 'Legend of the Poro King',
|
18
|
+
1010: 'Snow ARURF',
|
14
19
|
1020: 'One for All',
|
15
20
|
1090: 'Teamfight Tactics',
|
16
21
|
1100: 'Ranked Teamfight Tactics',
|
@@ -18,9 +23,9 @@ exports.QueueDescriptions = {
|
|
18
23
|
1111: 'Teamfight Tactics test',
|
19
24
|
1300: 'Nexus Blitz',
|
20
25
|
1400: 'Ultimate Spellbook',
|
26
|
+
1700: 'Arena 2v2v2v2',
|
21
27
|
1900: 'URF',
|
28
|
+
2000: 'Tutorial 1',
|
29
|
+
2010: 'Tutorial 2',
|
30
|
+
2020: 'Tutorial 3',
|
22
31
|
};
|
23
|
-
function isQueueDescription(value) {
|
24
|
-
return typeof value == 'string' && value in exports.QueueDescriptions;
|
25
|
-
}
|
26
|
-
exports.isQueueDescription = isQueueDescription;
|
@@ -13,10 +13,20 @@
|
|
13
13
|
*
|
14
14
|
* 700 — Clash games
|
15
15
|
*
|
16
|
+
* 720 — ARAM Clash games
|
17
|
+
*
|
18
|
+
* 830 — Co-op vs. AI Intro Bot games
|
19
|
+
*
|
20
|
+
* 840 — Co-op vs. AI Beginner Bot games
|
21
|
+
*
|
22
|
+
* 850 — Co-op vs. AI Intermediate Bot games
|
23
|
+
*
|
16
24
|
* 900 — ARURF games
|
17
25
|
*
|
18
26
|
* 920 — Legend of the Poro King games
|
19
27
|
*
|
28
|
+
* 1010 — Snow ARURF games
|
29
|
+
*
|
20
30
|
* 1020 — One for All games
|
21
31
|
*
|
22
32
|
* 1090 — Teamfight Tactics games
|
@@ -31,7 +41,15 @@
|
|
31
41
|
*
|
32
42
|
* 1400 — Ultimate Spellbook games
|
33
43
|
*
|
44
|
+
* 1700 — Arena 2v2v2v2
|
45
|
+
*
|
34
46
|
* 1900 — Pick URF games
|
47
|
+
*
|
48
|
+
* 2000 — Tutorial 1
|
49
|
+
*
|
50
|
+
* 2010 — Tutorial 2
|
51
|
+
*
|
52
|
+
* 2020 — Tutorial 3
|
35
53
|
*/
|
36
54
|
export declare const QueueIds: {
|
37
55
|
readonly 0: 0;
|
@@ -41,8 +59,13 @@ export declare const QueueIds: {
|
|
41
59
|
readonly 440: 440;
|
42
60
|
readonly 450: 450;
|
43
61
|
readonly 700: 700;
|
62
|
+
readonly 720: 720;
|
63
|
+
readonly 830: 830;
|
64
|
+
readonly 840: 840;
|
65
|
+
readonly 850: 850;
|
44
66
|
readonly 900: 900;
|
45
67
|
readonly 920: 920;
|
68
|
+
readonly 1010: 1010;
|
46
69
|
readonly 1020: 1020;
|
47
70
|
readonly 1090: 1090;
|
48
71
|
readonly 1100: 1100;
|
@@ -50,7 +73,11 @@ export declare const QueueIds: {
|
|
50
73
|
readonly 1111: 1111;
|
51
74
|
readonly 1300: 1300;
|
52
75
|
readonly 1400: 1400;
|
76
|
+
readonly 1700: 1700;
|
53
77
|
readonly 1900: 1900;
|
78
|
+
readonly 2000: 2000;
|
79
|
+
readonly 2010: 2010;
|
80
|
+
readonly 2020: 2020;
|
54
81
|
};
|
55
82
|
export type QueueId = typeof QueueIds[keyof typeof QueueIds];
|
56
83
|
export declare function isQueueId(value: number): value is QueueId;
|
@@ -16,10 +16,20 @@ exports.isQueueId = exports.QueueIds = void 0;
|
|
16
16
|
*
|
17
17
|
* 700 — Clash games
|
18
18
|
*
|
19
|
+
* 720 — ARAM Clash games
|
20
|
+
*
|
21
|
+
* 830 — Co-op vs. AI Intro Bot games
|
22
|
+
*
|
23
|
+
* 840 — Co-op vs. AI Beginner Bot games
|
24
|
+
*
|
25
|
+
* 850 — Co-op vs. AI Intermediate Bot games
|
26
|
+
*
|
19
27
|
* 900 — ARURF games
|
20
28
|
*
|
21
29
|
* 920 — Legend of the Poro King games
|
22
30
|
*
|
31
|
+
* 1010 — Snow ARURF games
|
32
|
+
*
|
23
33
|
* 1020 — One for All games
|
24
34
|
*
|
25
35
|
* 1090 — Teamfight Tactics games
|
@@ -34,7 +44,15 @@ exports.isQueueId = exports.QueueIds = void 0;
|
|
34
44
|
*
|
35
45
|
* 1400 — Ultimate Spellbook games
|
36
46
|
*
|
47
|
+
* 1700 — Arena 2v2v2v2
|
48
|
+
*
|
37
49
|
* 1900 — Pick URF games
|
50
|
+
*
|
51
|
+
* 2000 — Tutorial 1
|
52
|
+
*
|
53
|
+
* 2010 — Tutorial 2
|
54
|
+
*
|
55
|
+
* 2020 — Tutorial 3
|
38
56
|
*/
|
39
57
|
exports.QueueIds = {
|
40
58
|
0: 0,
|
@@ -44,8 +62,13 @@ exports.QueueIds = {
|
|
44
62
|
440: 440,
|
45
63
|
450: 450,
|
46
64
|
700: 700,
|
65
|
+
720: 720,
|
66
|
+
830: 830,
|
67
|
+
840: 840,
|
68
|
+
850: 850,
|
47
69
|
900: 900,
|
48
70
|
920: 920,
|
71
|
+
1010: 1010,
|
49
72
|
1020: 1020,
|
50
73
|
1090: 1090,
|
51
74
|
1100: 1100,
|
@@ -53,7 +76,11 @@ exports.QueueIds = {
|
|
53
76
|
1111: 1111,
|
54
77
|
1300: 1300,
|
55
78
|
1400: 1400,
|
79
|
+
1700: 1700,
|
56
80
|
1900: 1900,
|
81
|
+
2000: 2000,
|
82
|
+
2010: 2010,
|
83
|
+
2020: 2020,
|
57
84
|
};
|
58
85
|
function isQueueId(value) {
|
59
86
|
return value in exports.QueueIds;
|
@@ -8,4 +8,4 @@ export declare const RuneTreeIdsNum: {
|
|
8
8
|
};
|
9
9
|
export type RuneTreeIdNum = typeof RuneTreeIdsNum[keyof typeof RuneTreeIdsNum];
|
10
10
|
export declare function isRuneTreeIdNum(id: any): id is RuneTreeIdNum;
|
11
|
-
export declare function
|
11
|
+
export declare function getRuneTreeIdNumByName(name: RuneTreeName): RuneTreeIdNum;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getRuneTreeIdNumByName = exports.isRuneTreeIdNum = exports.RuneTreeIdsNum = void 0;
|
4
4
|
const RuneTreeNames_1 = require("./RuneTreeNames");
|
5
5
|
exports.RuneTreeIdsNum = {
|
6
6
|
Precision: 8000,
|
@@ -13,7 +13,7 @@ function isRuneTreeIdNum(id) {
|
|
13
13
|
return typeof id == 'number' && id in RuneTreeNames_1.RuneTreeNames;
|
14
14
|
}
|
15
15
|
exports.isRuneTreeIdNum = isRuneTreeIdNum;
|
16
|
-
function
|
16
|
+
function getRuneTreeIdNumByName(name) {
|
17
17
|
return exports.RuneTreeIdsNum[name];
|
18
18
|
}
|
19
|
-
exports.
|
19
|
+
exports.getRuneTreeIdNumByName = getRuneTreeIdNumByName;
|
package/core/index.d.ts
CHANGED
@@ -56,7 +56,9 @@ export * from './constants/Runes/RuneSets';
|
|
56
56
|
export * from './constants/Runes/RuneSetsByRuneNames';
|
57
57
|
export * from './constants/Runes/RuneSetsByRuneNamesNum';
|
58
58
|
export * from './constants/Runes/RuneTreeIds';
|
59
|
+
export * from './constants/Runes/RuneTreeIdsNum';
|
59
60
|
export * from './constants/Runes/RuneTreeNames';
|
61
|
+
export * from './constants/Runes/RuneTreeTypes';
|
60
62
|
export * from './constants/Spells/SpellIds';
|
61
63
|
export * from './constants/Spells/SpellIdsByName';
|
62
64
|
export * from './constants/Spells/SpellKeys';
|
package/core/index.js
CHANGED
@@ -76,7 +76,9 @@ __exportStar(require("./constants/Runes/RuneSets"), exports);
|
|
76
76
|
__exportStar(require("./constants/Runes/RuneSetsByRuneNames"), exports);
|
77
77
|
__exportStar(require("./constants/Runes/RuneSetsByRuneNamesNum"), exports);
|
78
78
|
__exportStar(require("./constants/Runes/RuneTreeIds"), exports);
|
79
|
+
__exportStar(require("./constants/Runes/RuneTreeIdsNum"), exports);
|
79
80
|
__exportStar(require("./constants/Runes/RuneTreeNames"), exports);
|
81
|
+
__exportStar(require("./constants/Runes/RuneTreeTypes"), exports);
|
80
82
|
// ## Spells
|
81
83
|
__exportStar(require("./constants/Spells/SpellIds"), exports);
|
82
84
|
__exportStar(require("./constants/Spells/SpellIdsByName"), exports);
|
package/package.json
CHANGED