lol-constants 0.10.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{dist/Constants → assets}/StatRunes.d.ts +0 -0
- package/{dist/Constants → assets}/StatRunes.js +0 -0
- package/assets/champion.json +1 -0
- package/assets/index.d.ts +17216 -0
- package/assets/index.js +17 -0
- package/assets/item.json +1 -0
- package/assets/runesReforged.json +1 -0
- package/assets/scripts/Helpers/getExportStatement.d.ts +6 -0
- package/assets/scripts/Helpers/getExportStatement.js +10 -0
- package/assets/scripts/generate-all.d.ts +16 -0
- package/assets/scripts/generate-all.js +18 -0
- package/{dist/scripts/generate-all.d.ts → assets/scripts/generate-champion-ids-by-name.d.ts} +0 -0
- package/assets/scripts/generate-champion-ids-by-name.js +20 -0
- package/assets/scripts/generate-champion-ids.d.ts +1 -0
- package/assets/scripts/generate-champion-ids.js +20 -0
- package/assets/scripts/generate-champion-keys.d.ts +1 -0
- package/assets/scripts/generate-champion-keys.js +20 -0
- package/assets/scripts/generate-champion-names.d.ts +1 -0
- package/assets/scripts/generate-champion-names.js +20 -0
- package/assets/scripts/generate-item-keys.d.ts +1 -0
- package/assets/scripts/generate-item-keys.js +21 -0
- package/assets/scripts/generate-item-names.d.ts +1 -0
- package/assets/scripts/generate-item-names.js +21 -0
- package/assets/scripts/generate-rune-ids.d.ts +1 -0
- package/assets/scripts/generate-rune-ids.js +29 -0
- package/assets/scripts/generate-rune-names.d.ts +1 -0
- package/assets/scripts/generate-rune-names.js +29 -0
- package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -0
- package/assets/scripts/generate-spell-ids-by-name.js +20 -0
- package/assets/scripts/generate-spell-ids.d.ts +1 -0
- package/assets/scripts/generate-spell-ids.js +20 -0
- package/assets/scripts/generate-spell-keys.d.ts +1 -0
- package/assets/scripts/generate-spell-keys.js +20 -0
- package/assets/scripts/generate-spell-names.d.ts +1 -0
- package/assets/scripts/generate-spell-names.js +20 -0
- package/assets/scripts/generate-stat-rune-ids.d.ts +1 -0
- package/assets/scripts/generate-stat-rune-ids.js +20 -0
- package/assets/scripts/generate-stat-rune-names.d.ts +1 -0
- package/assets/scripts/generate-stat-rune-names.js +20 -0
- package/assets/scripts/generate-tree-rune-ids.d.ts +1 -0
- package/{dist/Helpers/generateRunesById.js → assets/scripts/generate-tree-rune-ids.js} +8 -8
- package/assets/scripts/generate-tree-rune-names.d.ts +1 -0
- package/{dist/Helpers/generateRunesByName.js → assets/scripts/generate-tree-rune-names.js} +8 -8
- package/{dist/assets → assets}/summoner.json +1 -1
- package/dist/Constants/ChampionIds.d.ts +162 -0
- package/dist/Constants/ChampionIds.js +4 -0
- package/dist/Constants/ChampionIdsByName.d.ts +162 -0
- package/dist/Constants/ChampionIdsByName.js +4 -0
- package/dist/Constants/ChampionKeys.d.ts +162 -2
- package/dist/Constants/ChampionKeys.js +1 -5
- package/dist/Constants/ChampionNames.d.ts +162 -2
- package/dist/Constants/ChampionNames.js +1 -5
- package/dist/Constants/DDPaths.d.ts +24 -6
- package/dist/Constants/DDPaths.js +26 -8
- package/dist/Constants/ItemKeys.d.ts +250 -2
- package/dist/Constants/ItemKeys.js +1 -5
- package/dist/Constants/ItemNames.d.ts +256 -2
- package/dist/Constants/ItemNames.js +1 -5
- package/dist/Constants/RuneIds.d.ts +74 -2
- package/dist/Constants/RuneIds.js +1 -9
- package/dist/Constants/RuneNames.d.ts +74 -2
- package/dist/Constants/RuneNames.js +1 -5
- package/dist/Constants/RuneSets.d.ts +34 -0
- package/dist/Constants/RuneSets.js +15 -15
- package/dist/Constants/SpellIds.d.ts +18 -0
- package/dist/Constants/SpellIds.js +4 -0
- package/dist/Constants/SpellIdsByName.d.ts +17 -0
- package/dist/Constants/SpellIdsByName.js +4 -0
- package/dist/Constants/SpellKeys.d.ts +18 -0
- package/dist/Constants/SpellKeys.js +4 -0
- package/dist/Constants/SpellNames.d.ts +18 -0
- package/dist/Constants/SpellNames.js +4 -0
- package/dist/Constants/StatRuneIds.d.ts +11 -2
- package/dist/Constants/StatRuneIds.js +1 -2
- package/dist/Constants/StatRuneNames.d.ts +11 -2
- package/dist/Constants/StatRuneNames.js +1 -2
- package/dist/Constants/TreeRuneIds.d.ts +65 -2
- package/dist/Constants/TreeRuneIds.js +1 -5
- package/dist/Constants/TreeRuneNames.d.ts +65 -2
- package/dist/Constants/TreeRuneNames.js +1 -5
- package/dist/Helpers/getChampionIdByKey.d.ts +2 -0
- package/dist/Helpers/getChampionIdByKey.js +8 -0
- package/dist/Helpers/getChampionIdByName.d.ts +2 -0
- package/dist/Helpers/getChampionIdByName.js +8 -0
- package/dist/Helpers/getChampionKeyById.d.ts +2 -0
- package/dist/Helpers/getChampionKeyById.js +8 -0
- package/dist/Helpers/getChampionKeyByName.js +3 -5
- package/dist/Helpers/getChampionNameById.d.ts +2 -0
- package/dist/Helpers/getChampionNameById.js +9 -0
- package/dist/Helpers/getChampionNameByKey.js +2 -5
- package/dist/Helpers/getItemKeyByName.js +2 -5
- package/dist/Helpers/getItemNameByKey.js +2 -5
- package/dist/Helpers/getRuneIdByName.js +2 -17
- package/dist/Helpers/getRuneNameById.js +2 -9
- package/dist/Helpers/getSpellIdByKey.d.ts +2 -0
- package/dist/Helpers/getSpellIdByKey.js +8 -0
- package/dist/Helpers/getSpellIdByName.d.ts +2 -0
- package/dist/Helpers/getSpellIdByName.js +8 -0
- package/dist/Helpers/getSpellKeyById.d.ts +2 -0
- package/dist/Helpers/getSpellKeyById.js +8 -0
- package/dist/Helpers/getSpellKeyByName.d.ts +2 -0
- package/dist/Helpers/getSpellKeyByName.js +9 -0
- package/dist/Helpers/getSpellNameById.d.ts +2 -0
- package/dist/Helpers/getSpellNameById.js +9 -0
- package/dist/Helpers/getSpellNameByKey.d.ts +2 -0
- package/dist/Helpers/getSpellNameByKey.js +8 -0
- package/dist/Helpers/getStatRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getStatRuneIdByName.js +8 -0
- package/dist/Helpers/getStatRuneNameById.d.ts +2 -0
- package/dist/Helpers/getStatRuneNameById.js +8 -0
- package/dist/Helpers/getTreeRuneIdByName.d.ts +2 -0
- package/dist/Helpers/getTreeRuneIdByName.js +8 -0
- package/dist/Helpers/getTreeRuneNameById.d.ts +2 -0
- package/dist/Helpers/getTreeRuneNameById.js +8 -0
- package/dist/Helpers/isChampionId.d.ts +2 -0
- package/dist/Helpers/isChampionId.js +8 -0
- package/dist/Helpers/isChampionKey.d.ts +1 -1
- package/dist/Helpers/isChampionKey.js +2 -4
- package/dist/Helpers/isChampionName.d.ts +1 -1
- package/dist/Helpers/isChampionName.js +2 -4
- package/dist/Helpers/isItemKey.d.ts +1 -1
- package/dist/Helpers/isItemKey.js +2 -4
- package/dist/Helpers/isItemName.d.ts +1 -1
- package/dist/Helpers/isItemName.js +2 -4
- package/dist/Helpers/isRuneId.d.ts +1 -1
- package/dist/Helpers/isRuneId.js +2 -4
- package/dist/Helpers/isRuneName.d.ts +1 -1
- package/dist/Helpers/isRuneName.js +2 -4
- package/dist/Helpers/isSpellId.d.ts +2 -0
- package/dist/Helpers/isSpellId.js +8 -0
- package/dist/Helpers/isSpellKey.d.ts +2 -0
- package/dist/Helpers/isSpellKey.js +8 -0
- package/dist/Helpers/isSpellName.d.ts +2 -0
- package/dist/Helpers/isSpellName.js +8 -0
- package/dist/Helpers/isStatRuneId.d.ts +1 -1
- package/dist/Helpers/isStatRuneId.js +2 -4
- package/dist/Helpers/isStatRuneName.d.ts +1 -1
- package/dist/Helpers/isStatRuneName.js +2 -4
- package/dist/Helpers/isTreeRuneId.d.ts +1 -1
- package/dist/Helpers/isTreeRuneId.js +2 -4
- package/dist/Helpers/isTreeRuneName.d.ts +1 -1
- package/dist/Helpers/isTreeRuneName.js +2 -4
- package/dist/index.d.ts +24 -43394
- package/dist/index.js +74 -48
- package/dist/types/index.d.ts +28 -23
- package/package.json +4 -3
- package/dist/Constants/SummonerIds.d.ts +0 -2
- package/dist/Constants/SummonerIds.js +0 -8
- package/dist/Constants/SummonerKeys.d.ts +0 -2
- package/dist/Constants/SummonerKeys.js +0 -8
- package/dist/Constants/SummonerNames.d.ts +0 -2
- package/dist/Constants/SummonerNames.js +0 -8
- package/dist/Constants/SummonerSpellIds.d.ts +0 -2
- package/dist/Constants/SummonerSpellIds.js +0 -8
- package/dist/Constants/SummonerSpellKeys.d.ts +0 -2
- package/dist/Constants/SummonerSpellKeys.js +0 -8
- package/dist/Constants/SummonerSpellNames.d.ts +0 -2
- package/dist/Constants/SummonerSpellNames.js +0 -8
- package/dist/Helpers/generateChampionsByKey.d.ts +0 -1
- package/dist/Helpers/generateChampionsByKey.js +0 -25
- package/dist/Helpers/generateChampionsByName.d.ts +0 -1
- package/dist/Helpers/generateChampionsByName.js +0 -25
- package/dist/Helpers/generateItemsByName.d.ts +0 -1
- package/dist/Helpers/generateItemsByName.js +0 -30
- package/dist/Helpers/generateRunesById.d.ts +0 -1
- package/dist/Helpers/generateRunesByName.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByKey.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByKey.js +0 -27
- package/dist/Helpers/generateSummonerSpellsByName.d.ts +0 -1
- package/dist/Helpers/generateSummonerSpellsByName.js +0 -27
- package/dist/Helpers/generateSummonersByKey.d.ts +0 -1
- package/dist/Helpers/generateSummonersByKey.js +0 -24
- package/dist/Helpers/generateSummonersByName.d.ts +0 -1
- package/dist/Helpers/generateSummonersByName.js +0 -24
- package/dist/Helpers/getSummonerSpellKeyByName.d.ts +0 -2
- package/dist/Helpers/getSummonerSpellKeyByName.js +0 -11
- package/dist/Helpers/getSummonerSpellNameByKey.d.ts +0 -2
- package/dist/Helpers/getSummonerSpellNameByKey.js +0 -11
- package/dist/Helpers/isSummonerId.d.ts +0 -2
- package/dist/Helpers/isSummonerId.js +0 -10
- package/dist/Helpers/isSummonerKey.d.ts +0 -2
- package/dist/Helpers/isSummonerKey.js +0 -10
- package/dist/Helpers/isSummonerName.d.ts +0 -2
- package/dist/Helpers/isSummonerName.js +0 -10
- package/dist/Helpers/isSummonerSpellId.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellId.js +0 -10
- package/dist/Helpers/isSummonerSpellKey.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellKey.js +0 -10
- package/dist/Helpers/isSummonerSpellName.d.ts +0 -2
- package/dist/Helpers/isSummonerSpellName.js +0 -10
- package/dist/assets/champion.json +0 -1
- package/dist/assets/item.json +0 -1
- package/dist/assets/runesReforged.json +0 -1
- package/dist/generated/championByKey.json +0 -1
- package/dist/generated/championByName.json +0 -1
- package/dist/generated/itemByKey.json +0 -1
- package/dist/generated/itemByName.json +0 -1
- package/dist/generated/runesById.json +0 -1
- package/dist/generated/runesByName.json +0 -1
- package/dist/generated/summonerByKey.json +0 -1
- package/dist/generated/summonerByName.json +0 -1
- package/dist/scripts/generate-all.js +0 -19
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const SpellKeys: {
|
2
|
+
readonly SummonerBarrier: "21";
|
3
|
+
readonly SummonerBoost: "1";
|
4
|
+
readonly SummonerDot: "14";
|
5
|
+
readonly SummonerExhaust: "3";
|
6
|
+
readonly SummonerFlash: "4";
|
7
|
+
readonly SummonerHaste: "6";
|
8
|
+
readonly SummonerHeal: "7";
|
9
|
+
readonly SummonerMana: "13";
|
10
|
+
readonly SummonerPoroRecall: "30";
|
11
|
+
readonly SummonerPoroThrow: "31";
|
12
|
+
readonly SummonerSmite: "11";
|
13
|
+
readonly SummonerSnowURFSnowball_Mark: "39";
|
14
|
+
readonly SummonerSnowball: "32";
|
15
|
+
readonly SummonerTeleport: "12";
|
16
|
+
readonly Summoner_UltBookPlaceholder: "54";
|
17
|
+
readonly Summoner_UltBookSmitePlaceholder: "55";
|
18
|
+
};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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" };
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare const SpellNames: {
|
2
|
+
readonly "1": "Cleanse";
|
3
|
+
readonly "3": "Exhaust";
|
4
|
+
readonly "4": "Flash";
|
5
|
+
readonly "6": "Ghost";
|
6
|
+
readonly "7": "Heal";
|
7
|
+
readonly "11": "Smite";
|
8
|
+
readonly "12": "Teleport";
|
9
|
+
readonly "13": "Clarity";
|
10
|
+
readonly "14": "Ignite";
|
11
|
+
readonly "21": "Barrier";
|
12
|
+
readonly "30": "To the King!";
|
13
|
+
readonly "31": "Poro Toss";
|
14
|
+
readonly "32": "Mark";
|
15
|
+
readonly "39": "Mark";
|
16
|
+
readonly "54": "Placeholder";
|
17
|
+
readonly "55": "Placeholder and Attack-Smite";
|
18
|
+
};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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" };
|
@@ -1,2 +1,11 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const StatRuneIds: {
|
2
|
+
readonly "Defense (HP)": "5001";
|
3
|
+
readonly "Defense (AR)": "5002";
|
4
|
+
readonly "Defense (MR)": "5003";
|
5
|
+
readonly "Offense (AS)": "5005";
|
6
|
+
readonly "Offense (AH)": "5007";
|
7
|
+
readonly "Offense (AF)": "5008";
|
8
|
+
readonly "Flex (AR)": "5002f";
|
9
|
+
readonly "Flex (MR)": "5003f";
|
10
|
+
readonly "Flex (AF)": "5008f";
|
11
|
+
};
|
@@ -1,5 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.StatRuneIds = void 0;
|
4
|
-
|
5
|
-
exports.StatRuneIds = (Object.keys(StatRunes_1.StatRunes).map(id => id));
|
4
|
+
exports.StatRuneIds = { "Defense (HP)": "5001", "Defense (AR)": "5002", "Defense (MR)": "5003", "Offense (AS)": "5005", "Offense (AH)": "5007", "Offense (AF)": "5008", "Flex (AR)": "5002f", "Flex (MR)": "5003f", "Flex (AF)": "5008f" };
|
@@ -1,2 +1,11 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const StatRuneNames: {
|
2
|
+
readonly "5001": "Defense (HP)";
|
3
|
+
readonly "5002": "Defense (AR)";
|
4
|
+
readonly "5003": "Defense (MR)";
|
5
|
+
readonly "5005": "Offense (AS)";
|
6
|
+
readonly "5007": "Offense (AH)";
|
7
|
+
readonly "5008": "Offense (AF)";
|
8
|
+
readonly "5002f": "Flex (AR)";
|
9
|
+
readonly "5003f": "Flex (MR)";
|
10
|
+
readonly "5008f": "Flex (AF)";
|
11
|
+
};
|
@@ -1,5 +1,4 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.StatRuneNames = void 0;
|
4
|
-
|
5
|
-
exports.StatRuneNames = Object.values(StatRunes_1.StatRunes);
|
4
|
+
exports.StatRuneNames = { "5001": "Defense (HP)", "5002": "Defense (AR)", "5003": "Defense (MR)", "5005": "Offense (AS)", "5007": "Offense (AH)", "5008": "Offense (AF)", "5002f": "Flex (AR)", "5003f": "Flex (MR)", "5008f": "Flex (AF)" };
|
@@ -1,2 +1,65 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const TreeRuneIds: {
|
2
|
+
readonly Electrocute: "8112";
|
3
|
+
readonly Predator: "8124";
|
4
|
+
readonly "Dark Harvest": "8128";
|
5
|
+
readonly "Hail of Blades": "9923";
|
6
|
+
readonly "Cheap Shot": "8126";
|
7
|
+
readonly "Taste of Blood": "8139";
|
8
|
+
readonly "Sudden Impact": "8143";
|
9
|
+
readonly "Zombie Ward": "8136";
|
10
|
+
readonly "Ghost Poro": "8120";
|
11
|
+
readonly "Eyeball Collection": "8138";
|
12
|
+
readonly "Treasure Hunter": "8135";
|
13
|
+
readonly "Ingenious Hunter": "8134";
|
14
|
+
readonly "Relentless Hunter": "8105";
|
15
|
+
readonly "Ultimate Hunter": "8106";
|
16
|
+
readonly "Glacial Augment": "8351";
|
17
|
+
readonly "Unsealed Spellbook": "8360";
|
18
|
+
readonly "First Strike": "8369";
|
19
|
+
readonly "Hextech Flashtraption": "8306";
|
20
|
+
readonly "Magical Footwear": "8304";
|
21
|
+
readonly "Perfect Timing": "8313";
|
22
|
+
readonly "Future's Market": "8321";
|
23
|
+
readonly "Minion Dematerializer": "8316";
|
24
|
+
readonly "Biscuit Delivery": "8345";
|
25
|
+
readonly "Cosmic Insight": "8347";
|
26
|
+
readonly "Approach Velocity": "8410";
|
27
|
+
readonly "Time Warp Tonic": "8352";
|
28
|
+
readonly "Press the Attack": "8005";
|
29
|
+
readonly "Lethal Tempo": "8008";
|
30
|
+
readonly "Fleet Footwork": "8021";
|
31
|
+
readonly Conqueror: "8010";
|
32
|
+
readonly Overheal: "9101";
|
33
|
+
readonly Triumph: "9111";
|
34
|
+
readonly "Presence of Mind": "8009";
|
35
|
+
readonly "Legend: Alacrity": "9104";
|
36
|
+
readonly "Legend: Tenacity": "9105";
|
37
|
+
readonly "Legend: Bloodline": "9103";
|
38
|
+
readonly "Coup de Grace": "8014";
|
39
|
+
readonly "Cut Down": "8017";
|
40
|
+
readonly "Last Stand": "8299";
|
41
|
+
readonly "Grasp of the Undying": "8437";
|
42
|
+
readonly Aftershock: "8439";
|
43
|
+
readonly Guardian: "8465";
|
44
|
+
readonly Demolish: "8446";
|
45
|
+
readonly "Font of Life": "8463";
|
46
|
+
readonly "Shield Bash": "8401";
|
47
|
+
readonly Conditioning: "8429";
|
48
|
+
readonly "Second Wind": "8444";
|
49
|
+
readonly "Bone Plating": "8473";
|
50
|
+
readonly Overgrowth: "8451";
|
51
|
+
readonly Revitalize: "8453";
|
52
|
+
readonly Unflinching: "8242";
|
53
|
+
readonly "Summon Aery": "8214";
|
54
|
+
readonly "Arcane Comet": "8229";
|
55
|
+
readonly "Phase Rush": "8230";
|
56
|
+
readonly "Nullifying Orb": "8224";
|
57
|
+
readonly "Manaflow Band": "8226";
|
58
|
+
readonly "Nimbus Cloak": "8275";
|
59
|
+
readonly Transcendence: "8210";
|
60
|
+
readonly Celerity: "8234";
|
61
|
+
readonly "Absolute Focus": "8233";
|
62
|
+
readonly Scorch: "8237";
|
63
|
+
readonly Waterwalking: "8232";
|
64
|
+
readonly "Gathering Storm": "8236";
|
65
|
+
};
|
@@ -1,8 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.TreeRuneIds = void 0;
|
7
|
-
|
8
|
-
exports.TreeRuneIds = (Object.keys(runesById_json_1.default).map(id => id));
|
4
|
+
exports.TreeRuneIds = { "Electrocute": "8112", "Predator": "8124", "Dark Harvest": "8128", "Hail of Blades": "9923", "Cheap Shot": "8126", "Taste of Blood": "8139", "Sudden Impact": "8143", "Zombie Ward": "8136", "Ghost Poro": "8120", "Eyeball Collection": "8138", "Treasure Hunter": "8135", "Ingenious Hunter": "8134", "Relentless Hunter": "8105", "Ultimate Hunter": "8106", "Glacial Augment": "8351", "Unsealed Spellbook": "8360", "First Strike": "8369", "Hextech Flashtraption": "8306", "Magical Footwear": "8304", "Perfect Timing": "8313", "Future's Market": "8321", "Minion Dematerializer": "8316", "Biscuit Delivery": "8345", "Cosmic Insight": "8347", "Approach Velocity": "8410", "Time Warp Tonic": "8352", "Press the Attack": "8005", "Lethal Tempo": "8008", "Fleet Footwork": "8021", "Conqueror": "8010", "Overheal": "9101", "Triumph": "9111", "Presence of Mind": "8009", "Legend: Alacrity": "9104", "Legend: Tenacity": "9105", "Legend: Bloodline": "9103", "Coup de Grace": "8014", "Cut Down": "8017", "Last Stand": "8299", "Grasp of the Undying": "8437", "Aftershock": "8439", "Guardian": "8465", "Demolish": "8446", "Font of Life": "8463", "Shield Bash": "8401", "Conditioning": "8429", "Second Wind": "8444", "Bone Plating": "8473", "Overgrowth": "8451", "Revitalize": "8453", "Unflinching": "8242", "Summon Aery": "8214", "Arcane Comet": "8229", "Phase Rush": "8230", "Nullifying Orb": "8224", "Manaflow Band": "8226", "Nimbus Cloak": "8275", "Transcendence": "8210", "Celerity": "8234", "Absolute Focus": "8233", "Scorch": "8237", "Waterwalking": "8232", "Gathering Storm": "8236" };
|
@@ -1,2 +1,65 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export declare const TreeRuneNames: {
|
2
|
+
readonly "8005": "Press the Attack";
|
3
|
+
readonly "8008": "Lethal Tempo";
|
4
|
+
readonly "8009": "Presence of Mind";
|
5
|
+
readonly "8010": "Conqueror";
|
6
|
+
readonly "8014": "Coup de Grace";
|
7
|
+
readonly "8017": "Cut Down";
|
8
|
+
readonly "8021": "Fleet Footwork";
|
9
|
+
readonly "8105": "Relentless Hunter";
|
10
|
+
readonly "8106": "Ultimate Hunter";
|
11
|
+
readonly "8112": "Electrocute";
|
12
|
+
readonly "8120": "Ghost Poro";
|
13
|
+
readonly "8124": "Predator";
|
14
|
+
readonly "8126": "Cheap Shot";
|
15
|
+
readonly "8128": "Dark Harvest";
|
16
|
+
readonly "8134": "Ingenious Hunter";
|
17
|
+
readonly "8135": "Treasure Hunter";
|
18
|
+
readonly "8136": "Zombie Ward";
|
19
|
+
readonly "8138": "Eyeball Collection";
|
20
|
+
readonly "8139": "Taste of Blood";
|
21
|
+
readonly "8143": "Sudden Impact";
|
22
|
+
readonly "8210": "Transcendence";
|
23
|
+
readonly "8214": "Summon Aery";
|
24
|
+
readonly "8224": "Nullifying Orb";
|
25
|
+
readonly "8226": "Manaflow Band";
|
26
|
+
readonly "8229": "Arcane Comet";
|
27
|
+
readonly "8230": "Phase Rush";
|
28
|
+
readonly "8232": "Waterwalking";
|
29
|
+
readonly "8233": "Absolute Focus";
|
30
|
+
readonly "8234": "Celerity";
|
31
|
+
readonly "8236": "Gathering Storm";
|
32
|
+
readonly "8237": "Scorch";
|
33
|
+
readonly "8242": "Unflinching";
|
34
|
+
readonly "8275": "Nimbus Cloak";
|
35
|
+
readonly "8299": "Last Stand";
|
36
|
+
readonly "8304": "Magical Footwear";
|
37
|
+
readonly "8306": "Hextech Flashtraption";
|
38
|
+
readonly "8313": "Perfect Timing";
|
39
|
+
readonly "8316": "Minion Dematerializer";
|
40
|
+
readonly "8321": "Future's Market";
|
41
|
+
readonly "8345": "Biscuit Delivery";
|
42
|
+
readonly "8347": "Cosmic Insight";
|
43
|
+
readonly "8351": "Glacial Augment";
|
44
|
+
readonly "8352": "Time Warp Tonic";
|
45
|
+
readonly "8360": "Unsealed Spellbook";
|
46
|
+
readonly "8369": "First Strike";
|
47
|
+
readonly "8401": "Shield Bash";
|
48
|
+
readonly "8410": "Approach Velocity";
|
49
|
+
readonly "8429": "Conditioning";
|
50
|
+
readonly "8437": "Grasp of the Undying";
|
51
|
+
readonly "8439": "Aftershock";
|
52
|
+
readonly "8444": "Second Wind";
|
53
|
+
readonly "8446": "Demolish";
|
54
|
+
readonly "8451": "Overgrowth";
|
55
|
+
readonly "8453": "Revitalize";
|
56
|
+
readonly "8463": "Font of Life";
|
57
|
+
readonly "8465": "Guardian";
|
58
|
+
readonly "8473": "Bone Plating";
|
59
|
+
readonly "9101": "Overheal";
|
60
|
+
readonly "9103": "Legend: Bloodline";
|
61
|
+
readonly "9104": "Legend: Alacrity";
|
62
|
+
readonly "9105": "Legend: Tenacity";
|
63
|
+
readonly "9111": "Triumph";
|
64
|
+
readonly "9923": "Hail of Blades";
|
65
|
+
};
|
@@ -1,8 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.TreeRuneNames = void 0;
|
7
|
-
|
8
|
-
exports.TreeRuneNames = (Object.keys(runesByName_json_1.default).map(name => name));
|
4
|
+
exports.TreeRuneNames = { "8005": "Press the Attack", "8008": "Lethal Tempo", "8009": "Presence of Mind", "8010": "Conqueror", "8014": "Coup de Grace", "8017": "Cut Down", "8021": "Fleet Footwork", "8105": "Relentless Hunter", "8106": "Ultimate Hunter", "8112": "Electrocute", "8120": "Ghost Poro", "8124": "Predator", "8126": "Cheap Shot", "8128": "Dark Harvest", "8134": "Ingenious Hunter", "8135": "Treasure Hunter", "8136": "Zombie Ward", "8138": "Eyeball Collection", "8139": "Taste of Blood", "8143": "Sudden Impact", "8210": "Transcendence", "8214": "Summon Aery", "8224": "Nullifying Orb", "8226": "Manaflow Band", "8229": "Arcane Comet", "8230": "Phase Rush", "8232": "Waterwalking", "8233": "Absolute Focus", "8234": "Celerity", "8236": "Gathering Storm", "8237": "Scorch", "8242": "Unflinching", "8275": "Nimbus Cloak", "8299": "Last Stand", "8304": "Magical Footwear", "8306": "Hextech Flashtraption", "8313": "Perfect Timing", "8316": "Minion Dematerializer", "8321": "Future's Market", "8345": "Biscuit Delivery", "8347": "Cosmic Insight", "8351": "Glacial Augment", "8352": "Time Warp Tonic", "8360": "Unsealed Spellbook", "8369": "First Strike", "8401": "Shield Bash", "8410": "Approach Velocity", "8429": "Conditioning", "8437": "Grasp of the Undying", "8439": "Aftershock", "8444": "Second Wind", "8446": "Demolish", "8451": "Overgrowth", "8453": "Revitalize", "8463": "Font of Life", "8465": "Guardian", "8473": "Bone Plating", "9101": "Overheal", "9103": "Legend: Bloodline", "9104": "Legend: Alacrity", "9105": "Legend: Tenacity", "9111": "Triumph", "9923": "Hail of Blades" };
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getChampionIdByKey = void 0;
|
4
|
+
const ChampionIds_1 = require("../Constants/ChampionIds");
|
5
|
+
function getChampionIdByKey(key) {
|
6
|
+
return ChampionIds_1.ChampionIds[key];
|
7
|
+
}
|
8
|
+
exports.getChampionIdByKey = getChampionIdByKey;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getChampionIdByName = void 0;
|
4
|
+
const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
|
5
|
+
function getChampionIdByName(name) {
|
6
|
+
return ChampionIdsByName_1.ChampionIdsByName[name];
|
7
|
+
}
|
8
|
+
exports.getChampionIdByName = getChampionIdByName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getChampionKeyById = void 0;
|
4
|
+
const ChampionKeys_1 = require("../Constants/ChampionKeys");
|
5
|
+
function getChampionKeyById(id) {
|
6
|
+
return ChampionKeys_1.ChampionKeys[id];
|
7
|
+
}
|
8
|
+
exports.getChampionKeyById = getChampionKeyById;
|
@@ -1,11 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getChampionKeyByName = void 0;
|
7
|
-
const
|
4
|
+
const ChampionIdsByName_1 = require("../Constants/ChampionIdsByName");
|
5
|
+
const ChampionKeys_1 = require("../Constants/ChampionKeys");
|
8
6
|
function getChampionKeyByName(name) {
|
9
|
-
return
|
7
|
+
return ChampionKeys_1.ChampionKeys[ChampionIdsByName_1.ChampionIdsByName[name]];
|
10
8
|
}
|
11
9
|
exports.getChampionKeyByName = getChampionKeyByName;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getChampionNameById = void 0;
|
4
|
+
const ChampionKeys_1 = require("../Constants/ChampionKeys");
|
5
|
+
const ChampionNames_1 = require("../Constants/ChampionNames");
|
6
|
+
function getChampionNameById(id) {
|
7
|
+
return ChampionNames_1.ChampionNames[ChampionKeys_1.ChampionKeys[id]];
|
8
|
+
}
|
9
|
+
exports.getChampionNameById = getChampionNameById;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getChampionNameByKey = void 0;
|
7
|
-
const
|
4
|
+
const ChampionNames_1 = require("../Constants/ChampionNames");
|
8
5
|
function getChampionNameByKey(key) {
|
9
|
-
return
|
6
|
+
return ChampionNames_1.ChampionNames[key];
|
10
7
|
}
|
11
8
|
exports.getChampionNameByKey = getChampionNameByKey;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getItemKeyByName = void 0;
|
7
|
-
const
|
4
|
+
const ItemKeys_1 = require("../Constants/ItemKeys");
|
8
5
|
function getItemKeyByName(name) {
|
9
|
-
return
|
6
|
+
return ItemKeys_1.ItemKeys[name];
|
10
7
|
}
|
11
8
|
exports.getItemKeyByName = getItemKeyByName;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getItemNameByKey = void 0;
|
7
|
-
const
|
4
|
+
const ItemNames_1 = require("../Constants/ItemNames");
|
8
5
|
function getItemNameByKey(key) {
|
9
|
-
return
|
6
|
+
return ItemNames_1.ItemNames[key];
|
10
7
|
}
|
11
8
|
exports.getItemNameByKey = getItemNameByKey;
|
@@ -1,23 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getRuneIdByName = void 0;
|
7
|
-
const
|
8
|
-
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
-
const isStatRuneName_1 = require("./isStatRuneName");
|
4
|
+
const RuneIds_1 = require("../Constants/RuneIds");
|
10
5
|
function getRuneIdByName(name) {
|
11
|
-
|
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;
|
6
|
+
return RuneIds_1.RuneIds[name];
|
22
7
|
}
|
23
8
|
exports.getRuneIdByName = getRuneIdByName;
|
@@ -1,15 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
exports.getRuneNameById = void 0;
|
7
|
-
const
|
8
|
-
const StatRunes_1 = require("../Constants/StatRunes");
|
9
|
-
const isStatRuneId_1 = require("./isStatRuneId");
|
4
|
+
const RuneNames_1 = require("../Constants/RuneNames");
|
10
5
|
function getRuneNameById(id) {
|
11
|
-
|
12
|
-
return StatRunes_1.StatRunes[id];
|
13
|
-
return runesById_json_1.default[id].name;
|
6
|
+
return RuneNames_1.RuneNames[id];
|
14
7
|
}
|
15
8
|
exports.getRuneNameById = getRuneNameById;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellIdByKey = void 0;
|
4
|
+
const SpellIds_1 = require("../Constants/SpellIds");
|
5
|
+
function getSpellIdByKey(key) {
|
6
|
+
return SpellIds_1.SpellIds[key];
|
7
|
+
}
|
8
|
+
exports.getSpellIdByKey = getSpellIdByKey;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellIdByName = void 0;
|
4
|
+
const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
|
5
|
+
function getSpellIdByName(name) {
|
6
|
+
return SpellIdsByName_1.SpellIdsByName[name];
|
7
|
+
}
|
8
|
+
exports.getSpellIdByName = getSpellIdByName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellKeyById = void 0;
|
4
|
+
const SpellKeys_1 = require("../Constants/SpellKeys");
|
5
|
+
function getSpellKeyById(id) {
|
6
|
+
return SpellKeys_1.SpellKeys[id];
|
7
|
+
}
|
8
|
+
exports.getSpellKeyById = getSpellKeyById;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellKeyByName = void 0;
|
4
|
+
const SpellIdsByName_1 = require("../Constants/SpellIdsByName");
|
5
|
+
const SpellKeys_1 = require("../Constants/SpellKeys");
|
6
|
+
function getSpellKeyByName(name) {
|
7
|
+
return SpellKeys_1.SpellKeys[SpellIdsByName_1.SpellIdsByName[name]];
|
8
|
+
}
|
9
|
+
exports.getSpellKeyByName = getSpellKeyByName;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellNameById = void 0;
|
4
|
+
const SpellKeys_1 = require("../Constants/SpellKeys");
|
5
|
+
const SpellNames_1 = require("../Constants/SpellNames");
|
6
|
+
function getSpellNameById(id) {
|
7
|
+
return SpellNames_1.SpellNames[SpellKeys_1.SpellKeys[id]];
|
8
|
+
}
|
9
|
+
exports.getSpellNameById = getSpellNameById;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellNameByKey = void 0;
|
4
|
+
const SpellNames_1 = require("../Constants/SpellNames");
|
5
|
+
function getSpellNameByKey(key) {
|
6
|
+
return SpellNames_1.SpellNames[key];
|
7
|
+
}
|
8
|
+
exports.getSpellNameByKey = getSpellNameByKey;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getStatRuneIdByName = void 0;
|
4
|
+
const StatRuneIds_1 = require("../Constants/StatRuneIds");
|
5
|
+
function getStatRuneIdByName(name) {
|
6
|
+
return StatRuneIds_1.StatRuneIds[name];
|
7
|
+
}
|
8
|
+
exports.getStatRuneIdByName = getStatRuneIdByName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getStatRuneNameById = void 0;
|
4
|
+
const StatRuneNames_1 = require("../Constants/StatRuneNames");
|
5
|
+
function getStatRuneNameById(id) {
|
6
|
+
return StatRuneNames_1.StatRuneNames[id];
|
7
|
+
}
|
8
|
+
exports.getStatRuneNameById = getStatRuneNameById;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getTreeRuneIdByName = void 0;
|
4
|
+
const TreeRuneIds_1 = require("../Constants/TreeRuneIds");
|
5
|
+
function getTreeRuneIdByName(name) {
|
6
|
+
return TreeRuneIds_1.TreeRuneIds[name];
|
7
|
+
}
|
8
|
+
exports.getTreeRuneIdByName = getTreeRuneIdByName;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getTreeRuneNameById = void 0;
|
4
|
+
const TreeRuneNames_1 = require("../Constants/TreeRuneNames");
|
5
|
+
function getTreeRuneNameById(id) {
|
6
|
+
return TreeRuneNames_1.TreeRuneNames[id];
|
7
|
+
}
|
8
|
+
exports.getTreeRuneNameById = getTreeRuneNameById;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isChampionId = void 0;
|
4
|
+
const ChampionKeys_1 = require("../Constants/ChampionKeys");
|
5
|
+
function isChampionId(id) {
|
6
|
+
return id in ChampionKeys_1.ChampionKeys;
|
7
|
+
}
|
8
|
+
exports.isChampionId = isChampionId;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ChampionKey } from '../types';
|
2
|
-
export declare function isChampionKey(key:
|
2
|
+
export declare function isChampionKey(key: string): key is ChampionKey;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isChampionKey = void 0;
|
4
|
-
const
|
4
|
+
const ChampionNames_1 = require("../Constants/ChampionNames");
|
5
5
|
function isChampionKey(key) {
|
6
|
-
|
7
|
-
return true;
|
8
|
-
return false;
|
6
|
+
return key in ChampionNames_1.ChampionNames;
|
9
7
|
}
|
10
8
|
exports.isChampionKey = isChampionKey;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { ChampionName } from '../types';
|
2
|
-
export declare function isChampionName(name:
|
2
|
+
export declare function isChampionName(name: string): name is ChampionName;
|