lol-constants 0.9.0 → 0.10.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/dist/Constants/DDPaths.d.ts +4 -0
- package/dist/Constants/DDPaths.js +4 -0
- package/dist/Constants/RuneSets.d.ts +43 -0
- package/dist/Constants/RuneSets.js +210 -0
- package/dist/Helpers/generateChampionsByKey.js +3 -0
- package/dist/Helpers/generateChampionsByName.js +3 -0
- package/dist/Helpers/generateItemsByName.js +5 -0
- package/dist/Helpers/generateRunesById.js +2 -0
- package/dist/Helpers/generateRunesByName.js +2 -0
- package/dist/Helpers/generateSummonerSpellsByKey.js +3 -0
- package/dist/Helpers/generateSummonerSpellsByName.js +3 -0
- package/dist/Helpers/getChampionKeyByName.d.ts +2 -0
- package/dist/Helpers/getChampionKeyByName.js +11 -0
- package/dist/Helpers/getChampionNameByKey.d.ts +2 -0
- package/dist/Helpers/getChampionNameByKey.js +11 -0
- package/dist/Helpers/getItemKeyByName.d.ts +2 -0
- package/dist/Helpers/getItemKeyByName.js +11 -0
- package/dist/Helpers/getItemNameByKey.d.ts +2 -0
- package/dist/Helpers/getItemNameByKey.js +11 -0
- package/dist/Helpers/getRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getRuneIdByName.js +23 -0
- package/dist/Helpers/getRuneNameById.d.ts +2 -0
- package/dist/Helpers/getRuneNameById.js +15 -0
- package/dist/Helpers/getSummonerSpellKeyByName.d.ts +2 -0
- package/dist/Helpers/getSummonerSpellKeyByName.js +11 -0
- package/dist/Helpers/getSummonerSpellNameByKey.d.ts +2 -0
- package/dist/Helpers/getSummonerSpellNameByKey.js +11 -0
- package/dist/Helpers/isStatRuneId.d.ts +2 -0
- package/dist/Helpers/isStatRuneId.js +10 -0
- package/dist/Helpers/isStatRuneName.d.ts +2 -0
- package/dist/Helpers/isStatRuneName.js +10 -0
- package/dist/Helpers/isTreeRuneId.d.ts +2 -0
- package/dist/Helpers/isTreeRuneId.js +10 -0
- package/dist/Helpers/isTreeRuneName.d.ts +2 -0
- package/dist/Helpers/isTreeRuneName.js +10 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +33 -1
- package/dist/types/Meta.d.ts +32 -6
- package/dist/types/index.d.ts +136 -3
- package/package.json +1 -1
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DDPaths = void 0;
|
4
4
|
const VERSION = '12.8.1';
|
5
5
|
const BASE = `http://ddragon.leagueoflegends.com/cdn/${VERSION}/`;
|
6
|
+
/**
|
7
|
+
* DataDragon CDN Paths.
|
8
|
+
* All paths end with '/'.
|
9
|
+
*/
|
6
10
|
exports.DDPaths = {
|
7
11
|
CHAMPION_ICON_BASE: `${BASE}img/champion/`,
|
8
12
|
SPELL_ICON_BASE: `${BASE}img/spell/`,
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* There are 17 Keystone Runes in the game.
|
3
|
+
*/
|
4
|
+
export declare const Keystones: readonly ["8005", "8008", "8021", "8010", "8112", "8124", "8128", "9923", "8214", "8229", "8230", "8437", "8439", "8465", "8351", "8360", "8369"];
|
5
|
+
/**
|
6
|
+
* Contains all Rune IDs
|
7
|
+
* that are known to man in the game of League of Legends.
|
8
|
+
* Sorted by various useful categories.
|
9
|
+
*/
|
10
|
+
export declare const RuneSets: {
|
11
|
+
readonly PrimaryTrees: {
|
12
|
+
/**
|
13
|
+
* There are 13 Precision Runes in the game.
|
14
|
+
*/
|
15
|
+
readonly Precision: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
|
16
|
+
/**
|
17
|
+
* There are 13 Domination Runes in the game.
|
18
|
+
*/
|
19
|
+
readonly Domination: readonly ["8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
|
20
|
+
/**
|
21
|
+
* There are 12 Sorcery Runes in the game.
|
22
|
+
*/
|
23
|
+
readonly Sorcery: readonly ["8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
|
24
|
+
/**
|
25
|
+
* There are 11 Resolve Runes in the game.
|
26
|
+
*/
|
27
|
+
readonly Resolve: readonly ["8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
|
28
|
+
/**
|
29
|
+
* There are 12 Inspiration Runes in the game.
|
30
|
+
*/
|
31
|
+
readonly Inspiration: readonly ["8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
|
32
|
+
};
|
33
|
+
readonly SecondaryTrees: {
|
34
|
+
readonly Precision: readonly ["9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299"];
|
35
|
+
readonly Domination: readonly ["8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106"];
|
36
|
+
readonly Sorcery: readonly ["8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236"];
|
37
|
+
readonly Resolve: readonly ["8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242"];
|
38
|
+
readonly Inspiration: readonly ["8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352"];
|
39
|
+
};
|
40
|
+
readonly Keystones: readonly ["8005", "8008", "8021", "8010", "8112", "8124", "8128", "9923", "8214", "8229", "8230", "8437", "8439", "8465", "8351", "8360", "8369"];
|
41
|
+
readonly StatRunes: readonly ["5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
|
42
|
+
readonly All: readonly ["8005", "8008", "8021", "8010", "9101", "9111", "8009", "9104", "9105", "9103", "8014", "8017", "8299", "8112", "8124", "8128", "9923", "8126", "8139", "8143", "8136", "8138", "8135", "8134", "8105", "8106", "8214", "8229", "8230", "8224", "8226", "8275", "8210", "8234", "8233", "8237", "8232", "8236", "8437", "8439", "8465", "8446", "8463", "8401", "8429", "8444", "8473", "8451", "8453", "8242", "8351", "8360", "8369", "8306", "8304", "8313", "8321", "8316", "8345", "8347", "8410", "8352", "5001", "5002", "5002f", "5003", "5003f", "5005", "5007", "5008", "5008f"];
|
43
|
+
};
|
@@ -0,0 +1,210 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RuneSets = exports.Keystones = void 0;
|
4
|
+
const PrimaryTrees = {
|
5
|
+
/**
|
6
|
+
* There are 13 Precision Runes in the game.
|
7
|
+
*/
|
8
|
+
'Precision': [
|
9
|
+
'8005',
|
10
|
+
'8008',
|
11
|
+
'8021',
|
12
|
+
'8010',
|
13
|
+
'9101',
|
14
|
+
'9111',
|
15
|
+
'8009',
|
16
|
+
'9104',
|
17
|
+
'9105',
|
18
|
+
'9103',
|
19
|
+
'8014',
|
20
|
+
'8017',
|
21
|
+
'8299',
|
22
|
+
],
|
23
|
+
/**
|
24
|
+
* There are 13 Domination Runes in the game.
|
25
|
+
*/
|
26
|
+
'Domination': [
|
27
|
+
'8112',
|
28
|
+
'8124',
|
29
|
+
'8128',
|
30
|
+
'9923',
|
31
|
+
'8126',
|
32
|
+
'8139',
|
33
|
+
'8143',
|
34
|
+
'8136',
|
35
|
+
'8138',
|
36
|
+
'8135',
|
37
|
+
'8134',
|
38
|
+
'8105',
|
39
|
+
'8106',
|
40
|
+
],
|
41
|
+
/**
|
42
|
+
* There are 12 Sorcery Runes in the game.
|
43
|
+
*/
|
44
|
+
'Sorcery': [
|
45
|
+
'8214',
|
46
|
+
'8229',
|
47
|
+
'8230',
|
48
|
+
'8224',
|
49
|
+
'8226',
|
50
|
+
'8275',
|
51
|
+
'8210',
|
52
|
+
'8234',
|
53
|
+
'8233',
|
54
|
+
'8237',
|
55
|
+
'8232',
|
56
|
+
'8236',
|
57
|
+
],
|
58
|
+
/**
|
59
|
+
* There are 11 Resolve Runes in the game.
|
60
|
+
*/
|
61
|
+
'Resolve': [
|
62
|
+
'8437',
|
63
|
+
'8439',
|
64
|
+
'8465',
|
65
|
+
'8446',
|
66
|
+
'8463',
|
67
|
+
'8401',
|
68
|
+
'8429',
|
69
|
+
'8444',
|
70
|
+
'8473',
|
71
|
+
'8451',
|
72
|
+
'8453',
|
73
|
+
'8242',
|
74
|
+
],
|
75
|
+
/**
|
76
|
+
* There are 12 Inspiration Runes in the game.
|
77
|
+
*/
|
78
|
+
'Inspiration': [
|
79
|
+
'8351',
|
80
|
+
'8360',
|
81
|
+
'8369',
|
82
|
+
'8306',
|
83
|
+
'8304',
|
84
|
+
'8313',
|
85
|
+
'8321',
|
86
|
+
'8316',
|
87
|
+
'8345',
|
88
|
+
'8347',
|
89
|
+
'8410',
|
90
|
+
'8352',
|
91
|
+
],
|
92
|
+
};
|
93
|
+
const SecondaryTrees = {
|
94
|
+
'Precision': [
|
95
|
+
'9101',
|
96
|
+
'9111',
|
97
|
+
'8009',
|
98
|
+
'9104',
|
99
|
+
'9105',
|
100
|
+
'9103',
|
101
|
+
'8014',
|
102
|
+
'8017',
|
103
|
+
'8299',
|
104
|
+
],
|
105
|
+
'Domination': [
|
106
|
+
'8126',
|
107
|
+
'8139',
|
108
|
+
'8143',
|
109
|
+
'8136',
|
110
|
+
'8138',
|
111
|
+
'8135',
|
112
|
+
'8134',
|
113
|
+
'8105',
|
114
|
+
'8106',
|
115
|
+
],
|
116
|
+
'Sorcery': [
|
117
|
+
'8224',
|
118
|
+
'8226',
|
119
|
+
'8275',
|
120
|
+
'8210',
|
121
|
+
'8234',
|
122
|
+
'8233',
|
123
|
+
'8237',
|
124
|
+
'8232',
|
125
|
+
'8236',
|
126
|
+
],
|
127
|
+
'Resolve': [
|
128
|
+
'8446',
|
129
|
+
'8463',
|
130
|
+
'8401',
|
131
|
+
'8429',
|
132
|
+
'8444',
|
133
|
+
'8473',
|
134
|
+
'8451',
|
135
|
+
'8453',
|
136
|
+
'8242',
|
137
|
+
],
|
138
|
+
'Inspiration': [
|
139
|
+
'8306',
|
140
|
+
'8304',
|
141
|
+
'8313',
|
142
|
+
'8321',
|
143
|
+
'8316',
|
144
|
+
'8345',
|
145
|
+
'8347',
|
146
|
+
'8410',
|
147
|
+
'8352',
|
148
|
+
],
|
149
|
+
};
|
150
|
+
/**
|
151
|
+
* There are 17 Keystone Runes in the game.
|
152
|
+
*/
|
153
|
+
exports.Keystones = [
|
154
|
+
// Precision
|
155
|
+
'8005',
|
156
|
+
'8008',
|
157
|
+
'8021',
|
158
|
+
'8010',
|
159
|
+
// Domination
|
160
|
+
'8112',
|
161
|
+
'8124',
|
162
|
+
'8128',
|
163
|
+
'9923',
|
164
|
+
// Sorcery
|
165
|
+
'8214',
|
166
|
+
'8229',
|
167
|
+
'8230',
|
168
|
+
// Resolve
|
169
|
+
'8437',
|
170
|
+
'8439',
|
171
|
+
'8465',
|
172
|
+
// Inspiration
|
173
|
+
'8351',
|
174
|
+
'8360',
|
175
|
+
'8369',
|
176
|
+
];
|
177
|
+
/**
|
178
|
+
* There are 9 Stat Runes in the game.
|
179
|
+
*/
|
180
|
+
const StatRunes = [
|
181
|
+
'5001',
|
182
|
+
'5002',
|
183
|
+
'5002f',
|
184
|
+
'5003',
|
185
|
+
'5003f',
|
186
|
+
'5005',
|
187
|
+
'5007',
|
188
|
+
'5008',
|
189
|
+
'5008f',
|
190
|
+
];
|
191
|
+
const All = [
|
192
|
+
...PrimaryTrees.Precision,
|
193
|
+
...PrimaryTrees.Domination,
|
194
|
+
...PrimaryTrees.Sorcery,
|
195
|
+
...PrimaryTrees.Resolve,
|
196
|
+
...PrimaryTrees.Inspiration,
|
197
|
+
...StatRunes,
|
198
|
+
];
|
199
|
+
/**
|
200
|
+
* Contains all Rune IDs
|
201
|
+
* that are known to man in the game of League of Legends.
|
202
|
+
* Sorted by various useful categories.
|
203
|
+
*/
|
204
|
+
exports.RuneSets = {
|
205
|
+
PrimaryTrees,
|
206
|
+
SecondaryTrees,
|
207
|
+
Keystones: exports.Keystones,
|
208
|
+
StatRunes,
|
209
|
+
All,
|
210
|
+
};
|
@@ -11,12 +11,15 @@ function generateChampionsByKey() {
|
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
|
+
// Add all champions' data to each corresponding key value
|
14
15
|
let championId;
|
15
16
|
for (championId in champion_json_1.default.data) {
|
16
17
|
const championData = champion_json_1.default.data[championId];
|
17
18
|
championsByKey.data[championData.key] = championData;
|
18
19
|
}
|
20
|
+
// Add version to the product object
|
19
21
|
championsByKey.version = champion_json_1.default.version;
|
22
|
+
// Write to file
|
20
23
|
fs_1.default.writeFileSync(`src/generated/championByKey.json`, JSON.stringify(championsByKey));
|
21
24
|
}
|
22
25
|
exports.generateChampionsByKey = generateChampionsByKey;
|
@@ -11,12 +11,15 @@ function generateChampionsByName() {
|
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
|
+
// Extract all champion names from `champion.json`
|
14
15
|
let championId;
|
15
16
|
for (championId in champion_json_1.default.data) {
|
16
17
|
const championData = champion_json_1.default.data[championId];
|
17
18
|
championsByName.data[championData.name] = championData;
|
18
19
|
}
|
20
|
+
// Add version to the product object
|
19
21
|
championsByName.version = champion_json_1.default.version;
|
22
|
+
// Write to file
|
20
23
|
fs_1.default.writeFileSync(`src/generated/championByName.json`, JSON.stringify(championsByName));
|
21
24
|
}
|
22
25
|
exports.generateChampionsByName = generateChampionsByName;
|
@@ -11,15 +11,20 @@ function generateItemsByName() {
|
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
|
+
// Add all items' data to each corresponding name value
|
14
15
|
let itemKey;
|
15
16
|
for (itemKey in item_json_1.default.data) {
|
16
17
|
const itemData = item_json_1.default.data[itemKey];
|
17
18
|
itemByName.data[itemData.name] = {
|
18
19
|
...itemData,
|
20
|
+
// Add the extra variable: `key`
|
21
|
+
// because it is esentially being overwritten.
|
19
22
|
key: itemKey,
|
20
23
|
};
|
21
24
|
}
|
25
|
+
// Add version to the product object
|
22
26
|
itemByName.version = item_json_1.default.version;
|
27
|
+
// Write to file
|
23
28
|
fs_1.default.writeFileSync(`src/generated/itemByName.json`, JSON.stringify(itemByName));
|
24
29
|
}
|
25
30
|
exports.generateItemsByName = generateItemsByName;
|
@@ -8,6 +8,7 @@ const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const runesReforged_json_1 = __importDefault(require("../assets/runesReforged.json"));
|
9
9
|
function generateRunesById() {
|
10
10
|
const runesById = {};
|
11
|
+
// Construct the new data and assign it to product object
|
11
12
|
for (const runeTree of runesReforged_json_1.default) {
|
12
13
|
for (const { runes } of runeTree.slots) {
|
13
14
|
for (const rune of runes) {
|
@@ -15,6 +16,7 @@ function generateRunesById() {
|
|
15
16
|
}
|
16
17
|
}
|
17
18
|
}
|
19
|
+
// Write to file
|
18
20
|
fs_1.default.writeFileSync(`src/generated/runesById.json`, JSON.stringify(runesById));
|
19
21
|
}
|
20
22
|
exports.generateRunesById = generateRunesById;
|
@@ -8,6 +8,7 @@ const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const runesReforged_json_1 = __importDefault(require("../assets/runesReforged.json"));
|
9
9
|
function generateRunesByName() {
|
10
10
|
const runesByName = {};
|
11
|
+
// Construct the new data and assign it to product object
|
11
12
|
for (const runeTree of runesReforged_json_1.default) {
|
12
13
|
for (const { runes } of runeTree.slots) {
|
13
14
|
for (const rune of runes) {
|
@@ -15,6 +16,7 @@ function generateRunesByName() {
|
|
15
16
|
}
|
16
17
|
}
|
17
18
|
}
|
19
|
+
// Write to file
|
18
20
|
fs_1.default.writeFileSync(`src/generated/runesByName.json`, JSON.stringify(runesByName));
|
19
21
|
}
|
20
22
|
exports.generateRunesByName = generateRunesByName;
|
@@ -11,6 +11,7 @@ function generateSummonerSpellsByKey() {
|
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
|
+
// Add all summoners' data to each corresponding key value
|
14
15
|
let summonerId;
|
15
16
|
for (summonerId in summoner_json_1.default.data) {
|
16
17
|
const summonerData = summoner_json_1.default.data[summonerId];
|
@@ -18,7 +19,9 @@ function generateSummonerSpellsByKey() {
|
|
18
19
|
...summonerData,
|
19
20
|
};
|
20
21
|
}
|
22
|
+
// Add version to the product object
|
21
23
|
summonersByKey.version = summoner_json_1.default.version;
|
24
|
+
// Write to file
|
22
25
|
fs_1.default.writeFileSync(`src/generated/summonerByKey.json`, JSON.stringify(summonersByKey));
|
23
26
|
}
|
24
27
|
exports.generateSummonerSpellsByKey = generateSummonerSpellsByKey;
|
@@ -11,6 +11,7 @@ function generateSummonerSpellsByName() {
|
|
11
11
|
data: {},
|
12
12
|
version: '',
|
13
13
|
};
|
14
|
+
// Add all summoners' data to each corresponding name value
|
14
15
|
let summonerId;
|
15
16
|
for (summonerId in summoner_json_1.default.data) {
|
16
17
|
const summonerData = summoner_json_1.default.data[summonerId];
|
@@ -18,7 +19,9 @@ function generateSummonerSpellsByName() {
|
|
18
19
|
...summonerData,
|
19
20
|
};
|
20
21
|
}
|
22
|
+
// Add version to the product object
|
21
23
|
summonersByName.version = summoner_json_1.default.version;
|
24
|
+
// Write to file
|
22
25
|
fs_1.default.writeFileSync(`src/generated/summonerByName.json`, JSON.stringify(summonersByName));
|
23
26
|
}
|
24
27
|
exports.generateSummonerSpellsByName = generateSummonerSpellsByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getChampionKeyByName = void 0;
|
7
|
+
const championByName_json_1 = __importDefault(require("../generated/championByName.json"));
|
8
|
+
function getChampionKeyByName(name) {
|
9
|
+
return championByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getChampionKeyByName = getChampionKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getChampionNameByKey = void 0;
|
7
|
+
const championByKey_json_1 = __importDefault(require("../generated/championByKey.json"));
|
8
|
+
function getChampionNameByKey(key) {
|
9
|
+
return championByKey_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getChampionNameByKey = getChampionNameByKey;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getItemKeyByName = void 0;
|
7
|
+
const itemByName_json_1 = __importDefault(require("../generated/itemByName.json"));
|
8
|
+
function getItemKeyByName(name) {
|
9
|
+
return itemByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getItemKeyByName = getItemKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getItemNameByKey = void 0;
|
7
|
+
const item_json_1 = __importDefault(require("../assets/item.json"));
|
8
|
+
function getItemNameByKey(key) {
|
9
|
+
return item_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getItemNameByKey = getItemNameByKey;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getRuneIdByName = void 0;
|
7
|
+
const runesByName_json_1 = __importDefault(require("../generated/runesByName.json"));
|
8
|
+
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
+
const isStatRuneName_1 = require("./isStatRuneName");
|
10
|
+
function getRuneIdByName(name) {
|
11
|
+
if ((0, isStatRuneName_1.isStatRuneName)(name)) {
|
12
|
+
let statRuneId;
|
13
|
+
for (statRuneId in StatRunes_1.StatRunes) {
|
14
|
+
if (StatRunes_1.StatRunes[statRuneId] == name)
|
15
|
+
return statRuneId;
|
16
|
+
}
|
17
|
+
// Code will never run this far
|
18
|
+
// but this to satisfy TypeScript and not put `statRuneName` in tree runes.
|
19
|
+
return '5001';
|
20
|
+
}
|
21
|
+
return runesByName_json_1.default[name].id;
|
22
|
+
}
|
23
|
+
exports.getRuneIdByName = getRuneIdByName;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getRuneNameById = void 0;
|
7
|
+
const runesById_json_1 = __importDefault(require("../generated/runesById.json"));
|
8
|
+
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
+
const isStatRuneId_1 = require("./isStatRuneId");
|
10
|
+
function getRuneNameById(id) {
|
11
|
+
if ((0, isStatRuneId_1.isStatRuneId)(id))
|
12
|
+
return StatRunes_1.StatRunes[id];
|
13
|
+
return runesById_json_1.default[id].name;
|
14
|
+
}
|
15
|
+
exports.getRuneNameById = getRuneNameById;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getSummonerSpellKeyByName = void 0;
|
7
|
+
const summonerByName_json_1 = __importDefault(require("../generated/summonerByName.json"));
|
8
|
+
function getSummonerSpellKeyByName(name) {
|
9
|
+
return summonerByName_json_1.default.data[name].key;
|
10
|
+
}
|
11
|
+
exports.getSummonerSpellKeyByName = getSummonerSpellKeyByName;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getSummonerSpellNameByKey = void 0;
|
7
|
+
const summonerByKey_json_1 = __importDefault(require("../generated/summonerByKey.json"));
|
8
|
+
function getSummonerSpellNameByKey(key) {
|
9
|
+
return summonerByKey_json_1.default.data[key].name;
|
10
|
+
}
|
11
|
+
exports.getSummonerSpellNameByKey = getSummonerSpellNameByKey;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneId = void 0;
|
4
|
+
const StatRuneIds_1 = require("../Constants/StatRuneIds");
|
5
|
+
function isStatRuneId(id) {
|
6
|
+
if (StatRuneIds_1.StatRuneIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isStatRuneId = isStatRuneId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneName = void 0;
|
4
|
+
const StatRuneNames_1 = require("../Constants/StatRuneNames");
|
5
|
+
function isStatRuneName(name) {
|
6
|
+
if (StatRuneNames_1.StatRuneNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isStatRuneName = isStatRuneName;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneId = void 0;
|
4
|
+
const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
|
5
|
+
function isTreeRuneId(id) {
|
6
|
+
if (TreeRuneIds_1.TreeRuneIds.includes(id))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isTreeRuneId = isTreeRuneId;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneName = void 0;
|
4
|
+
const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
|
5
|
+
function isTreeRuneName(name) {
|
6
|
+
if (TreeRuneNames_1.TreeRuneNames.includes(name))
|
7
|
+
return true;
|
8
|
+
return false;
|
9
|
+
}
|
10
|
+
exports.isTreeRuneName = isTreeRuneName;
|
package/dist/index.d.ts
CHANGED
@@ -17232,6 +17232,7 @@ export { ItemKeys } from './Constants/ItemKeys';
|
|
17232
17232
|
export { ItemNames } from './Constants/ItemNames';
|
17233
17233
|
export { RuneIds } from './Constants/RuneIds';
|
17234
17234
|
export { RuneNames } from './Constants/RuneNames';
|
17235
|
+
export { RuneSets } from './Constants/RuneSets';
|
17235
17236
|
export { StatRuneIds } from './Constants/StatRuneIds';
|
17236
17237
|
export { StatRuneNames } from './Constants/StatRuneNames';
|
17237
17238
|
export { StatRunes } from './Constants/StatRunes';
|
@@ -43397,14 +43398,26 @@ export declare const summonerByName: {
|
|
43397
43398
|
};
|
43398
43399
|
version: string;
|
43399
43400
|
};
|
43401
|
+
export { getChampionKeyByName } from './Helpers/getChampionKeyByName';
|
43402
|
+
export { getChampionNameByKey } from './Helpers/getChampionNameByKey';
|
43403
|
+
export { getItemKeyByName } from './Helpers/getItemKeyByName';
|
43404
|
+
export { getItemNameByKey } from './Helpers/getItemNameByKey';
|
43405
|
+
export { getRuneIdByName } from './Helpers/getRuneIdByName';
|
43406
|
+
export { getRuneNameById } from './Helpers/getRuneNameById';
|
43407
|
+
export { getSummonerSpellKeyByName } from './Helpers/getSummonerSpellKeyByName';
|
43408
|
+
export { getSummonerSpellNameByKey } from './Helpers/getSummonerSpellNameByKey';
|
43400
43409
|
export { isChampionKey } from './Helpers/isChampionKey';
|
43401
43410
|
export { isChampionName } from './Helpers/isChampionName';
|
43402
43411
|
export { isItemKey } from './Helpers/isItemKey';
|
43403
43412
|
export { isItemName } from './Helpers/isItemName';
|
43404
43413
|
export { isRuneId } from './Helpers/isRuneId';
|
43405
43414
|
export { isRuneName } from './Helpers/isRuneName';
|
43415
|
+
export { isStatRuneId } from './Helpers/isStatRuneId';
|
43416
|
+
export { isStatRuneName } from './Helpers/isStatRuneName';
|
43406
43417
|
export { isSummonerSpellId } from './Helpers/isSummonerSpellId';
|
43407
43418
|
export { isSummonerSpellKey } from './Helpers/isSummonerSpellKey';
|
43408
43419
|
export { isSummonerSpellName } from './Helpers/isSummonerSpellName';
|
43420
|
+
export { isTreeRuneId } from './Helpers/isTreeRuneId';
|
43421
|
+
export { isTreeRuneName } from './Helpers/isTreeRuneName';
|
43409
43422
|
export * from './types';
|
43410
43423
|
export * from './types/Meta';
|
package/dist/index.js
CHANGED
@@ -17,7 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
|
-
exports.isSummonerSpellName = exports.isSummonerSpellKey = exports.isSummonerSpellId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByName = exports.championByName = exports.championByKey = exports.TreeRuneNames = exports.TreeRuneIds = exports.SummonerSpellNames = exports.SummonerSpellKeys = exports.SummonerSpellIds = exports.StatRunes = exports.StatRuneNames = exports.StatRuneIds = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
|
20
|
+
exports.isTreeRuneName = exports.isTreeRuneId = exports.isSummonerSpellName = exports.isSummonerSpellKey = exports.isSummonerSpellId = exports.isStatRuneName = exports.isStatRuneId = exports.isRuneName = exports.isRuneId = exports.isItemName = exports.isItemKey = exports.isChampionName = exports.isChampionKey = exports.getSummonerSpellNameByKey = exports.getSummonerSpellKeyByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getItemNameByKey = exports.getItemKeyByName = exports.getChampionNameByKey = exports.getChampionKeyByName = exports.summonerByName = exports.summonerByKey = exports.runesByName = exports.runesById = exports.itemByName = exports.championByName = exports.championByKey = exports.TreeRuneNames = exports.TreeRuneIds = exports.SummonerSpellNames = exports.SummonerSpellKeys = exports.SummonerSpellIds = exports.StatRunes = exports.StatRuneNames = exports.StatRuneIds = exports.RuneSets = exports.RuneNames = exports.RuneIds = exports.ItemNames = exports.ItemKeys = exports.DDPaths = exports.ChampionNames = exports.ChampionKeys = exports.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
|
21
|
+
// # assets
|
21
22
|
const champion_json_1 = __importDefault(require("./assets/champion.json"));
|
22
23
|
const item_json_1 = __importDefault(require("./assets/item.json"));
|
23
24
|
const runesReforged_json_1 = __importDefault(require("./assets/runesReforged.json"));
|
@@ -26,6 +27,7 @@ exports.champion = champion_json_1.default;
|
|
26
27
|
exports.item = item_json_1.default;
|
27
28
|
exports.runesReforged = runesReforged_json_1.default;
|
28
29
|
exports.summoner = summoner_json_1.default;
|
30
|
+
// # Constants
|
29
31
|
var ChampionKeys_1 = require("./Constants/ChampionKeys");
|
30
32
|
Object.defineProperty(exports, "ChampionKeys", { enumerable: true, get: function () { return ChampionKeys_1.ChampionKeys; } });
|
31
33
|
var ChampionNames_1 = require("./Constants/ChampionNames");
|
@@ -40,6 +42,8 @@ var RuneIds_1 = require("./Constants/RuneIds");
|
|
40
42
|
Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
|
41
43
|
var RuneNames_1 = require("./Constants/RuneNames");
|
42
44
|
Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
|
45
|
+
var RuneSets_1 = require("./Constants/RuneSets");
|
46
|
+
Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
|
43
47
|
var StatRuneIds_1 = require("./Constants/StatRuneIds");
|
44
48
|
Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
|
45
49
|
var StatRuneNames_1 = require("./Constants/StatRuneNames");
|
@@ -56,6 +60,7 @@ var TreeRuneIds_1 = require("./Constants/TreeRuneIds");
|
|
56
60
|
Object.defineProperty(exports, "TreeRuneIds", { enumerable: true, get: function () { return TreeRuneIds_1.TreeRuneIds; } });
|
57
61
|
var TreeRuneNames_1 = require("./Constants/TreeRuneNames");
|
58
62
|
Object.defineProperty(exports, "TreeRuneNames", { enumerable: true, get: function () { return TreeRuneNames_1.TreeRuneNames; } });
|
63
|
+
// # generated
|
59
64
|
const championByKey_json_1 = __importDefault(require("./generated/championByKey.json"));
|
60
65
|
const championByName_json_1 = __importDefault(require("./generated/championByName.json"));
|
61
66
|
const itemByName_json_1 = __importDefault(require("./generated/itemByName.json"));
|
@@ -70,6 +75,23 @@ exports.runesById = runesById_json_1.default;
|
|
70
75
|
exports.runesByName = runesByName_json_1.default;
|
71
76
|
exports.summonerByKey = summonerByKey_json_1.default;
|
72
77
|
exports.summonerByName = summonerByName_json_1.default;
|
78
|
+
// # Helpers
|
79
|
+
var getChampionKeyByName_1 = require("./Helpers/getChampionKeyByName");
|
80
|
+
Object.defineProperty(exports, "getChampionKeyByName", { enumerable: true, get: function () { return getChampionKeyByName_1.getChampionKeyByName; } });
|
81
|
+
var getChampionNameByKey_1 = require("./Helpers/getChampionNameByKey");
|
82
|
+
Object.defineProperty(exports, "getChampionNameByKey", { enumerable: true, get: function () { return getChampionNameByKey_1.getChampionNameByKey; } });
|
83
|
+
var getItemKeyByName_1 = require("./Helpers/getItemKeyByName");
|
84
|
+
Object.defineProperty(exports, "getItemKeyByName", { enumerable: true, get: function () { return getItemKeyByName_1.getItemKeyByName; } });
|
85
|
+
var getItemNameByKey_1 = require("./Helpers/getItemNameByKey");
|
86
|
+
Object.defineProperty(exports, "getItemNameByKey", { enumerable: true, get: function () { return getItemNameByKey_1.getItemNameByKey; } });
|
87
|
+
var getRuneIdByName_1 = require("./Helpers/getRuneIdByName");
|
88
|
+
Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
|
89
|
+
var getRuneNameById_1 = require("./Helpers/getRuneNameById");
|
90
|
+
Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
|
91
|
+
var getSummonerSpellKeyByName_1 = require("./Helpers/getSummonerSpellKeyByName");
|
92
|
+
Object.defineProperty(exports, "getSummonerSpellKeyByName", { enumerable: true, get: function () { return getSummonerSpellKeyByName_1.getSummonerSpellKeyByName; } });
|
93
|
+
var getSummonerSpellNameByKey_1 = require("./Helpers/getSummonerSpellNameByKey");
|
94
|
+
Object.defineProperty(exports, "getSummonerSpellNameByKey", { enumerable: true, get: function () { return getSummonerSpellNameByKey_1.getSummonerSpellNameByKey; } });
|
73
95
|
var isChampionKey_1 = require("./Helpers/isChampionKey");
|
74
96
|
Object.defineProperty(exports, "isChampionKey", { enumerable: true, get: function () { return isChampionKey_1.isChampionKey; } });
|
75
97
|
var isChampionName_1 = require("./Helpers/isChampionName");
|
@@ -82,11 +104,21 @@ var isRuneId_1 = require("./Helpers/isRuneId");
|
|
82
104
|
Object.defineProperty(exports, "isRuneId", { enumerable: true, get: function () { return isRuneId_1.isRuneId; } });
|
83
105
|
var isRuneName_1 = require("./Helpers/isRuneName");
|
84
106
|
Object.defineProperty(exports, "isRuneName", { enumerable: true, get: function () { return isRuneName_1.isRuneName; } });
|
107
|
+
var isStatRuneId_1 = require("./Helpers/isStatRuneId");
|
108
|
+
Object.defineProperty(exports, "isStatRuneId", { enumerable: true, get: function () { return isStatRuneId_1.isStatRuneId; } });
|
109
|
+
var isStatRuneName_1 = require("./Helpers/isStatRuneName");
|
110
|
+
Object.defineProperty(exports, "isStatRuneName", { enumerable: true, get: function () { return isStatRuneName_1.isStatRuneName; } });
|
85
111
|
var isSummonerSpellId_1 = require("./Helpers/isSummonerSpellId");
|
86
112
|
Object.defineProperty(exports, "isSummonerSpellId", { enumerable: true, get: function () { return isSummonerSpellId_1.isSummonerSpellId; } });
|
87
113
|
var isSummonerSpellKey_1 = require("./Helpers/isSummonerSpellKey");
|
88
114
|
Object.defineProperty(exports, "isSummonerSpellKey", { enumerable: true, get: function () { return isSummonerSpellKey_1.isSummonerSpellKey; } });
|
89
115
|
var isSummonerSpellName_1 = require("./Helpers/isSummonerSpellName");
|
90
116
|
Object.defineProperty(exports, "isSummonerSpellName", { enumerable: true, get: function () { return isSummonerSpellName_1.isSummonerSpellName; } });
|
117
|
+
var isTreeRuneId_1 = require("./Helpers/isTreeRuneId");
|
118
|
+
Object.defineProperty(exports, "isTreeRuneId", { enumerable: true, get: function () { return isTreeRuneId_1.isTreeRuneId; } });
|
119
|
+
var isTreeRuneName_1 = require("./Helpers/isTreeRuneName");
|
120
|
+
Object.defineProperty(exports, "isTreeRuneName", { enumerable: true, get: function () { return isTreeRuneName_1.isTreeRuneName; } });
|
121
|
+
// # scripts
|
122
|
+
// # types
|
91
123
|
__exportStar(require("./types"), exports);
|
92
124
|
__exportStar(require("./types/Meta"), exports);
|
package/dist/types/Meta.d.ts
CHANGED
@@ -1,12 +1,38 @@
|
|
1
|
-
export declare type
|
2
|
-
export declare type
|
3
|
-
export declare type
|
4
|
-
export declare type
|
5
|
-
export declare type
|
1
|
+
export declare type Role = 'NONE' | 'SOLO' | 'CARRY' | 'SUPPORT';
|
2
|
+
export declare type Queue = 'RANKED_SOLO_5x5' | 'RANKED_FLEX_SR';
|
3
|
+
export declare type LeaguesTier = 'CHALLENGER' | 'GRANDMASTER' | 'MASTER' | 'DIAMOND' | 'PLATINUM' | 'GOLD' | 'SILVER' | 'BRONZE' | 'IRON';
|
4
|
+
export declare type LeaguesRank = 'I' | 'II' | 'III' | 'IV';
|
5
|
+
export declare type GameType = 'CUSTOM_GAME' | 'TUTORIAL_GAME' | 'MATCHED_GAME';
|
6
|
+
export declare type GameMode = 'CLASSIC' | 'ARAM' | 'TUTORIAL' | 'URF' | 'ONEFORALL' | 'KINGPORO' | 'GAMEMODEX' | 'ULTBOOK';
|
6
7
|
export declare type PlatformId = 'BR1' | 'EUN1' | 'EUW1' | 'JP1' | 'KR' | 'LA1' | 'LA2' | 'NA1' | 'OC1' | 'TR1' | 'RU';
|
7
8
|
export declare type Region = 'EUW' | 'EUNE' | 'NA' | 'KR' | 'JP' | 'OCE' | 'LAN' | 'LAS' | 'TR' | 'RU' | 'BR';
|
9
|
+
/**
|
10
|
+
* 0 — Custom games
|
11
|
+
* 400 — 5v5 Draft Pick games
|
12
|
+
* 420 — 5v5 Ranked Solo games
|
13
|
+
* 430 — 5v5 Blind Pick games
|
14
|
+
* 440 — 5v5 Ranked Flex games
|
15
|
+
* 450 — 5v5 ARAM games
|
16
|
+
* 700 — Clash games
|
17
|
+
* 900 — ARURF games
|
18
|
+
* 920 — Legend of the Poro King games
|
19
|
+
* 1020 — One for All games
|
20
|
+
* 1090 — Teamfight Tactics games
|
21
|
+
* 1100 — Ranked Teamfight Tactics games
|
22
|
+
* 1110 — Teamfight Tactics Tutorial games
|
23
|
+
* 1111 — Teamfight Tactics test games
|
24
|
+
* 1300 — Nexus Blitz games
|
25
|
+
* 1400 — Ultimate Spellbook games
|
26
|
+
* 1900 — Pick URF games
|
27
|
+
*/
|
8
28
|
export declare type QueueId = 0 | 400 | 420 | 430 | 440 | 450 | 700 | 900 | 920 | 1020 | 1090 | 1100 | 1110 | 1111 | 1300 | 1400 | 1900;
|
29
|
+
/**
|
30
|
+
* 11 — Summoner's Rift
|
31
|
+
* 12 — Howling Abyss
|
32
|
+
* 21 — Nexus Blitz
|
33
|
+
* 22 — Convergence
|
34
|
+
*/
|
9
35
|
export declare type MapId = 11 | 12 | 21 | 22;
|
10
36
|
export declare type TeamId = 100 | 200;
|
11
37
|
export declare type ParticipantId = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
12
|
-
export declare type
|
38
|
+
export declare type WardType = 'UNDEFINED' | 'YELLOW_TRINKET' | 'CONTROL_WARD';
|
package/dist/types/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ import summonerByName from '../generated/summonerByName.json';
|
|
8
8
|
import runesById from '../generated/runesById.json';
|
9
9
|
import { StatRunes } from '../Constants/StatRunes';
|
10
10
|
import runesByName from '../generated/runesByName.json';
|
11
|
+
import { RuneSets } from '../Constants/RuneSets';
|
11
12
|
export declare type ChampionKey = keyof typeof championByKey.data;
|
12
13
|
export declare type ChampionName = keyof typeof championByName.data;
|
13
14
|
export declare type ItemKey = keyof typeof item.data;
|
@@ -15,16 +16,148 @@ export declare type ItemName = keyof typeof itemByName.data;
|
|
15
16
|
export declare type SummonerSpellId = keyof typeof summoner.data;
|
16
17
|
export declare type SummonerSpellKey = keyof typeof summonerByKey.data;
|
17
18
|
export declare type SummonerSpellName = keyof typeof summonerByName.data;
|
19
|
+
/**
|
20
|
+
* There are 3 main Rune ID types:
|
21
|
+
* - `RuneId` (all),
|
22
|
+
* - `TreeRuneId` (all but stat runes),
|
23
|
+
* - `StatRuneId` (only stat runes).
|
24
|
+
*
|
25
|
+
* There are 6 more specific Rune ID types as well:
|
26
|
+
* - `KeystoneRuneId`,
|
27
|
+
* - `PrecisionTreeRuneId`,
|
28
|
+
* - `DominationTreeRuneId`,
|
29
|
+
* - `SorceryTreeRuneId`,
|
30
|
+
* - `ResolveTreeRuneId`,
|
31
|
+
* - `InspirationTreeRuneId`,
|
32
|
+
*/
|
18
33
|
export declare type RuneId = TreeRuneId | StatRuneId;
|
19
34
|
export declare type RuneName = TreeRuneName | StatRuneName;
|
35
|
+
/**
|
36
|
+
* There are 3 main Rune ID types:
|
37
|
+
* - `RuneId` (all),
|
38
|
+
* - `TreeRuneId` (all but stat runes),
|
39
|
+
* - `StatRuneId` (only stat runes).
|
40
|
+
*
|
41
|
+
* There are 6 more specific Rune ID types as well:
|
42
|
+
* - `KeystoneRuneId`,
|
43
|
+
* - `PrecisionTreeRuneId`,
|
44
|
+
* - `DominationTreeRuneId`,
|
45
|
+
* - `SorceryTreeRuneId`,
|
46
|
+
* - `ResolveTreeRuneId`,
|
47
|
+
* - `InspirationTreeRuneId`,
|
48
|
+
*/
|
20
49
|
export declare type TreeRuneId = keyof typeof runesById;
|
21
50
|
export declare type TreeRuneName = keyof typeof runesByName;
|
51
|
+
/**
|
52
|
+
* There are 3 main Rune ID types:
|
53
|
+
* - `RuneId` (all),
|
54
|
+
* - `TreeRuneId` (all but stat runes),
|
55
|
+
* - `StatRuneId` (only stat runes).
|
56
|
+
*
|
57
|
+
* There are 6 more specific Rune ID types as well:
|
58
|
+
* - `KeystoneRuneId`,
|
59
|
+
* - `PrecisionTreeRuneId`,
|
60
|
+
* - `DominationTreeRuneId`,
|
61
|
+
* - `SorceryTreeRuneId`,
|
62
|
+
* - `ResolveTreeRuneId`,
|
63
|
+
* - `InspirationTreeRuneId`,
|
64
|
+
*/
|
22
65
|
export declare type StatRuneId = keyof typeof StatRunes;
|
23
66
|
export declare type StatRuneName = typeof StatRunes[keyof typeof StatRunes];
|
67
|
+
/**
|
68
|
+
* There are 3 main Rune ID types:
|
69
|
+
* - `RuneId` (all),
|
70
|
+
* - `TreeRuneId` (all but stat runes),
|
71
|
+
* - `StatRuneId` (only stat runes).
|
72
|
+
*
|
73
|
+
* There are 6 more specific Rune ID types as well:
|
74
|
+
* - `KeystoneRuneId`,
|
75
|
+
* - `PrecisionTreeRuneId`,
|
76
|
+
* - `DominationTreeRuneId`,
|
77
|
+
* - `SorceryTreeRuneId`,
|
78
|
+
* - `ResolveTreeRuneId`,
|
79
|
+
* - `InspirationTreeRuneId`,
|
80
|
+
*/
|
81
|
+
export declare type KeystoneRuneId = Extract<typeof RuneSets.Keystones[keyof typeof RuneSets.Keystones], string>;
|
82
|
+
/**
|
83
|
+
* There are 3 main Rune ID types:
|
84
|
+
* - `RuneId` (all),
|
85
|
+
* - `TreeRuneId` (all but stat runes),
|
86
|
+
* - `StatRuneId` (only stat runes).
|
87
|
+
*
|
88
|
+
* There are 6 more specific Rune ID types as well:
|
89
|
+
* - `KeystoneRuneId`,
|
90
|
+
* - `PrecisionTreeRuneId`,
|
91
|
+
* - `DominationTreeRuneId`,
|
92
|
+
* - `SorceryTreeRuneId`,
|
93
|
+
* - `ResolveTreeRuneId`,
|
94
|
+
* - `InspirationTreeRuneId`,
|
95
|
+
*/
|
96
|
+
export declare type PrecisionTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Precision[keyof typeof RuneSets.PrimaryTrees.Precision], string>;
|
97
|
+
/**
|
98
|
+
* There are 3 main Rune ID types:
|
99
|
+
* - `RuneId` (all),
|
100
|
+
* - `TreeRuneId` (all but stat runes),
|
101
|
+
* - `StatRuneId` (only stat runes).
|
102
|
+
*
|
103
|
+
* There are 6 more specific Rune ID types as well:
|
104
|
+
* - `KeystoneRuneId`,
|
105
|
+
* - `PrecisionTreeRuneId`,
|
106
|
+
* - `DominationTreeRuneId`,
|
107
|
+
* - `SorceryTreeRuneId`,
|
108
|
+
* - `ResolveTreeRuneId`,
|
109
|
+
* - `InspirationTreeRuneId`,
|
110
|
+
*/
|
111
|
+
export declare type DominationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Domination[keyof typeof RuneSets.PrimaryTrees.Domination], string>;
|
112
|
+
/**
|
113
|
+
* There are 3 main Rune ID types:
|
114
|
+
* - `RuneId` (all),
|
115
|
+
* - `TreeRuneId` (all but stat runes),
|
116
|
+
* - `StatRuneId` (only stat runes).
|
117
|
+
*
|
118
|
+
* There are 6 more specific Rune ID types as well:
|
119
|
+
* - `KeystoneRuneId`,
|
120
|
+
* - `PrecisionTreeRuneId`,
|
121
|
+
* - `DominationTreeRuneId`,
|
122
|
+
* - `SorceryTreeRuneId`,
|
123
|
+
* - `ResolveTreeRuneId`,
|
124
|
+
* - `InspirationTreeRuneId`,
|
125
|
+
*/
|
126
|
+
export declare type SorceryTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Sorcery[keyof typeof RuneSets.PrimaryTrees.Sorcery], string>;
|
127
|
+
/**
|
128
|
+
* There are 3 main Rune ID types:
|
129
|
+
* - `RuneId` (all),
|
130
|
+
* - `TreeRuneId` (all but stat runes),
|
131
|
+
* - `StatRuneId` (only stat runes).
|
132
|
+
*
|
133
|
+
* There are 6 more specific Rune ID types as well:
|
134
|
+
* - `KeystoneRuneId`,
|
135
|
+
* - `PrecisionTreeRuneId`,
|
136
|
+
* - `DominationTreeRuneId`,
|
137
|
+
* - `SorceryTreeRuneId`,
|
138
|
+
* - `ResolveTreeRuneId`,
|
139
|
+
* - `InspirationTreeRuneId`,
|
140
|
+
*/
|
141
|
+
export declare type ResolveTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Resolve[keyof typeof RuneSets.PrimaryTrees.Resolve], string>;
|
142
|
+
/**
|
143
|
+
* There are 3 main Rune ID types:
|
144
|
+
* - `RuneId` (all),
|
145
|
+
* - `TreeRuneId` (all but stat runes),
|
146
|
+
* - `StatRuneId` (only stat runes).
|
147
|
+
*
|
148
|
+
* There are 6 more specific Rune ID types as well:
|
149
|
+
* - `KeystoneRuneId`,
|
150
|
+
* - `PrecisionTreeRuneId`,
|
151
|
+
* - `DominationTreeRuneId`,
|
152
|
+
* - `SorceryTreeRuneId`,
|
153
|
+
* - `ResolveTreeRuneId`,
|
154
|
+
* - `InspirationTreeRuneId`,
|
155
|
+
*/
|
156
|
+
export declare type InspirationTreeRuneId = Extract<typeof RuneSets.PrimaryTrees.Inspiration[keyof typeof RuneSets.PrimaryTrees.Inspiration], string>;
|
24
157
|
export declare type XP = number;
|
25
158
|
export declare type Minute = number;
|
26
|
-
export declare type
|
27
|
-
export declare type
|
28
|
-
export declare type
|
159
|
+
export declare type Position = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM' | 'UTILITY';
|
160
|
+
export declare type Lane = 'TOP' | 'JUNGLE' | 'MIDDLE' | 'BOTTOM';
|
161
|
+
export declare type RuneTreeName = 'Precision' | 'Domination' | 'Sorcery' | 'Resolve' | 'Inspiration';
|
29
162
|
export declare type Level = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18;
|
30
163
|
export declare type Skill = 'Q' | 'W' | 'E' | 'R';
|
package/package.json
CHANGED