lol-constants 2.6.2 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/constants/BootsItemNames.d.ts +0 -5
- package/assets/constants/BootsItemNames.js +1 -8
- package/assets/constants/Champion.d.ts +345 -298
- package/assets/constants/Champion.js +1 -1
- package/assets/constants/Item.d.ts +6491 -994
- package/assets/constants/Item.js +1 -1
- package/assets/constants/LegendaryItemNames.d.ts +0 -5
- package/assets/constants/LegendaryItemNames.js +1 -8
- package/assets/constants/MythicItemNames.d.ts +0 -5
- package/assets/constants/MythicItemNames.js +3 -37
- package/assets/constants/OrnnItemNames.d.ts +1 -0
- package/assets/constants/OrnnItemNames.js +33 -0
- package/assets/constants/RunesReforged.d.ts +2 -2
- package/assets/constants/RunesReforged.js +1 -1
- package/assets/constants/StatRunes.d.ts +0 -4
- package/assets/constants/StatRunes.js +0 -3
- package/assets/constants/StatRunesByRow.d.ts +0 -3
- package/assets/constants/StatRunesByRow.js +0 -3
- package/assets/constants/Summoner.d.ts +96 -32
- package/assets/constants/Summoner.js +1 -1
- package/assets/index.d.ts +0 -5
- package/assets/index.js +6 -5
- package/core/constants/Champions/ChampionIds.d.ts +1 -0
- package/core/constants/Champions/ChampionIds.js +1 -1
- package/core/constants/Champions/ChampionIdsByName.d.ts +1 -0
- package/core/constants/Champions/ChampionIdsByName.js +1 -1
- package/core/constants/Champions/ChampionKeys.d.ts +1 -0
- package/core/constants/Champions/ChampionKeys.js +1 -1
- package/core/constants/Champions/ChampionKeysNum.d.ts +1 -0
- package/core/constants/Champions/ChampionKeysNum.js +1 -1
- package/core/constants/Champions/ChampionNames.d.ts +1 -0
- package/core/constants/Champions/ChampionNames.js +1 -1
- package/core/constants/DataDragonUrls.js +2 -2
- package/core/constants/Items/BootsItemKeys.d.ts +6 -6
- package/core/constants/Items/BootsItemKeys.js +1 -1
- package/core/constants/Items/BootsItemKeysNum.d.ts +6 -6
- package/core/constants/Items/BootsItemKeysNum.js +1 -1
- package/core/constants/Items/BootsItemNames.d.ts +6 -0
- package/core/constants/Items/BootsItemNames.js +1 -1
- package/core/constants/Items/ItemKeys.d.ts +151 -137
- package/core/constants/Items/ItemKeys.js +1 -1
- package/core/constants/Items/ItemKeysNum.d.ts +151 -137
- package/core/constants/Items/ItemKeysNum.js +1 -1
- package/core/constants/Items/ItemNames.d.ts +151 -3
- package/core/constants/Items/ItemNames.js +1 -1
- package/core/constants/Items/LegendaryItemKeys.d.ts +66 -66
- package/core/constants/Items/LegendaryItemKeys.js +1 -1
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +66 -66
- package/core/constants/Items/LegendaryItemKeysNum.js +1 -1
- package/core/constants/Items/LegendaryItemNames.d.ts +66 -0
- package/core/constants/Items/LegendaryItemNames.js +1 -1
- package/core/constants/Items/MythicItemKeys.d.ts +58 -58
- package/core/constants/Items/MythicItemKeys.js +1 -1
- package/core/constants/Items/MythicItemKeysNum.d.ts +58 -58
- package/core/constants/Items/MythicItemKeysNum.js +1 -1
- package/core/constants/Items/MythicItemNames.d.ts +58 -0
- package/core/constants/Items/MythicItemNames.js +1 -1
- 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/Spells/SpellIds.d.ts +2 -0
- package/core/constants/Spells/SpellIds.js +1 -1
- package/core/constants/Spells/SpellIdsByName.d.ts +2 -1
- package/core/constants/Spells/SpellIdsByName.js +1 -1
- package/core/constants/Spells/SpellKeys.d.ts +2 -0
- package/core/constants/Spells/SpellKeys.js +1 -1
- package/core/constants/Spells/SpellKeysNum.d.ts +2 -0
- package/core/constants/Spells/SpellKeysNum.js +1 -1
- package/core/constants/Spells/SpellNames.d.ts +2 -0
- package/core/constants/Spells/SpellNames.js +1 -1
- package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
- package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
- package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
- package/core/helpers/Items/isBootsItemKeyNum.d.ts +2 -0
- package/core/helpers/Items/isBootsItemKeyNum.js +8 -0
- package/core/helpers/Items/isBootsItemName.d.ts +1 -1
- package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +2 -0
- package/core/helpers/Items/isLegendaryItemKeyNum.js +8 -0
- package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
- package/core/helpers/Items/isMythicItemKeyNum.d.ts +2 -0
- package/core/helpers/Items/isMythicItemKeyNum.js +8 -0
- package/core/helpers/Items/isMythicItemName.d.ts +1 -1
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +1 -1
- package/core/helpers/Runes/getStatRuneNameById.d.ts +1 -1
- package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
- package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
- package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
- package/package.json +2 -2
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.MythicItemNames = void 0;
|
4
|
-
exports.MythicItemNames = { "2065": "Shurelya's Battlesong", "3001": "Evenshroud", "3031": "Infinity Edge", "3078": "Trinity Force", "3084": "Heartsteel", "3124": "Guinsoo's Rageblade", "3142": "Youmuu's Ghostblade", "3152": "Hextech Rocketbelt", "3190": "Locket of the Iron Solari", "4005": "Imperial Mandate", "4633": "Riftmaker", "4636": "Night Harvester", "4644": "Crown of the Shattered Queen", "6617": "Moonstone Renewer", "6620": "Echoes of Helia", "6630": "Goredrinker", "6631": "Stridebreaker", "6632": "Divine Sunderer", "6653": "Liandry's Anguish", "6655": "Luden's Tempest", "6656": "Everfrost", "6657": "Rod of Ages", "6662": "Iceborn Gauntlet", "6664": "Turbo Chemtank", "6665": "Jak'Sho, The Protean", "6667": "Radiant Virtue", "6671": "Galeforce", "6675": "Navori Quickblades", "6691": "Duskblade of Draktharr", "6692": "Eclipse", "7001": "Syzygy", "7002": "Draktharr's Shadowcarver", "7005": "Frozen Fist", "7006": "Typhoon", "7009": "Icathia's Curse", "7010": "Vespertide", "7011": "Upgraded Aeropack", "7012": "Liandry's Lament", "7013": "Eye of Luden", "7014": "Eternal Winter", "7015": "Ceaseless Hunger", "7016": "Dreamshatter", "7017": "Deicide", "7018": "Infinity Force", "7019": "Reliquary of the Golden Dawn", "7020": "Shurelya's Requiem", "7021": "Starcaster", "7023": "Equinox", "7024": "Caesura", "7025": "Leviathan", "7026": "The Unspoken Parasite", "7027": "Primordial Dawn", "7028": "Infinite Convergence", "7029": "Youmuu's Wake", "7030": "Seething Sorrow", "7031": "Edge of Finality", "7032": "Flicker", "7033": "Cry of the Shrieking City" };
|
4
|
+
exports.MythicItemNames = { "2065": "Shurelya's Battlesong", "3001": "Evenshroud", "3031": "Infinity Edge", "3078": "Trinity Force", "3084": "Heartsteel", "3124": "Guinsoo's Rageblade", "3142": "Youmuu's Ghostblade", "3152": "Hextech Rocketbelt", "3190": "Locket of the Iron Solari", "4005": "Imperial Mandate", "4633": "Riftmaker", "4636": "Night Harvester", "4644": "Crown of the Shattered Queen", "6617": "Moonstone Renewer", "6620": "Echoes of Helia", "6630": "Goredrinker", "6631": "Stridebreaker", "6632": "Divine Sunderer", "6653": "Liandry's Anguish", "6655": "Luden's Tempest", "6656": "Everfrost", "6657": "Rod of Ages", "6662": "Iceborn Gauntlet", "6664": "Turbo Chemtank", "6665": "Jak'Sho, The Protean", "6667": "Radiant Virtue", "6671": "Galeforce", "6675": "Navori Quickblades", "6691": "Duskblade of Draktharr", "6692": "Eclipse", "7001": "Syzygy", "7002": "Draktharr's Shadowcarver", "7005": "Frozen Fist", "7006": "Typhoon", "7009": "Icathia's Curse", "7010": "Vespertide", "7011": "Upgraded Aeropack", "7012": "Liandry's Lament", "7013": "Eye of Luden", "7014": "Eternal Winter", "7015": "Ceaseless Hunger", "7016": "Dreamshatter", "7017": "Deicide", "7018": "Infinity Force", "7019": "Reliquary of the Golden Dawn", "7020": "Shurelya's Requiem", "7021": "Starcaster", "7023": "Equinox", "7024": "Caesura", "7025": "Leviathan", "7026": "The Unspoken Parasite", "7027": "Primordial Dawn", "7028": "Infinite Convergence", "7029": "Youmuu's Wake", "7030": "Seething Sorrow", "7031": "Edge of Finality", "7032": "Flicker", "7033": "Cry of the Shrieking City", "222065": "Shurelya's Battlesong", "223001": "Evenshroud", "223031": "Infinity Edge", "223078": "Trinity Force", "223084": "Heartsteel", "223124": "Guinsoo's Rageblade", "223142": "Youmuu's Ghostblade", "223152": "Hextech Rocketbelt", "223190": "Locket of the Iron Solari", "224005": "Imperial Mandate", "224633": "Riftmaker", "224636": "Night Harvester", "224644": "Crown of the Shattered Queen", "226617": "Moonstone Renewer", "226620": "Echoes of Helia", "226630": "Goredrinker", "226631": "Stridebreaker", "226632": "Divine Sunderer", "226653": "Liandry's Anguish", "226655": "Luden's Tempest", "226656": "Everfrost", "226657": "Rod of Ages", "226662": "Iceborn Gauntlet", "226664": "Turbo Chemtank", "226665": "Jak'Sho, The Protean", "226667": "Radiant Virtue", "226671": "Galeforce", "226675": "Navori Quickblades", "226691": "Duskblade of Draktharr", "226692": "Eclipse", "227001": "Syzygy", "227002": "Draktharr's Shadowcarver", "227005": "Frozen Fist", "227006": "Typhoon", "227009": "Icathia's Curse", "227010": "Vespertide", "227011": "Upgraded Aeropack", "227012": "Liandry's Lament", "227013": "Eye of Luden", "227014": "Eternal Winter", "227015": "Ceaseless Hunger", "227016": "Dreamshatter", "227017": "Deicide", "227018": "Infinity Force", "227019": "Reliquary of the Golden Dawn", "227020": "Shurelya's Requiem", "227021": "Starcaster", "227023": "Equinox", "227024": "Caesura", "227025": "Leviathan", "227026": "The Unspoken Parasite", "227027": "Primordial Dawn", "227028": "Infinite Convergence", "227029": "Youmuu's Wake", "227030": "Seething Sorrow", "227031": "Edge of Finality", "227032": "Flicker", "227033": "Cry of the Shrieking City" };
|
@@ -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;
|
@@ -15,5 +15,7 @@ export declare const SpellIds: {
|
|
15
15
|
readonly "39": "SummonerSnowURFSnowball_Mark";
|
16
16
|
readonly "54": "Summoner_UltBookPlaceholder";
|
17
17
|
readonly "55": "Summoner_UltBookSmitePlaceholder";
|
18
|
+
readonly "2201": "SummonerCherryHold";
|
19
|
+
readonly "2202": "SummonerCherryFlash";
|
18
20
|
};
|
19
21
|
export type SpellId = typeof SpellIds[keyof typeof SpellIds];
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SpellIds = void 0;
|
4
|
-
exports.SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder" };
|
4
|
+
exports.SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder", "2201": "SummonerCherryHold", "2202": "SummonerCherryFlash" };
|
@@ -1,9 +1,10 @@
|
|
1
1
|
export declare const SpellIdsByName: {
|
2
2
|
readonly Barrier: "SummonerBarrier";
|
3
3
|
readonly Cleanse: "SummonerBoost";
|
4
|
+
readonly Flash: "SummonerFlash";
|
5
|
+
readonly Flee: "SummonerCherryHold";
|
4
6
|
readonly Ignite: "SummonerDot";
|
5
7
|
readonly Exhaust: "SummonerExhaust";
|
6
|
-
readonly Flash: "SummonerFlash";
|
7
8
|
readonly Ghost: "SummonerHaste";
|
8
9
|
readonly Heal: "SummonerHeal";
|
9
10
|
readonly Clarity: "SummonerMana";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SpellIdsByName = void 0;
|
4
|
-
exports.SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "
|
4
|
+
exports.SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "Flash": "SummonerFlash", "Flee": "SummonerCherryHold", "Ignite": "SummonerDot", "Exhaust": "SummonerExhaust", "Ghost": "SummonerHaste", "Heal": "SummonerHeal", "Clarity": "SummonerMana", "To the King!": "SummonerPoroRecall", "Poro Toss": "SummonerPoroThrow", "Smite": "SummonerSmite", "Mark": "SummonerSnowball", "Teleport": "SummonerTeleport", "Placeholder": "Summoner_UltBookPlaceholder", "Placeholder and Attack-Smite": "Summoner_UltBookSmitePlaceholder" };
|
@@ -1,6 +1,8 @@
|
|
1
1
|
export declare const SpellKeys: {
|
2
2
|
readonly SummonerBarrier: "21";
|
3
3
|
readonly SummonerBoost: "1";
|
4
|
+
readonly SummonerCherryFlash: "2202";
|
5
|
+
readonly SummonerCherryHold: "2201";
|
4
6
|
readonly SummonerDot: "14";
|
5
7
|
readonly SummonerExhaust: "3";
|
6
8
|
readonly SummonerFlash: "4";
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SpellKeys = void 0;
|
4
|
-
exports.SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "SummonerDot": "14", "SummonerExhaust": "3", "SummonerFlash": "4", "SummonerHaste": "6", "SummonerHeal": "7", "SummonerMana": "13", "SummonerPoroRecall": "30", "SummonerPoroThrow": "31", "SummonerSmite": "11", "SummonerSnowURFSnowball_Mark": "39", "SummonerSnowball": "32", "SummonerTeleport": "12", "Summoner_UltBookPlaceholder": "54", "Summoner_UltBookSmitePlaceholder": "55" };
|
4
|
+
exports.SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "SummonerCherryFlash": "2202", "SummonerCherryHold": "2201", "SummonerDot": "14", "SummonerExhaust": "3", "SummonerFlash": "4", "SummonerHaste": "6", "SummonerHeal": "7", "SummonerMana": "13", "SummonerPoroRecall": "30", "SummonerPoroThrow": "31", "SummonerSmite": "11", "SummonerSnowURFSnowball_Mark": "39", "SummonerSnowball": "32", "SummonerTeleport": "12", "Summoner_UltBookPlaceholder": "54", "Summoner_UltBookSmitePlaceholder": "55" };
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SpellKeysNum = void 0;
|
4
|
-
exports.SpellKeysNum = { "SummonerBarrier": 21, "SummonerBoost": 1, "SummonerDot": 14, "SummonerExhaust": 3, "SummonerFlash": 4, "SummonerHaste": 6, "SummonerHeal": 7, "SummonerMana": 13, "SummonerPoroRecall": 30, "SummonerPoroThrow": 31, "SummonerSmite": 11, "SummonerSnowURFSnowball_Mark": 39, "SummonerSnowball": 32, "SummonerTeleport": 12, "Summoner_UltBookPlaceholder": 54, "Summoner_UltBookSmitePlaceholder": 55 };
|
4
|
+
exports.SpellKeysNum = { "SummonerBarrier": 21, "SummonerBoost": 1, "SummonerCherryFlash": 2202, "SummonerCherryHold": 2201, "SummonerDot": 14, "SummonerExhaust": 3, "SummonerFlash": 4, "SummonerHaste": 6, "SummonerHeal": 7, "SummonerMana": 13, "SummonerPoroRecall": 30, "SummonerPoroThrow": 31, "SummonerSmite": 11, "SummonerSnowURFSnowball_Mark": 39, "SummonerSnowball": 32, "SummonerTeleport": 12, "Summoner_UltBookPlaceholder": 54, "Summoner_UltBookSmitePlaceholder": 55 };
|
@@ -15,5 +15,7 @@ export declare const SpellNames: {
|
|
15
15
|
readonly "39": "Mark";
|
16
16
|
readonly "54": "Placeholder";
|
17
17
|
readonly "55": "Placeholder and Attack-Smite";
|
18
|
+
readonly "2201": "Flee";
|
19
|
+
readonly "2202": "Flash";
|
18
20
|
};
|
19
21
|
export type SpellName = typeof SpellNames[keyof typeof SpellNames];
|
@@ -1,4 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.SpellNames = void 0;
|
4
|
-
exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite" };
|
4
|
+
exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite", "2201": "Flee", "2202": "Flash" };
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
2
|
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
3
|
-
|
3
|
+
import { ChampionKeyNum } from '../../constants/Champions/ChampionKeysNum';
|
4
|
+
export declare function getChampionIdByKey(key: ChampionKey | ChampionKeyNum): ChampionId;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
|
+
import { ChampionKeyNum } from '../../constants/Champions/ChampionKeysNum';
|
2
3
|
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
3
|
-
export declare function getChampionNameByKey(key: ChampionKey): ChampionName;
|
4
|
+
export declare function getChampionNameByKey(key: ChampionKey | ChampionKeyNum): ChampionName;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { ItemKey } from '../../constants/Items/ItemKeys';
|
2
|
+
import { ItemKeyNum } from '../../constants/Items/ItemKeysNum';
|
2
3
|
import { ItemName } from '../../constants/Items/ItemNames';
|
3
|
-
export declare function getItemNameByKey(key: ItemKey): ItemName;
|
4
|
+
export declare function getItemNameByKey(key: ItemKey | ItemKeyNum): ItemName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isBootsItemKeyNum = void 0;
|
4
|
+
const BootsItemNames_1 = require("../../constants/Items/BootsItemNames");
|
5
|
+
function isBootsItemKeyNum(key) {
|
6
|
+
return key in BootsItemNames_1.BootsItemNames;
|
7
|
+
}
|
8
|
+
exports.isBootsItemKeyNum = isBootsItemKeyNum;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { BootsItemName } from '
|
1
|
+
import { BootsItemName } from '../../constants/Items/BootsItemNames';
|
2
2
|
export declare function isBootsItemName(name: any): name is BootsItemName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isLegendaryItemKeyNum = void 0;
|
4
|
+
const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
|
5
|
+
function isLegendaryItemKeyNum(key) {
|
6
|
+
return key in LegendaryItemNames_1.LegendaryItemNames;
|
7
|
+
}
|
8
|
+
exports.isLegendaryItemKeyNum = isLegendaryItemKeyNum;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { LegendaryItemName } from '
|
1
|
+
import { LegendaryItemName } from '../../constants/Items/LegendaryItemNames';
|
2
2
|
export declare function isLegendaryItemName(name: any): name is LegendaryItemName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isMythicItemKeyNum = void 0;
|
4
|
+
const MythicItemNames_1 = require("../../constants/Items/MythicItemNames");
|
5
|
+
function isMythicItemKeyNum(key) {
|
6
|
+
return key in MythicItemNames_1.MythicItemNames;
|
7
|
+
}
|
8
|
+
exports.isMythicItemKeyNum = isMythicItemKeyNum;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { MythicItemName } from '
|
1
|
+
import { MythicItemName } from '../../constants/Items/MythicItemNames';
|
2
2
|
export declare function isMythicItemName(name: any): name is MythicItemName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneName } from '
|
1
|
+
import { StatRuneName } from '../../constants/Runes/RuneSets';
|
2
2
|
export declare function isStatRuneName(name: any): name is StatRuneName;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { SpellId } from '../../constants/Spells/SpellIds';
|
2
2
|
import { SpellKey } from '../../constants/Spells/SpellKeys';
|
3
|
-
|
3
|
+
import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
|
4
|
+
export declare function getSpellIdByKey(key: SpellKey | SpellKeyNum): SpellId;
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { SpellKey } from '../../constants/Spells/SpellKeys';
|
2
|
+
import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
|
2
3
|
import { SpellName } from '../../constants/Spells/SpellNames';
|
3
|
-
export declare function getSpellNameByKey(key: SpellKey): SpellName;
|
4
|
+
export declare function getSpellNameByKey(key: SpellKey | SpellKeyNum): SpellName;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lol-constants",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.8.0",
|
4
4
|
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
|
5
5
|
"main": "core/index.js",
|
6
6
|
"types": "core/index.d.ts",
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"/assets"
|
11
11
|
],
|
12
12
|
"scripts": {
|
13
|
-
"clean
|
13
|
+
"build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
|
14
14
|
"generate": "node assets/scripts/generate-all",
|
15
15
|
"dev": "vite"
|
16
16
|
},
|