lol-constants 3.0.7 → 3.1.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/dist/Patch.d.ts +1 -1
- package/dist/Patch.js +1 -1
- package/dist/helpers/champion.d.ts +2 -678
- package/dist/helpers/champion.js +3 -2
- package/dist/helpers/item.js +3 -2
- package/dist/helpers/spell.js +3 -2
- package/dist/lol.d.ts +51 -27
- package/dist/objects/Maps.js +3 -1
- package/dist/objects/Queues.js +3 -1
- package/dist/objects/Regions.js +3 -1
- package/dist/objects/generated/Champions.d.ts +5 -0
- package/dist/objects/generated/Champions.js +1 -0
- package/dist/objects/generated/Items.d.ts +76 -12
- package/dist/objects/generated/Items.js +4 -3
- package/dist/objects/generated/Runes.d.ts +52 -52
- package/dist/objects/generated/Runes.js +3 -3
- package/dist/objects/generated/Spells.d.ts +5 -0
- package/dist/objects/generated/Spells.js +1 -0
- package/package.json +5 -6
package/dist/helpers/item.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ItemSrTypes } from '../enums/ItemSrTypes';
|
2
|
-
import { bootsItemIds, itemNames, Items, } from '../objects/generated/Items';
|
2
|
+
import { bootsItemIds, failsafeItem, itemNames, Items, } from '../objects/generated/Items';
|
3
3
|
import { MapsArr } from '../objects/Maps';
|
4
4
|
/**
|
5
5
|
* Get an item by its **id** or **name**.
|
@@ -27,9 +27,10 @@ import { MapsArr } from '../objects/Maps';
|
|
27
27
|
* Use `lol.item.isAvailable` to determine whether item is available on a certain map.
|
28
28
|
*/
|
29
29
|
export function getItem(id_name, mapId = 11) {
|
30
|
+
var _a;
|
30
31
|
if (typeof id_name == 'number')
|
31
32
|
return Items[id_name];
|
32
|
-
return Items[getItemIdByName(id_name, mapId)];
|
33
|
+
return (_a = Items[getItemIdByName(id_name, mapId)]) !== null && _a !== void 0 ? _a : failsafeItem;
|
33
34
|
}
|
34
35
|
/** @see `getItem` */
|
35
36
|
function getItemIdByName(itemName, mapId = 11) {
|
package/dist/helpers/spell.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import { spellKeys, spellNames, Spells, } from '../objects/generated/Spells';
|
1
|
+
import { failsafeSpell, spellKeys, spellNames, Spells, } from '../objects/generated/Spells';
|
2
2
|
/** Get a summoner spell by its **id**, **key** or **name**. */
|
3
3
|
export function getSpell(id_key_name) {
|
4
|
+
var _a;
|
4
5
|
if (typeof id_key_name == 'number')
|
5
6
|
return Spells[id_key_name];
|
6
7
|
if (isSpellKey(id_key_name))
|
7
8
|
return Spells[spellKeys[id_key_name]];
|
8
|
-
return Spells[spellNames[id_key_name]];
|
9
|
+
return (_a = Spells[spellNames[id_key_name]]) !== null && _a !== void 0 ? _a : failsafeSpell;
|
9
10
|
}
|
10
11
|
export function isSpellId(id) {
|
11
12
|
return typeof id == 'number' && id in Spells;
|
package/dist/lol.d.ts
CHANGED
@@ -22,7 +22,7 @@ export declare const lol: {
|
|
22
22
|
* ## Current patch version
|
23
23
|
* What patch the library is currently on. *(read-only)*
|
24
24
|
*/
|
25
|
-
version: "
|
25
|
+
version: "15.1";
|
26
26
|
/**
|
27
27
|
* ## Constants
|
28
28
|
* Riot API defined constants.
|
@@ -1593,9 +1593,33 @@ export declare const lol: {
|
|
1593
1593
|
readonly id: 3165;
|
1594
1594
|
readonly name: "Morellonomicon";
|
1595
1595
|
readonly srType: 3;
|
1596
|
+
} | {
|
1597
|
+
readonly id: 3170;
|
1598
|
+
readonly name: "Swiftmarch";
|
1599
|
+
readonly srType: 12;
|
1600
|
+
} | {
|
1601
|
+
readonly id: 3171;
|
1602
|
+
readonly name: "Crimson Lucidity";
|
1603
|
+
readonly srType: 12;
|
1596
1604
|
} | {
|
1597
1605
|
readonly id: 3172;
|
1598
|
-
readonly name: "
|
1606
|
+
readonly name: "Gunmetal Greaves";
|
1607
|
+
readonly srType: 12;
|
1608
|
+
} | {
|
1609
|
+
readonly id: 3173;
|
1610
|
+
readonly name: "Chainlaced Crushers";
|
1611
|
+
readonly srType: 12;
|
1612
|
+
} | {
|
1613
|
+
readonly id: 3174;
|
1614
|
+
readonly name: "Armored Advance";
|
1615
|
+
readonly srType: 12;
|
1616
|
+
} | {
|
1617
|
+
readonly id: 3175;
|
1618
|
+
readonly name: "Spellslinger's Shoes";
|
1619
|
+
readonly srType: 12;
|
1620
|
+
} | {
|
1621
|
+
readonly id: 3176;
|
1622
|
+
readonly name: "Forever Forward";
|
1599
1623
|
readonly srType: 12;
|
1600
1624
|
} | {
|
1601
1625
|
readonly id: 3177;
|
@@ -2089,6 +2113,10 @@ export declare const lol: {
|
|
2089
2113
|
readonly id: 8001;
|
2090
2114
|
readonly name: "Anathema's Chains";
|
2091
2115
|
readonly srType: -1;
|
2116
|
+
} | {
|
2117
|
+
readonly id: 8010;
|
2118
|
+
readonly name: "Bloodletter's Curse";
|
2119
|
+
readonly srType: 3;
|
2092
2120
|
} | {
|
2093
2121
|
readonly id: 8020;
|
2094
2122
|
readonly name: "Abyssal Mask";
|
@@ -3077,10 +3105,6 @@ export declare const lol: {
|
|
3077
3105
|
readonly id: 447104;
|
3078
3106
|
readonly name: "Innervating Locket";
|
3079
3107
|
readonly srType: -1;
|
3080
|
-
} | {
|
3081
|
-
readonly id: 447105;
|
3082
|
-
readonly name: "Empyrean Promise";
|
3083
|
-
readonly srType: -1;
|
3084
3108
|
} | {
|
3085
3109
|
readonly id: 447106;
|
3086
3110
|
readonly name: "Dragonheart";
|
@@ -3243,14 +3267,6 @@ export declare const lol: {
|
|
3243
3267
|
readonly isKeystone: true;
|
3244
3268
|
readonly slot: 0;
|
3245
3269
|
readonly horizontal: readonly [8128, 9923];
|
3246
|
-
} | {
|
3247
|
-
readonly id: 8120;
|
3248
|
-
readonly key: "GhostPoro";
|
3249
|
-
readonly name: "Ghost Poro";
|
3250
|
-
readonly treeId: 8100;
|
3251
|
-
readonly isKeystone: false;
|
3252
|
-
readonly slot: 2;
|
3253
|
-
readonly horizontal: readonly [8136, 8138];
|
3254
3270
|
} | {
|
3255
3271
|
readonly id: 8126;
|
3256
3272
|
readonly key: "CheapShot";
|
@@ -3276,21 +3292,13 @@ export declare const lol: {
|
|
3276
3292
|
readonly slot: 3;
|
3277
3293
|
readonly horizontal: readonly [8105, 8106];
|
3278
3294
|
} | {
|
3279
|
-
readonly id:
|
3280
|
-
readonly key: "
|
3281
|
-
readonly name: "
|
3282
|
-
readonly treeId: 8100;
|
3283
|
-
readonly isKeystone: false;
|
3284
|
-
readonly slot: 2;
|
3285
|
-
readonly horizontal: readonly [8120, 8138];
|
3286
|
-
} | {
|
3287
|
-
readonly id: 8138;
|
3288
|
-
readonly key: "EyeballCollection";
|
3289
|
-
readonly name: "Eyeball Collection";
|
3295
|
+
readonly id: 8137;
|
3296
|
+
readonly key: "SixthSense";
|
3297
|
+
readonly name: "Sixth Sense";
|
3290
3298
|
readonly treeId: 8100;
|
3291
3299
|
readonly isKeystone: false;
|
3292
3300
|
readonly slot: 2;
|
3293
|
-
readonly horizontal: readonly [
|
3301
|
+
readonly horizontal: readonly [8140, 8141];
|
3294
3302
|
} | {
|
3295
3303
|
readonly id: 8139;
|
3296
3304
|
readonly key: "TasteOfBlood";
|
@@ -3299,6 +3307,22 @@ export declare const lol: {
|
|
3299
3307
|
readonly isKeystone: false;
|
3300
3308
|
readonly slot: 1;
|
3301
3309
|
readonly horizontal: readonly [8126, 8143];
|
3310
|
+
} | {
|
3311
|
+
readonly id: 8140;
|
3312
|
+
readonly key: "GrislyMementos";
|
3313
|
+
readonly name: "Grisly Mementos";
|
3314
|
+
readonly treeId: 8100;
|
3315
|
+
readonly isKeystone: false;
|
3316
|
+
readonly slot: 2;
|
3317
|
+
readonly horizontal: readonly [8137, 8141];
|
3318
|
+
} | {
|
3319
|
+
readonly id: 8141;
|
3320
|
+
readonly key: "DeepWard";
|
3321
|
+
readonly name: "Deep Ward";
|
3322
|
+
readonly treeId: 8100;
|
3323
|
+
readonly isKeystone: false;
|
3324
|
+
readonly slot: 2;
|
3325
|
+
readonly horizontal: readonly [8137, 8140];
|
3302
3326
|
} | {
|
3303
3327
|
readonly id: 8143;
|
3304
3328
|
readonly key: "SuddenImpact";
|
@@ -3326,7 +3350,7 @@ export declare const lol: {
|
|
3326
3350
|
} | {
|
3327
3351
|
readonly id: 8224;
|
3328
3352
|
readonly key: "NullifyingOrb";
|
3329
|
-
readonly name: "
|
3353
|
+
readonly name: "Axiom Arcanist";
|
3330
3354
|
readonly treeId: 8200;
|
3331
3355
|
readonly isKeystone: false;
|
3332
3356
|
readonly slot: 1;
|
package/dist/objects/Maps.js
CHANGED
@@ -26,6 +26,7 @@ export const Maps = {
|
|
26
26
|
/** 2024 Swarm event map */
|
27
27
|
33: { id: 33, title: "Swarm" },
|
28
28
|
};
|
29
|
+
const failsafeMap = { id: -1, title: '' };
|
29
30
|
export const MapsArr = Object.values(Maps);
|
30
31
|
const mapTitles = {
|
31
32
|
/** Tutorial map */
|
@@ -63,7 +64,8 @@ export function isMapTitle(title) {
|
|
63
64
|
}
|
64
65
|
/** Get map by its **id** or **title**. */
|
65
66
|
export function getMap(id_title) {
|
67
|
+
var _a;
|
66
68
|
if (typeof id_title == 'number')
|
67
69
|
return Maps[id_title];
|
68
|
-
return Maps[mapTitles[id_title]];
|
70
|
+
return (_a = Maps[mapTitles[id_title]]) !== null && _a !== void 0 ? _a : failsafeMap;
|
69
71
|
}
|
package/dist/objects/Queues.js
CHANGED
@@ -53,6 +53,7 @@ export const Queues = {
|
|
53
53
|
2010: { id: 2010, title: 'Tutorial 2' },
|
54
54
|
2020: { id: 2020, title: 'Tutorial 3' },
|
55
55
|
};
|
56
|
+
const failsafeQueue = { id: -1, title: '' };
|
56
57
|
export const QueuesArr = Object.values(Queues);
|
57
58
|
const queueTitles = {
|
58
59
|
'Custom': 0,
|
@@ -117,7 +118,8 @@ export function isQueueTitle(title) {
|
|
117
118
|
}
|
118
119
|
/** Get queue by its **id** or **title**. */
|
119
120
|
export function getQueue(id_title) {
|
121
|
+
var _a;
|
120
122
|
if (typeof id_title == 'number')
|
121
123
|
return Queues[id_title];
|
122
|
-
return Queues[queueTitles[id_title]];
|
124
|
+
return (_a = Queues[queueTitles[id_title]]) !== null && _a !== void 0 ? _a : failsafeQueue;
|
123
125
|
}
|
package/dist/objects/Regions.js
CHANGED
@@ -18,6 +18,7 @@ export const Regions = {
|
|
18
18
|
'MENA': { region: 'MENA', platform: 'ME1' },
|
19
19
|
'PBE': { region: 'PBE', platform: 'PBE1' },
|
20
20
|
};
|
21
|
+
const failsafeRegion = { region: '', platform: '' };
|
21
22
|
export const RegionsArr = Object.values(Regions);
|
22
23
|
const platforms = {
|
23
24
|
'BR1': 'BR',
|
@@ -51,7 +52,8 @@ export function isPlatform(platform) {
|
|
51
52
|
* Convert between the two.
|
52
53
|
*/
|
53
54
|
export function getRegion(region_platform) {
|
55
|
+
var _a;
|
54
56
|
if (isRegion(region_platform))
|
55
57
|
return Regions[region_platform];
|
56
|
-
return Regions[platforms[region_platform]];
|
58
|
+
return (_a = Regions[platforms[region_platform]]) !== null && _a !== void 0 ? _a : failsafeRegion;
|
57
59
|
}
|
@@ -845,6 +845,11 @@ export declare const Champions: {
|
|
845
845
|
readonly name: "Naafiri";
|
846
846
|
};
|
847
847
|
};
|
848
|
+
export declare const failsafeChampion: {
|
849
|
+
readonly id: -1;
|
850
|
+
readonly key: "";
|
851
|
+
readonly name: "";
|
852
|
+
};
|
848
853
|
export declare const championKeys: {
|
849
854
|
readonly Aatrox: 266;
|
850
855
|
readonly Ahri: 103;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export const Champions = { 1: { id: 1, key: "Annie", name: "Annie" }, 2: { id: 2, key: "Olaf", name: "Olaf" }, 3: { id: 3, key: "Galio", name: "Galio" }, 4: { id: 4, key: "TwistedFate", name: "Twisted Fate" }, 5: { id: 5, key: "XinZhao", name: "Xin Zhao" }, 6: { id: 6, key: "Urgot", name: "Urgot" }, 7: { id: 7, key: "Leblanc", name: "LeBlanc" }, 8: { id: 8, key: "Vladimir", name: "Vladimir" }, 9: { id: 9, key: "Fiddlesticks", name: "Fiddlesticks" }, 10: { id: 10, key: "Kayle", name: "Kayle" }, 11: { id: 11, key: "MasterYi", name: "Master Yi" }, 12: { id: 12, key: "Alistar", name: "Alistar" }, 13: { id: 13, key: "Ryze", name: "Ryze" }, 14: { id: 14, key: "Sion", name: "Sion" }, 15: { id: 15, key: "Sivir", name: "Sivir" }, 16: { id: 16, key: "Soraka", name: "Soraka" }, 17: { id: 17, key: "Teemo", name: "Teemo" }, 18: { id: 18, key: "Tristana", name: "Tristana" }, 19: { id: 19, key: "Warwick", name: "Warwick" }, 20: { id: 20, key: "Nunu", name: "Nunu & Willump" }, 21: { id: 21, key: "MissFortune", name: "Miss Fortune" }, 22: { id: 22, key: "Ashe", name: "Ashe" }, 23: { id: 23, key: "Tryndamere", name: "Tryndamere" }, 24: { id: 24, key: "Jax", name: "Jax" }, 25: { id: 25, key: "Morgana", name: "Morgana" }, 26: { id: 26, key: "Zilean", name: "Zilean" }, 27: { id: 27, key: "Singed", name: "Singed" }, 28: { id: 28, key: "Evelynn", name: "Evelynn" }, 29: { id: 29, key: "Twitch", name: "Twitch" }, 30: { id: 30, key: "Karthus", name: "Karthus" }, 31: { id: 31, key: "Chogath", name: "Cho'Gath" }, 32: { id: 32, key: "Amumu", name: "Amumu" }, 33: { id: 33, key: "Rammus", name: "Rammus" }, 34: { id: 34, key: "Anivia", name: "Anivia" }, 35: { id: 35, key: "Shaco", name: "Shaco" }, 36: { id: 36, key: "DrMundo", name: "Dr. Mundo" }, 37: { id: 37, key: "Sona", name: "Sona" }, 38: { id: 38, key: "Kassadin", name: "Kassadin" }, 39: { id: 39, key: "Irelia", name: "Irelia" }, 40: { id: 40, key: "Janna", name: "Janna" }, 41: { id: 41, key: "Gangplank", name: "Gangplank" }, 42: { id: 42, key: "Corki", name: "Corki" }, 43: { id: 43, key: "Karma", name: "Karma" }, 44: { id: 44, key: "Taric", name: "Taric" }, 45: { id: 45, key: "Veigar", name: "Veigar" }, 48: { id: 48, key: "Trundle", name: "Trundle" }, 50: { id: 50, key: "Swain", name: "Swain" }, 51: { id: 51, key: "Caitlyn", name: "Caitlyn" }, 53: { id: 53, key: "Blitzcrank", name: "Blitzcrank" }, 54: { id: 54, key: "Malphite", name: "Malphite" }, 55: { id: 55, key: "Katarina", name: "Katarina" }, 56: { id: 56, key: "Nocturne", name: "Nocturne" }, 57: { id: 57, key: "Maokai", name: "Maokai" }, 58: { id: 58, key: "Renekton", name: "Renekton" }, 59: { id: 59, key: "JarvanIV", name: "Jarvan IV" }, 60: { id: 60, key: "Elise", name: "Elise" }, 61: { id: 61, key: "Orianna", name: "Orianna" }, 62: { id: 62, key: "MonkeyKing", name: "Wukong" }, 63: { id: 63, key: "Brand", name: "Brand" }, 64: { id: 64, key: "LeeSin", name: "Lee Sin" }, 67: { id: 67, key: "Vayne", name: "Vayne" }, 68: { id: 68, key: "Rumble", name: "Rumble" }, 69: { id: 69, key: "Cassiopeia", name: "Cassiopeia" }, 72: { id: 72, key: "Skarner", name: "Skarner" }, 74: { id: 74, key: "Heimerdinger", name: "Heimerdinger" }, 75: { id: 75, key: "Nasus", name: "Nasus" }, 76: { id: 76, key: "Nidalee", name: "Nidalee" }, 77: { id: 77, key: "Udyr", name: "Udyr" }, 78: { id: 78, key: "Poppy", name: "Poppy" }, 79: { id: 79, key: "Gragas", name: "Gragas" }, 80: { id: 80, key: "Pantheon", name: "Pantheon" }, 81: { id: 81, key: "Ezreal", name: "Ezreal" }, 82: { id: 82, key: "Mordekaiser", name: "Mordekaiser" }, 83: { id: 83, key: "Yorick", name: "Yorick" }, 84: { id: 84, key: "Akali", name: "Akali" }, 85: { id: 85, key: "Kennen", name: "Kennen" }, 86: { id: 86, key: "Garen", name: "Garen" }, 89: { id: 89, key: "Leona", name: "Leona" }, 90: { id: 90, key: "Malzahar", name: "Malzahar" }, 91: { id: 91, key: "Talon", name: "Talon" }, 92: { id: 92, key: "Riven", name: "Riven" }, 96: { id: 96, key: "KogMaw", name: "Kog'Maw" }, 98: { id: 98, key: "Shen", name: "Shen" }, 99: { id: 99, key: "Lux", name: "Lux" }, 101: { id: 101, key: "Xerath", name: "Xerath" }, 102: { id: 102, key: "Shyvana", name: "Shyvana" }, 103: { id: 103, key: "Ahri", name: "Ahri" }, 104: { id: 104, key: "Graves", name: "Graves" }, 105: { id: 105, key: "Fizz", name: "Fizz" }, 106: { id: 106, key: "Volibear", name: "Volibear" }, 107: { id: 107, key: "Rengar", name: "Rengar" }, 110: { id: 110, key: "Varus", name: "Varus" }, 111: { id: 111, key: "Nautilus", name: "Nautilus" }, 112: { id: 112, key: "Viktor", name: "Viktor" }, 113: { id: 113, key: "Sejuani", name: "Sejuani" }, 114: { id: 114, key: "Fiora", name: "Fiora" }, 115: { id: 115, key: "Ziggs", name: "Ziggs" }, 117: { id: 117, key: "Lulu", name: "Lulu" }, 119: { id: 119, key: "Draven", name: "Draven" }, 120: { id: 120, key: "Hecarim", name: "Hecarim" }, 121: { id: 121, key: "Khazix", name: "Kha'Zix" }, 122: { id: 122, key: "Darius", name: "Darius" }, 126: { id: 126, key: "Jayce", name: "Jayce" }, 127: { id: 127, key: "Lissandra", name: "Lissandra" }, 131: { id: 131, key: "Diana", name: "Diana" }, 133: { id: 133, key: "Quinn", name: "Quinn" }, 134: { id: 134, key: "Syndra", name: "Syndra" }, 136: { id: 136, key: "AurelionSol", name: "Aurelion Sol" }, 141: { id: 141, key: "Kayn", name: "Kayn" }, 142: { id: 142, key: "Zoe", name: "Zoe" }, 143: { id: 143, key: "Zyra", name: "Zyra" }, 145: { id: 145, key: "Kaisa", name: "Kai'Sa" }, 147: { id: 147, key: "Seraphine", name: "Seraphine" }, 150: { id: 150, key: "Gnar", name: "Gnar" }, 154: { id: 154, key: "Zac", name: "Zac" }, 157: { id: 157, key: "Yasuo", name: "Yasuo" }, 161: { id: 161, key: "Velkoz", name: "Vel'Koz" }, 163: { id: 163, key: "Taliyah", name: "Taliyah" }, 164: { id: 164, key: "Camille", name: "Camille" }, 166: { id: 166, key: "Akshan", name: "Akshan" }, 200: { id: 200, key: "Belveth", name: "Bel'Veth" }, 201: { id: 201, key: "Braum", name: "Braum" }, 202: { id: 202, key: "Jhin", name: "Jhin" }, 203: { id: 203, key: "Kindred", name: "Kindred" }, 221: { id: 221, key: "Zeri", name: "Zeri" }, 222: { id: 222, key: "Jinx", name: "Jinx" }, 223: { id: 223, key: "TahmKench", name: "Tahm Kench" }, 233: { id: 233, key: "Briar", name: "Briar" }, 234: { id: 234, key: "Viego", name: "Viego" }, 235: { id: 235, key: "Senna", name: "Senna" }, 236: { id: 236, key: "Lucian", name: "Lucian" }, 238: { id: 238, key: "Zed", name: "Zed" }, 240: { id: 240, key: "Kled", name: "Kled" }, 245: { id: 245, key: "Ekko", name: "Ekko" }, 246: { id: 246, key: "Qiyana", name: "Qiyana" }, 254: { id: 254, key: "Vi", name: "Vi" }, 266: { id: 266, key: "Aatrox", name: "Aatrox" }, 267: { id: 267, key: "Nami", name: "Nami" }, 268: { id: 268, key: "Azir", name: "Azir" }, 350: { id: 350, key: "Yuumi", name: "Yuumi" }, 360: { id: 360, key: "Samira", name: "Samira" }, 412: { id: 412, key: "Thresh", name: "Thresh" }, 420: { id: 420, key: "Illaoi", name: "Illaoi" }, 421: { id: 421, key: "RekSai", name: "Rek'Sai" }, 427: { id: 427, key: "Ivern", name: "Ivern" }, 429: { id: 429, key: "Kalista", name: "Kalista" }, 432: { id: 432, key: "Bard", name: "Bard" }, 497: { id: 497, key: "Rakan", name: "Rakan" }, 498: { id: 498, key: "Xayah", name: "Xayah" }, 516: { id: 516, key: "Ornn", name: "Ornn" }, 517: { id: 517, key: "Sylas", name: "Sylas" }, 518: { id: 518, key: "Neeko", name: "Neeko" }, 523: { id: 523, key: "Aphelios", name: "Aphelios" }, 526: { id: 526, key: "Rell", name: "Rell" }, 555: { id: 555, key: "Pyke", name: "Pyke" }, 711: { id: 711, key: "Vex", name: "Vex" }, 777: { id: 777, key: "Yone", name: "Yone" }, 799: { id: 799, key: "Ambessa", name: "Ambessa" }, 875: { id: 875, key: "Sett", name: "Sett" }, 876: { id: 876, key: "Lillia", name: "Lillia" }, 887: { id: 887, key: "Gwen", name: "Gwen" }, 888: { id: 888, key: "Renata", name: "Renata Glasc" }, 893: { id: 893, key: "Aurora", name: "Aurora" }, 895: { id: 895, key: "Nilah", name: "Nilah" }, 897: { id: 897, key: "KSante", name: "K'Sante" }, 901: { id: 901, key: "Smolder", name: "Smolder" }, 902: { id: 902, key: "Milio", name: "Milio" }, 910: { id: 910, key: "Hwei", name: "Hwei" }, 950: { id: 950, key: "Naafiri", name: "Naafiri" } };
|
2
|
+
export const failsafeChampion = { id: -1, key: "", name: "" };
|
2
3
|
export const championKeys = { Aatrox: 266, Ahri: 103, Akali: 84, Akshan: 166, Alistar: 12, Ambessa: 799, Amumu: 32, Anivia: 34, Annie: 1, Aphelios: 523, Ashe: 22, AurelionSol: 136, Aurora: 893, Azir: 268, Bard: 432, Belveth: 200, Blitzcrank: 53, Brand: 63, Braum: 201, Briar: 233, Caitlyn: 51, Camille: 164, Cassiopeia: 69, Chogath: 31, Corki: 42, Darius: 122, Diana: 131, Draven: 119, DrMundo: 36, Ekko: 245, Elise: 60, Evelynn: 28, Ezreal: 81, Fiddlesticks: 9, Fiora: 114, Fizz: 105, Galio: 3, Gangplank: 41, Garen: 86, Gnar: 150, Gragas: 79, Graves: 104, Gwen: 887, Hecarim: 120, Heimerdinger: 74, Hwei: 910, Illaoi: 420, Irelia: 39, Ivern: 427, Janna: 40, JarvanIV: 59, Jax: 24, Jayce: 126, Jhin: 202, Jinx: 222, Kaisa: 145, Kalista: 429, Karma: 43, Karthus: 30, Kassadin: 38, Katarina: 55, Kayle: 10, Kayn: 141, Kennen: 85, Khazix: 121, Kindred: 203, Kled: 240, KogMaw: 96, KSante: 897, Leblanc: 7, LeeSin: 64, Leona: 89, Lillia: 876, Lissandra: 127, Lucian: 236, Lulu: 117, Lux: 99, Malphite: 54, Malzahar: 90, Maokai: 57, MasterYi: 11, Milio: 902, MissFortune: 21, MonkeyKing: 62, Mordekaiser: 82, Morgana: 25, Naafiri: 950, Nami: 267, Nasus: 75, Nautilus: 111, Neeko: 518, Nidalee: 76, Nilah: 895, Nocturne: 56, Nunu: 20, Olaf: 2, Orianna: 61, Ornn: 516, Pantheon: 80, Poppy: 78, Pyke: 555, Qiyana: 246, Quinn: 133, Rakan: 497, Rammus: 33, RekSai: 421, Rell: 526, Renata: 888, Renekton: 58, Rengar: 107, Riven: 92, Rumble: 68, Ryze: 13, Samira: 360, Sejuani: 113, Senna: 235, Seraphine: 147, Sett: 875, Shaco: 35, Shen: 98, Shyvana: 102, Singed: 27, Sion: 14, Sivir: 15, Skarner: 72, Smolder: 901, Sona: 37, Soraka: 16, Swain: 50, Sylas: 517, Syndra: 134, TahmKench: 223, Taliyah: 163, Talon: 91, Taric: 44, Teemo: 17, Thresh: 412, Tristana: 18, Trundle: 48, Tryndamere: 23, TwistedFate: 4, Twitch: 29, Udyr: 77, Urgot: 6, Varus: 110, Vayne: 67, Veigar: 45, Velkoz: 161, Vex: 711, Vi: 254, Viego: 234, Viktor: 112, Vladimir: 8, Volibear: 106, Warwick: 19, Xayah: 498, Xerath: 101, XinZhao: 5, Yasuo: 157, Yone: 777, Yorick: 83, Yuumi: 350, Zac: 154, Zed: 238, Zeri: 221, Ziggs: 115, Zilean: 26, Zoe: 142, Zyra: 143 };
|
3
4
|
export const championNames = { Aatrox: 266, Ahri: 103, Akali: 84, Akshan: 166, Alistar: 12, Ambessa: 799, Amumu: 32, Anivia: 34, Annie: 1, Aphelios: 523, Ashe: 22, "Aurelion Sol": 136, Aurora: 893, Azir: 268, Bard: 432, "Bel'Veth": 200, Blitzcrank: 53, Brand: 63, Braum: 201, Briar: 233, Caitlyn: 51, Camille: 164, Cassiopeia: 69, "Cho'Gath": 31, Corki: 42, Darius: 122, Diana: 131, Draven: 119, "Dr. Mundo": 36, Ekko: 245, Elise: 60, Evelynn: 28, Ezreal: 81, Fiddlesticks: 9, Fiora: 114, Fizz: 105, Galio: 3, Gangplank: 41, Garen: 86, Gnar: 150, Gragas: 79, Graves: 104, Gwen: 887, Hecarim: 120, Heimerdinger: 74, Hwei: 910, Illaoi: 420, Irelia: 39, Ivern: 427, Janna: 40, "Jarvan IV": 59, Jax: 24, Jayce: 126, Jhin: 202, Jinx: 222, "Kai'Sa": 145, Kalista: 429, Karma: 43, Karthus: 30, Kassadin: 38, Katarina: 55, Kayle: 10, Kayn: 141, Kennen: 85, "Kha'Zix": 121, Kindred: 203, Kled: 240, "Kog'Maw": 96, "K'Sante": 897, LeBlanc: 7, "Lee Sin": 64, Leona: 89, Lillia: 876, Lissandra: 127, Lucian: 236, Lulu: 117, Lux: 99, Malphite: 54, Malzahar: 90, Maokai: 57, "Master Yi": 11, Milio: 902, "Miss Fortune": 21, Wukong: 62, Mordekaiser: 82, Morgana: 25, Naafiri: 950, Nami: 267, Nasus: 75, Nautilus: 111, Neeko: 518, Nidalee: 76, Nilah: 895, Nocturne: 56, "Nunu & Willump": 20, Olaf: 2, Orianna: 61, Ornn: 516, Pantheon: 80, Poppy: 78, Pyke: 555, Qiyana: 246, Quinn: 133, Rakan: 497, Rammus: 33, "Rek'Sai": 421, Rell: 526, "Renata Glasc": 888, Renekton: 58, Rengar: 107, Riven: 92, Rumble: 68, Ryze: 13, Samira: 360, Sejuani: 113, Senna: 235, Seraphine: 147, Sett: 875, Shaco: 35, Shen: 98, Shyvana: 102, Singed: 27, Sion: 14, Sivir: 15, Skarner: 72, Smolder: 901, Sona: 37, Soraka: 16, Swain: 50, Sylas: 517, Syndra: 134, "Tahm Kench": 223, Taliyah: 163, Talon: 91, Taric: 44, Teemo: 17, Thresh: 412, Tristana: 18, Trundle: 48, Tryndamere: 23, "Twisted Fate": 4, Twitch: 29, Udyr: 77, Urgot: 6, Varus: 110, Vayne: 67, Veigar: 45, "Vel'Koz": 161, Vex: 711, Vi: 254, Viego: 234, Viktor: 112, Vladimir: 8, Volibear: 106, Warwick: 19, Xayah: 498, Xerath: 101, "Xin Zhao": 5, Yasuo: 157, Yone: 777, Yorick: 83, Yuumi: 350, Zac: 154, Zed: 238, Zeri: 221, Ziggs: 115, Zilean: 26, Zoe: 142, Zyra: 143 };
|
4
5
|
export const ChampionsArr = Object.values(Champions);
|
@@ -874,9 +874,39 @@ export declare const Items: {
|
|
874
874
|
readonly name: "Morellonomicon";
|
875
875
|
readonly srType: 3;
|
876
876
|
};
|
877
|
+
readonly 3170: {
|
878
|
+
readonly id: 3170;
|
879
|
+
readonly name: "Swiftmarch";
|
880
|
+
readonly srType: 12;
|
881
|
+
};
|
882
|
+
readonly 3171: {
|
883
|
+
readonly id: 3171;
|
884
|
+
readonly name: "Crimson Lucidity";
|
885
|
+
readonly srType: 12;
|
886
|
+
};
|
877
887
|
readonly 3172: {
|
878
888
|
readonly id: 3172;
|
879
|
-
readonly name: "
|
889
|
+
readonly name: "Gunmetal Greaves";
|
890
|
+
readonly srType: 12;
|
891
|
+
};
|
892
|
+
readonly 3173: {
|
893
|
+
readonly id: 3173;
|
894
|
+
readonly name: "Chainlaced Crushers";
|
895
|
+
readonly srType: 12;
|
896
|
+
};
|
897
|
+
readonly 3174: {
|
898
|
+
readonly id: 3174;
|
899
|
+
readonly name: "Armored Advance";
|
900
|
+
readonly srType: 12;
|
901
|
+
};
|
902
|
+
readonly 3175: {
|
903
|
+
readonly id: 3175;
|
904
|
+
readonly name: "Spellslinger's Shoes";
|
905
|
+
readonly srType: 12;
|
906
|
+
};
|
907
|
+
readonly 3176: {
|
908
|
+
readonly id: 3176;
|
909
|
+
readonly name: "Forever Forward";
|
880
910
|
readonly srType: 12;
|
881
911
|
};
|
882
912
|
readonly 3177: {
|
@@ -1494,6 +1524,11 @@ export declare const Items: {
|
|
1494
1524
|
readonly name: "Anathema's Chains";
|
1495
1525
|
readonly srType: -1;
|
1496
1526
|
};
|
1527
|
+
readonly 8010: {
|
1528
|
+
readonly id: 8010;
|
1529
|
+
readonly name: "Bloodletter's Curse";
|
1530
|
+
readonly srType: 3;
|
1531
|
+
};
|
1497
1532
|
readonly 8020: {
|
1498
1533
|
readonly id: 8020;
|
1499
1534
|
readonly name: "Abyssal Mask";
|
@@ -2729,11 +2764,6 @@ export declare const Items: {
|
|
2729
2764
|
readonly name: "Innervating Locket";
|
2730
2765
|
readonly srType: -1;
|
2731
2766
|
};
|
2732
|
-
readonly 447105: {
|
2733
|
-
readonly id: 447105;
|
2734
|
-
readonly name: "Empyrean Promise";
|
2735
|
-
readonly srType: -1;
|
2736
|
-
};
|
2737
2767
|
readonly 447106: {
|
2738
2768
|
readonly id: 447106;
|
2739
2769
|
readonly name: "Dragonheart";
|
@@ -2820,6 +2850,11 @@ export declare const Items: {
|
|
2820
2850
|
readonly srType: -1;
|
2821
2851
|
};
|
2822
2852
|
};
|
2853
|
+
export declare const failsafeItem: {
|
2854
|
+
readonly id: -1;
|
2855
|
+
readonly name: "";
|
2856
|
+
readonly srType: -1;
|
2857
|
+
};
|
2823
2858
|
export declare const ItemsArr: ({
|
2824
2859
|
readonly id: 1001;
|
2825
2860
|
readonly name: "Boots";
|
@@ -3520,9 +3555,33 @@ export declare const ItemsArr: ({
|
|
3520
3555
|
readonly id: 3165;
|
3521
3556
|
readonly name: "Morellonomicon";
|
3522
3557
|
readonly srType: 3;
|
3558
|
+
} | {
|
3559
|
+
readonly id: 3170;
|
3560
|
+
readonly name: "Swiftmarch";
|
3561
|
+
readonly srType: 12;
|
3562
|
+
} | {
|
3563
|
+
readonly id: 3171;
|
3564
|
+
readonly name: "Crimson Lucidity";
|
3565
|
+
readonly srType: 12;
|
3523
3566
|
} | {
|
3524
3567
|
readonly id: 3172;
|
3525
|
-
readonly name: "
|
3568
|
+
readonly name: "Gunmetal Greaves";
|
3569
|
+
readonly srType: 12;
|
3570
|
+
} | {
|
3571
|
+
readonly id: 3173;
|
3572
|
+
readonly name: "Chainlaced Crushers";
|
3573
|
+
readonly srType: 12;
|
3574
|
+
} | {
|
3575
|
+
readonly id: 3174;
|
3576
|
+
readonly name: "Armored Advance";
|
3577
|
+
readonly srType: 12;
|
3578
|
+
} | {
|
3579
|
+
readonly id: 3175;
|
3580
|
+
readonly name: "Spellslinger's Shoes";
|
3581
|
+
readonly srType: 12;
|
3582
|
+
} | {
|
3583
|
+
readonly id: 3176;
|
3584
|
+
readonly name: "Forever Forward";
|
3526
3585
|
readonly srType: 12;
|
3527
3586
|
} | {
|
3528
3587
|
readonly id: 3177;
|
@@ -4016,6 +4075,10 @@ export declare const ItemsArr: ({
|
|
4016
4075
|
readonly id: 8001;
|
4017
4076
|
readonly name: "Anathema's Chains";
|
4018
4077
|
readonly srType: -1;
|
4078
|
+
} | {
|
4079
|
+
readonly id: 8010;
|
4080
|
+
readonly name: "Bloodletter's Curse";
|
4081
|
+
readonly srType: 3;
|
4019
4082
|
} | {
|
4020
4083
|
readonly id: 8020;
|
4021
4084
|
readonly name: "Abyssal Mask";
|
@@ -5004,10 +5067,6 @@ export declare const ItemsArr: ({
|
|
5004
5067
|
readonly id: 447104;
|
5005
5068
|
readonly name: "Innervating Locket";
|
5006
5069
|
readonly srType: -1;
|
5007
|
-
} | {
|
5008
|
-
readonly id: 447105;
|
5009
|
-
readonly name: "Empyrean Promise";
|
5010
|
-
readonly srType: -1;
|
5011
5070
|
} | {
|
5012
5071
|
readonly id: 447106;
|
5013
5072
|
readonly name: "Dragonheart";
|
@@ -5097,7 +5156,11 @@ export declare const bootsItemIds: {
|
|
5097
5156
|
readonly 3111: true;
|
5098
5157
|
readonly 3117: true;
|
5099
5158
|
readonly 3158: true;
|
5100
|
-
readonly
|
5159
|
+
readonly 3170: true;
|
5160
|
+
readonly 3173: true;
|
5161
|
+
readonly 3174: true;
|
5162
|
+
readonly 3175: true;
|
5163
|
+
readonly 3176: true;
|
5101
5164
|
readonly 223005: true;
|
5102
5165
|
readonly 223006: true;
|
5103
5166
|
readonly 223009: true;
|
@@ -5105,4 +5168,5 @@ export declare const bootsItemIds: {
|
|
5105
5168
|
readonly 223047: true;
|
5106
5169
|
readonly 223111: true;
|
5107
5170
|
readonly 223158: true;
|
5171
|
+
readonly 223172: true;
|
5108
5172
|
};
|