lol-constants 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/scripts/constants/RuneIdComment.d.ts +1 -0
- package/assets/scripts/constants/RuneIdComment.js +19 -0
- package/assets/scripts/generate-all.d.ts +6 -0
- package/assets/scripts/generate-all.js +10 -0
- package/assets/scripts/generate-categorized-item-keys-num.d.ts +1 -0
- package/assets/scripts/generate-categorized-item-keys-num.js +60 -0
- package/assets/scripts/generate-categorized-item-keys.js +7 -1
- package/assets/scripts/generate-categorized-item-names.js +3 -1
- package/assets/scripts/generate-champion-ids-by-name.js +5 -3
- package/assets/scripts/generate-champion-ids.js +6 -3
- package/assets/scripts/generate-champion-keys-num.d.ts +1 -0
- package/assets/scripts/generate-champion-keys-num.js +22 -0
- package/assets/scripts/generate-champion-keys.js +6 -3
- package/assets/scripts/generate-champion-names.js +6 -3
- package/assets/scripts/generate-item-keys-num.d.ts +1 -0
- package/assets/scripts/generate-item-keys-num.js +23 -0
- package/assets/scripts/generate-item-keys.js +6 -3
- package/assets/scripts/generate-item-names.js +6 -3
- package/assets/scripts/generate-rune-ids.js +8 -3
- package/assets/scripts/generate-rune-names.js +6 -3
- package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +1 -0
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +118 -0
- package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -0
- package/assets/scripts/generate-rune-sets.js +2 -0
- package/assets/scripts/generate-spell-ids-by-name.js +5 -3
- package/assets/scripts/generate-spell-ids.js +6 -3
- package/assets/scripts/generate-spell-keys-num.d.ts +1 -0
- package/assets/scripts/generate-spell-keys-num.js +22 -0
- package/assets/scripts/generate-spell-keys.js +6 -3
- package/assets/scripts/generate-spell-names.js +6 -3
- package/assets/scripts/generate-stat-rune-ids.js +8 -3
- package/assets/scripts/generate-stat-rune-names.js +8 -5
- package/assets/scripts/generate-tree-rune-ids-num.d.ts +1 -0
- package/assets/scripts/generate-tree-rune-ids-num.js +23 -0
- package/assets/scripts/generate-tree-rune-ids.js +8 -3
- package/assets/scripts/generate-tree-rune-names.js +8 -5
- package/assets/scripts/helpers/getComment.d.ts +1 -0
- package/assets/scripts/helpers/getComment.js +8 -0
- package/assets/scripts/helpers/getExportStatement.d.ts +1 -1
- package/assets/scripts/helpers/getExportStatement.js +28 -3
- package/assets/scripts/helpers/getFmtdComment.js +1 -1
- package/assets/scripts/helpers/validateNumber.d.ts +1 -0
- package/assets/scripts/helpers/validateNumber.js +10 -0
- package/assets/scripts/helpers/writeToTmpFile.d.ts +3 -0
- package/assets/scripts/helpers/writeToTmpFile.js +2 -2
- package/core/constants/BuildingTypes.d.ts +6 -0
- package/core/constants/BuildingTypes.js +11 -0
- package/core/constants/Champions/ChampionIds.d.ts +1 -0
- package/core/constants/Champions/ChampionKeys.d.ts +1 -0
- package/core/constants/Champions/ChampionKeysNum.d.ts +166 -0
- package/core/constants/Champions/ChampionKeysNum.js +4 -0
- package/core/constants/Champions/ChampionNames.d.ts +1 -0
- package/core/constants/DragonTypes.d.ts +10 -0
- package/core/constants/DragonTypes.js +15 -0
- package/core/constants/Items/BootsItemKeys.d.ts +1 -0
- package/core/constants/Items/BootsItemKeysNum.d.ts +12 -0
- package/core/constants/Items/BootsItemKeysNum.js +4 -0
- package/core/constants/Items/BootsItemNames.d.ts +1 -0
- package/core/constants/Items/ItemKeys.d.ts +1 -0
- package/core/constants/Items/ItemKeysNum.d.ts +264 -0
- package/core/constants/Items/ItemKeysNum.js +4 -0
- package/core/constants/Items/ItemNames.d.ts +1 -0
- package/core/constants/Items/LegendaryItemKeys.d.ts +1 -0
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +77 -0
- package/core/constants/Items/LegendaryItemKeysNum.js +4 -0
- package/core/constants/Items/LegendaryItemNames.d.ts +1 -0
- package/core/constants/Items/MythicItemKeys.d.ts +1 -0
- package/core/constants/Items/MythicItemKeysNum.d.ts +31 -0
- package/core/constants/Items/MythicItemKeysNum.js +4 -0
- package/core/constants/Items/MythicItemNames.d.ts +1 -0
- package/core/constants/KillTypes.d.ts +7 -0
- package/core/constants/KillTypes.js +12 -0
- package/core/constants/LaneTypes.d.ts +7 -0
- package/core/constants/LaneTypes.js +12 -0
- package/core/constants/MonsterTypes.d.ts +7 -0
- package/core/constants/MonsterTypes.js +12 -0
- package/core/constants/Runes/RuneIconFileNames.d.ts +1 -1
- package/core/constants/Runes/RuneSets.d.ts +2 -0
- package/core/constants/Runes/RuneSetsByRuneNames.d.ts +30 -0
- package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +743 -0
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +14 -0
- package/core/constants/Runes/RuneTreeIds.d.ts +1 -1
- package/core/constants/Runes/RuneTreeIds.js +1 -1
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +11 -0
- package/core/constants/Runes/RuneTreeIdsNum.js +19 -0
- package/core/constants/Runes/TreeRuneIds.d.ts +15 -0
- package/core/constants/Runes/TreeRuneIdsNum.d.ts +66 -0
- package/core/constants/Runes/TreeRuneIdsNum.js +4 -0
- package/core/constants/Runes/TreeRuneNames.d.ts +1 -0
- package/core/constants/SkillSlots.d.ts +8 -0
- package/core/constants/SkillSlots.js +13 -0
- package/core/constants/Spells/SpellIds.d.ts +1 -0
- package/core/constants/Spells/SpellKeys.d.ts +1 -0
- package/core/constants/Spells/SpellKeysNum.d.ts +19 -0
- package/core/constants/Spells/SpellKeysNum.js +4 -0
- package/core/constants/Spells/SpellNames.d.ts +1 -0
- package/core/constants/TowerTypes.d.ts +8 -0
- package/core/constants/TowerTypes.js +13 -0
- package/core/constants/WardTypes.d.ts +2 -0
- package/core/constants/WardTypes.js +2 -0
- package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
- package/core/helpers/Champions/getChampionIdByName.d.ts +2 -1
- package/core/helpers/Champions/getChampionKeyById.d.ts +2 -1
- package/core/helpers/Champions/getChampionKeyByName.d.ts +2 -1
- package/core/helpers/Champions/getChampionNameById.d.ts +2 -1
- package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
- package/core/helpers/Champions/isChampionId.d.ts +1 -1
- package/core/helpers/Champions/isChampionKey.d.ts +1 -1
- package/core/helpers/Champions/isChampionName.d.ts +1 -1
- package/core/helpers/Items/getItemKeyByName.d.ts +2 -1
- package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
- package/core/helpers/Items/isBootsItemKey.d.ts +1 -1
- package/core/helpers/Items/isBootsItemName.d.ts +1 -1
- package/core/helpers/Items/isItemKey.d.ts +1 -1
- package/core/helpers/Items/isItemName.d.ts +1 -1
- package/core/helpers/Items/isLegendaryItemKey.d.ts +1 -1
- package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
- package/core/helpers/Items/isMythicItemKey.d.ts +1 -1
- package/core/helpers/Items/isMythicItemName.d.ts +1 -1
- package/core/helpers/Runes/getRuneCategoryName.d.ts +2 -1
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +1 -1
- package/core/helpers/Runes/getRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getStatRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/getTreeRuneIdByName.d.ts +2 -1
- package/core/helpers/Runes/getTreeRuneNameById.d.ts +2 -1
- package/core/helpers/Runes/isRuneId.d.ts +1 -1
- package/core/helpers/Runes/isRuneName.d.ts +1 -1
- package/core/helpers/Runes/isStatRuneId.d.ts +1 -1
- package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
- package/core/helpers/Runes/isTreeRuneId.d.ts +1 -1
- package/core/helpers/Runes/isTreeRuneName.d.ts +1 -1
- package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
- package/core/helpers/Spells/getSpellIdByName.d.ts +2 -1
- package/core/helpers/Spells/getSpellKeyById.d.ts +2 -1
- package/core/helpers/Spells/getSpellKeyByName.d.ts +2 -1
- package/core/helpers/Spells/getSpellNameById.d.ts +2 -1
- package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
- package/core/helpers/Spells/isSpellId.d.ts +1 -1
- package/core/helpers/Spells/isSpellKey.d.ts +1 -1
- package/core/helpers/Spells/isSpellName.d.ts +1 -1
- package/core/index.d.ts +16 -0
- package/core/index.js +16 -12
- package/core/types/types.d.ts +27 -86
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RuneSetsByRuneNamesNum = exports.StatRuneHSetsByRuneNamesNum = exports.RuneTreeHSetsByRuneNamesNum = exports.RuneIdsNum = exports.StatRuneIdsNum = exports.KeystoneIdsNum = exports.SecondaryRuneTreesByRuneNamesNum = exports.PrimaryRuneTreesByRuneNamesNum = void 0;
|
4
|
+
exports.PrimaryRuneTreesByRuneNamesNum = { "Domination": { "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 }, "Inspiration": { "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 }, "Precision": { "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 }, "Resolve": { "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 }, "Sorcery": { "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 } };
|
5
|
+
exports.SecondaryRuneTreesByRuneNamesNum = { "Domination": { "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 }, "Inspiration": { "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 }, "Precision": { "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 }, "Resolve": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401, "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473, "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 }, "Sorcery": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275, "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233, "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } };
|
6
|
+
exports.KeystoneIdsNum = { "Electrocute": 8112, "Predator": 8124, "Dark Harvest": 8128, "Hail of Blades": 9923, "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, "Conqueror": 8010, "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465, "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 };
|
7
|
+
exports.StatRuneIdsNum = { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008, "Flex (AR)": 5002, "Flex (MR)": 5003, "Flex (AF)": 5008, "Defense (HP)": 5001, "Defense (AR)": 5002, "Defense (MR)": 5003 };
|
8
|
+
exports.RuneIdsNum = { ...exports.PrimaryRuneTreesByRuneNamesNum.Precision, ...exports.PrimaryRuneTreesByRuneNamesNum.Domination, ...exports.PrimaryRuneTreesByRuneNamesNum.Sorcery, ...exports.PrimaryRuneTreesByRuneNamesNum.Resolve, ...exports.PrimaryRuneTreesByRuneNamesNum.Inspiration, ...exports.StatRuneIdsNum };
|
9
|
+
exports.RuneTreeHSetsByRuneNamesNum = { "Domination": { "0": { "Electrocute": 8112, "Predator": 8124, "Dark Harvest": 8128, "Hail of Blades": 9923 }, "1": { "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143 }, "2": { "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138 }, "3": { "Treasure Hunter": 8135, "Ingenious Hunter": 8134, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 } }, "Inspiration": { "0": { "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369 }, "1": { "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Perfect Timing": 8313 }, "2": { "Future's Market": 8321, "Minion Dematerializer": 8316, "Biscuit Delivery": 8345 }, "3": { "Cosmic Insight": 8347, "Approach Velocity": 8410, "Time Warp Tonic": 8352 } }, "Precision": { "0": { "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, "Conqueror": 8010 }, "1": { "Overheal": 9101, "Triumph": 9111, "Presence of Mind": 8009 }, "2": { "Legend: Alacrity": 9104, "Legend: Tenacity": 9105, "Legend: Bloodline": 9103 }, "3": { "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 } }, "Resolve": { "0": { "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465 }, "1": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401 }, "2": { "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473 }, "3": { "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 } }, "Sorcery": { "0": { "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 }, "1": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275 }, "2": { "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233 }, "3": { "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } } };
|
10
|
+
exports.StatRuneHSetsByRuneNamesNum = { "0": { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008 }, "1": { "Flex (AR)": 5002, "Flex (MR)": 5003, "Flex (AF)": 5008 }, "2": { "Defense (HP)": 5001, "Defense (AR)": 5002, "Defense (MR)": 5003 } };
|
11
|
+
/**
|
12
|
+
* Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of 72 runes in the game.
|
13
|
+
*/
|
14
|
+
exports.RuneSetsByRuneNamesNum = { PrimaryRuneTreesByRuneNamesNum: exports.PrimaryRuneTreesByRuneNamesNum, SecondaryRuneTreesByRuneNamesNum: exports.SecondaryRuneTreesByRuneNamesNum, KeystoneIdsNum: exports.KeystoneIdsNum, StatRuneIdsNum: exports.StatRuneIdsNum, RuneIdsNum: exports.RuneIdsNum, RuneTreeHSetsByRuneNamesNum: exports.RuneTreeHSetsByRuneNamesNum, StatRuneHSetsByRuneNamesNum: exports.StatRuneHSetsByRuneNamesNum };
|
@@ -7,5 +7,5 @@ export declare const RuneTreeIds: {
|
|
7
7
|
readonly Inspiration: "8300";
|
8
8
|
};
|
9
9
|
export type RuneTreeId = typeof RuneTreeIds[keyof typeof RuneTreeIds];
|
10
|
-
export declare function isRuneTreeId(id:
|
10
|
+
export declare function isRuneTreeId(id: any): id is RuneTreeId;
|
11
11
|
export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeId;
|
@@ -10,7 +10,7 @@ exports.RuneTreeIds = {
|
|
10
10
|
'Inspiration': '8300',
|
11
11
|
};
|
12
12
|
function isRuneTreeId(id) {
|
13
|
-
return id in RuneTreeNames_1.RuneTreeNames;
|
13
|
+
return typeof id == 'string' && id in RuneTreeNames_1.RuneTreeNames;
|
14
14
|
}
|
15
15
|
exports.isRuneTreeId = isRuneTreeId;
|
16
16
|
function getRuneTreeIdByName(name) {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { RuneTreeName } from './RuneTreeNames';
|
2
|
+
export declare const RuneTreeIdsNum: {
|
3
|
+
readonly Precision: 8000;
|
4
|
+
readonly Domination: 8100;
|
5
|
+
readonly Sorcery: 8200;
|
6
|
+
readonly Resolve: 8400;
|
7
|
+
readonly Inspiration: 8300;
|
8
|
+
};
|
9
|
+
export type RuneTreeIdNum = typeof RuneTreeIdsNum[keyof typeof RuneTreeIdsNum];
|
10
|
+
export declare function isRuneTreeIdNum(id: any): id is RuneTreeIdNum;
|
11
|
+
export declare function getRuneTreeIdByName(name: RuneTreeName): RuneTreeIdNum;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getRuneTreeIdByName = exports.isRuneTreeIdNum = exports.RuneTreeIdsNum = void 0;
|
4
|
+
const RuneTreeNames_1 = require("./RuneTreeNames");
|
5
|
+
exports.RuneTreeIdsNum = {
|
6
|
+
Precision: 8000,
|
7
|
+
Domination: 8100,
|
8
|
+
Sorcery: 8200,
|
9
|
+
Resolve: 8400,
|
10
|
+
Inspiration: 8300,
|
11
|
+
};
|
12
|
+
function isRuneTreeIdNum(id) {
|
13
|
+
return typeof id == 'number' && id in RuneTreeNames_1.RuneTreeNames;
|
14
|
+
}
|
15
|
+
exports.isRuneTreeIdNum = isRuneTreeIdNum;
|
16
|
+
function getRuneTreeIdByName(name) {
|
17
|
+
return exports.RuneTreeIdsNum[name];
|
18
|
+
}
|
19
|
+
exports.getRuneTreeIdByName = getRuneTreeIdByName;
|
@@ -63,3 +63,18 @@ export declare const TreeRuneIds: {
|
|
63
63
|
readonly Waterwalking: "8232";
|
64
64
|
readonly "Gathering Storm": "8236";
|
65
65
|
};
|
66
|
+
/**
|
67
|
+
* There are 3 main Rune ID types:
|
68
|
+
* - `RuneId` (all),
|
69
|
+
* - `TreeRuneId` (all but stat runes),
|
70
|
+
* - `StatRuneId` (only stat runes).
|
71
|
+
*
|
72
|
+
* There are 6 more specific Rune ID types as well:
|
73
|
+
* - `KeystoneRuneId`,
|
74
|
+
* - `PrecisionTreeRuneId`,
|
75
|
+
* - `DominationTreeRuneId`,
|
76
|
+
* - `SorceryTreeRuneId`,
|
77
|
+
* - `ResolveTreeRuneId`,
|
78
|
+
* - `InspirationTreeRuneId`.
|
79
|
+
*/
|
80
|
+
export type TreeRuneId = typeof TreeRuneIds[keyof typeof TreeRuneIds];
|
@@ -0,0 +1,66 @@
|
|
1
|
+
export declare const TreeRuneIdsNum: {
|
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
|
+
};
|
66
|
+
export type TreeRuneIdNum = typeof TreeRuneIdsNum[keyof typeof TreeRuneIdsNum];
|
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TreeRuneIdsNum = void 0;
|
4
|
+
exports.TreeRuneIdsNum = { "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 };
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSkillSlot = exports.SkillSlots = void 0;
|
4
|
+
exports.SkillSlots = {
|
5
|
+
1: 1,
|
6
|
+
2: 2,
|
7
|
+
3: 3,
|
8
|
+
4: 4,
|
9
|
+
};
|
10
|
+
function isSkillSlot(value) {
|
11
|
+
return typeof value == 'number' && value in exports.SkillSlots;
|
12
|
+
}
|
13
|
+
exports.isSkillSlot = isSkillSlot;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare const SpellKeysNum: {
|
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
|
+
};
|
19
|
+
export type SpellKeyNum = typeof SpellKeysNum[keyof typeof SpellKeysNum];
|
@@ -0,0 +1,4 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
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 };
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const TowerTypes: {
|
2
|
+
readonly OUTER_TURRET: "OUTER_TURRET";
|
3
|
+
readonly INNER_TURRET: "INNER_TURRET";
|
4
|
+
readonly BASE_TURRET: "BASE_TURRET";
|
5
|
+
readonly NEXUS_TURRET: "NEXUS_TURRET";
|
6
|
+
};
|
7
|
+
export type TowerType = typeof TowerTypes[keyof typeof TowerTypes];
|
8
|
+
export declare function isTowerType(value: any): value is TowerType;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTowerType = exports.TowerTypes = void 0;
|
4
|
+
exports.TowerTypes = {
|
5
|
+
'OUTER_TURRET': 'OUTER_TURRET',
|
6
|
+
'INNER_TURRET': 'INNER_TURRET',
|
7
|
+
'BASE_TURRET': 'BASE_TURRET',
|
8
|
+
'NEXUS_TURRET': 'NEXUS_TURRET',
|
9
|
+
};
|
10
|
+
function isTowerType(value) {
|
11
|
+
return typeof value == 'string' && value in exports.TowerTypes;
|
12
|
+
}
|
13
|
+
exports.isTowerType = isTowerType;
|
@@ -2,6 +2,8 @@ export declare const WardTypes: {
|
|
2
2
|
readonly UNDEFINED: "UNDEFINED";
|
3
3
|
readonly YELLOW_TRINKET: "YELLOW_TRINKET";
|
4
4
|
readonly CONTROL_WARD: "CONTROL_WARD";
|
5
|
+
readonly SIGHT_WARD: "SIGHT_WARD";
|
6
|
+
readonly BLUE_TRINKET: "BLUE_TRINKET";
|
5
7
|
};
|
6
8
|
export type WardType = typeof WardTypes[keyof typeof WardTypes];
|
7
9
|
export declare function isWardType(value: any): value is WardType;
|
@@ -5,6 +5,8 @@ exports.WardTypes = {
|
|
5
5
|
'UNDEFINED': 'UNDEFINED',
|
6
6
|
'YELLOW_TRINKET': 'YELLOW_TRINKET',
|
7
7
|
'CONTROL_WARD': 'CONTROL_WARD',
|
8
|
+
'SIGHT_WARD': 'SIGHT_WARD',
|
9
|
+
'BLUE_TRINKET': 'BLUE_TRINKET',
|
8
10
|
};
|
9
11
|
function isWardType(value) {
|
10
12
|
return typeof value == 'string' && value in exports.WardTypes;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionId
|
1
|
+
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
|
+
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
3
|
export declare function getChampionIdByKey(key: ChampionKey): ChampionId;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionId
|
1
|
+
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
|
+
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
2
3
|
export declare function getChampionIdByName(name: ChampionName): ChampionId;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionId
|
1
|
+
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
|
+
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
3
|
export declare function getChampionKeyById(id: ChampionId): ChampionKey;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionKey
|
1
|
+
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
|
+
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
2
3
|
export declare function getChampionKeyByName(name: ChampionName): ChampionKey;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionId
|
1
|
+
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
|
+
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
2
3
|
export declare function getChampionNameById(id: ChampionId): ChampionName;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ChampionKey
|
1
|
+
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
|
+
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
2
3
|
export declare function getChampionNameByKey(key: ChampionKey): ChampionName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChampionId } from '../../
|
1
|
+
import { ChampionId } from '../../constants/Champions/ChampionIds';
|
2
2
|
export declare function isChampionId(id: any): id is ChampionId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChampionKey } from '../../
|
1
|
+
import { ChampionKey } from '../../constants/Champions/ChampionKeys';
|
2
2
|
export declare function isChampionKey(key: string): key is ChampionKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ChampionName } from '../../
|
1
|
+
import { ChampionName } from '../../constants/Champions/ChampionNames';
|
2
2
|
export declare function isChampionName(name: any): name is ChampionName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { BootsItemKey } from '../../
|
1
|
+
import { BootsItemKey } from '../../constants/Items/BootsItemKeys';
|
2
2
|
export declare function isBootsItemKey(key: string): key is BootsItemKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { BootsItemName } from '
|
1
|
+
import { BootsItemName } from '../../../assets';
|
2
2
|
export declare function isBootsItemName(name: any): name is BootsItemName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemKey } from '../../
|
1
|
+
import { ItemKey } from '../../constants/Items/ItemKeys';
|
2
2
|
export declare function isItemKey(key: string): key is ItemKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ItemName } from '../../
|
1
|
+
import { ItemName } from '../../constants/Items/ItemNames';
|
2
2
|
export declare function isItemName(name: any): name is ItemName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { LegendaryItemKey } from '../../
|
1
|
+
import { LegendaryItemKey } from '../../constants/Items/LegendaryItemKeys';
|
2
2
|
export declare function isLegendaryItemKey(key: string): key is LegendaryItemKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { LegendaryItemName } from '
|
1
|
+
import { LegendaryItemName } from '../../../assets';
|
2
2
|
export declare function isLegendaryItemName(name: any): name is LegendaryItemName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { MythicItemKey } from '../../
|
1
|
+
import { MythicItemKey } from '../../constants/Items/MythicItemKeys';
|
2
2
|
export declare function isMythicItemKey(key: string): key is MythicItemKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { MythicItemName } from '
|
1
|
+
import { MythicItemName } from '../../../assets';
|
2
2
|
export declare function isMythicItemName(name: any): name is MythicItemName;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { RuneName } from '../../constants/Runes/RuneSets';
|
1
2
|
import { RuneTreeName } from '../../constants/Runes/RuneTreeNames';
|
2
|
-
import {
|
3
|
+
import { StatRunesCategory } from '../../types/types';
|
3
4
|
export declare function getRuneCategoryName(name: RuneName): RuneTreeName | StatRunesCategory;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { TreeRuneId
|
1
|
+
import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
|
2
|
+
import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
|
2
3
|
export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { TreeRuneId
|
1
|
+
import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
|
2
|
+
import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
|
2
3
|
export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId } from '../../
|
1
|
+
import { RuneId } from '../../constants/Runes/RuneSetsByRuneNames';
|
2
2
|
export declare function isRuneId(id: string): id is RuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneName } from '../../
|
1
|
+
import { RuneName } from '../../constants/Runes/RuneSets';
|
2
2
|
export declare function isRuneName(name: any): name is RuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId } from '../../
|
1
|
+
import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
|
2
2
|
export declare function isStatRuneId(id: string): id is StatRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneName } from '
|
1
|
+
import { StatRuneName } from '../../../assets';
|
2
2
|
export declare function isStatRuneName(name: any): name is StatRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId } from '../../
|
1
|
+
import { TreeRuneId } from '../../constants/Runes/TreeRuneIds';
|
2
2
|
export declare function isTreeRuneId(id: string): id is TreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneName } from '../../
|
1
|
+
import { TreeRuneName } from '../../constants/Runes/TreeRuneNames';
|
2
2
|
export declare function isTreeRuneName(name: any): name is TreeRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId } from '../../
|
1
|
+
import { SpellId } from '../../constants/Spells/SpellIds';
|
2
2
|
export declare function isSpellId(id: any): id is SpellId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellKey } from '../../
|
1
|
+
import { SpellKey } from '../../constants/Spells/SpellKeys';
|
2
2
|
export declare function isSpellKey(key: string): key is SpellKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellName } from '../../
|
1
|
+
import { SpellName } from '../../constants/Spells/SpellNames';
|
2
2
|
export declare function isSpellName(name: any): name is SpellName;
|
package/core/index.d.ts
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
+
export * from './constants/BuildingTypes';
|
1
2
|
export * from './constants/DataDragonUrls';
|
3
|
+
export * from './constants/DragonTypes';
|
2
4
|
export * from './constants/GameModes';
|
3
5
|
export * from './constants/GameTypes';
|
6
|
+
export * from './constants/KillTypes';
|
4
7
|
export * from './constants/Lanes';
|
8
|
+
export * from './constants/LaneTypes';
|
5
9
|
export * from './constants/Levels';
|
6
10
|
export * from './constants/Locales';
|
11
|
+
export * from './constants/MonsterTypes';
|
7
12
|
export * from './constants/PlatformIds';
|
8
13
|
export * from './constants/Positions';
|
9
14
|
export * from './constants/Queues';
|
@@ -13,30 +18,41 @@ export * from './constants/Regions';
|
|
13
18
|
export * from './constants/RelativeTeams';
|
14
19
|
export * from './constants/Roles';
|
15
20
|
export * from './constants/Skills';
|
21
|
+
export * from './constants/SkillSlots';
|
22
|
+
export * from './constants/TowerTypes';
|
16
23
|
export * from './constants/WardTypes';
|
17
24
|
export * from './constants/Champions/ChampionIds';
|
18
25
|
export * from './constants/Champions/ChampionIdsByName';
|
19
26
|
export * from './constants/Champions/ChampionKeys';
|
27
|
+
export * from './constants/Champions/ChampionKeysNum';
|
20
28
|
export * from './constants/Champions/ChampionNames';
|
21
29
|
export * from './constants/Items/BootsItemKeys';
|
30
|
+
export * from './constants/Items/BootsItemKeysNum';
|
22
31
|
export * from './constants/Items/BootsItemNames';
|
23
32
|
export * from './constants/Items/ItemKeys';
|
33
|
+
export * from './constants/Items/ItemKeysNum';
|
24
34
|
export * from './constants/Items/ItemNames';
|
25
35
|
export * from './constants/Items/ItemTypes';
|
26
36
|
export * from './constants/Items/LegendaryItemKeys';
|
37
|
+
export * from './constants/Items/LegendaryItemKeysNum';
|
27
38
|
export * from './constants/Items/LegendaryItemNames';
|
28
39
|
export * from './constants/Items/MythicItemKeys';
|
40
|
+
export * from './constants/Items/MythicItemKeysNum';
|
29
41
|
export * from './constants/Items/MythicItemNames';
|
30
42
|
export * from './constants/Runes/RuneIconFileNames';
|
31
43
|
export * from './constants/Runes/RunePickingRelationships';
|
32
44
|
export * from './constants/Runes/RuneSets';
|
45
|
+
export * from './constants/Runes/RuneSetsByRuneNames';
|
46
|
+
export * from './constants/Runes/RuneSetsByRuneNamesNum';
|
33
47
|
export * from './constants/Runes/RuneTreeIds';
|
34
48
|
export * from './constants/Runes/RuneTreeNames';
|
35
49
|
export * from './constants/Runes/TreeRuneIds';
|
50
|
+
export * from './constants/Runes/TreeRuneIdsNum';
|
36
51
|
export * from './constants/Runes/TreeRuneNames';
|
37
52
|
export * from './constants/Spells/SpellIds';
|
38
53
|
export * from './constants/Spells/SpellIdsByName';
|
39
54
|
export * from './constants/Spells/SpellKeys';
|
55
|
+
export * from './constants/Spells/SpellKeysNum';
|
40
56
|
export * from './constants/Spells/SpellNames';
|
41
57
|
export * from './helpers/getPositionImageUrl';
|
42
58
|
export * from './helpers/Champions/getChampionIdByKey';
|