lol-constants 1.13.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{Constants → constants}/BootsItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/BootsItemNames.js +21 -17
- package/assets/{Constants → constants}/Champion.d.ts +7668 -7621
- package/assets/constants/Champion.js +4 -0
- package/assets/{Constants → constants}/Item.d.ts +10073 -10073
- package/assets/constants/Item.js +4 -0
- package/assets/{Constants → constants}/LegendaryItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/LegendaryItemNames.js +86 -82
- package/assets/{Constants → constants}/MythicItemNames.d.ts +6 -4
- package/assets/{Constants → constants}/MythicItemNames.js +40 -36
- package/assets/{Constants → constants}/RunesReforged.d.ts +512 -512
- package/assets/{Constants → constants}/RunesReforged.js +4 -4
- package/assets/{Constants → constants}/StatRunes.d.ts +15 -14
- package/assets/{Constants → constants}/StatRunes.js +17 -17
- package/assets/{Constants → constants}/StatRunesByRow.d.ts +20 -20
- package/assets/{Constants → constants}/StatRunesByRow.js +23 -23
- package/assets/{Constants → constants}/Summoner.d.ts +518 -518
- package/assets/{Constants → constants}/Summoner.js +4 -4
- package/assets/index.d.ts +9 -9
- package/assets/index.js +28 -24
- package/assets/scripts/generate-all.d.ts +17 -17
- package/assets/scripts/generate-all.js +19 -19
- package/assets/scripts/generate-categorized-item-keys.d.ts +1 -1
- package/assets/scripts/generate-categorized-item-keys.js +57 -57
- package/assets/scripts/generate-categorized-item-names.d.ts +1 -1
- package/assets/scripts/generate-categorized-item-names.js +57 -57
- package/assets/scripts/generate-champion-ids-by-name.d.ts +1 -1
- package/assets/scripts/generate-champion-ids-by-name.js +17 -17
- package/assets/scripts/generate-champion-ids.d.ts +1 -1
- package/assets/scripts/generate-champion-ids.js +17 -17
- package/assets/scripts/generate-champion-keys.d.ts +1 -1
- package/assets/scripts/generate-champion-keys.js +17 -17
- package/assets/scripts/generate-champion-names.d.ts +1 -1
- package/assets/scripts/generate-champion-names.js +17 -17
- package/assets/scripts/generate-item-keys.d.ts +1 -1
- package/assets/scripts/generate-item-keys.js +18 -18
- package/assets/scripts/generate-item-names.d.ts +1 -1
- package/assets/scripts/generate-item-names.js +18 -18
- package/assets/scripts/generate-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-rune-ids.js +26 -26
- package/assets/scripts/generate-rune-names.d.ts +1 -1
- package/assets/scripts/generate-rune-names.js +26 -26
- package/assets/scripts/generate-rune-picking-relationships.d.ts +1 -1
- package/assets/scripts/generate-rune-picking-relationships.js +54 -54
- package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +1 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +116 -116
- package/assets/scripts/generate-rune-sets.d.ts +1 -1
- package/assets/scripts/generate-rune-sets.js +116 -116
- package/assets/scripts/generate-spell-ids-by-name.d.ts +1 -1
- package/assets/scripts/generate-spell-ids-by-name.js +17 -17
- package/assets/scripts/generate-spell-ids.d.ts +1 -1
- package/assets/scripts/generate-spell-ids.js +17 -17
- package/assets/scripts/generate-spell-keys.d.ts +1 -1
- package/assets/scripts/generate-spell-keys.js +17 -17
- package/assets/scripts/generate-spell-names.d.ts +1 -1
- package/assets/scripts/generate-spell-names.js +17 -17
- package/assets/scripts/generate-stat-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-stat-rune-ids.js +17 -17
- package/assets/scripts/generate-stat-rune-names.d.ts +1 -1
- package/assets/scripts/generate-stat-rune-names.js +17 -17
- package/assets/scripts/generate-tree-rune-ids.d.ts +1 -1
- package/assets/scripts/generate-tree-rune-ids.js +19 -19
- package/assets/scripts/generate-tree-rune-names.d.ts +1 -1
- package/assets/scripts/generate-tree-rune-names.js +19 -19
- package/assets/scripts/{Helpers → helpers}/enableEscapedValues.d.ts +15 -15
- package/assets/scripts/{Helpers → helpers}/enableEscapedValues.js +38 -38
- package/assets/scripts/{Helpers → helpers}/getExportStatement.d.ts +6 -6
- package/assets/scripts/{Helpers → helpers}/getExportStatement.js +16 -16
- package/assets/scripts/{Helpers → helpers}/getFmtdComment.d.ts +5 -5
- package/assets/scripts/{Helpers → helpers}/getFmtdComment.js +15 -15
- package/assets/scripts/{Helpers → helpers}/writeToTmpFile.d.ts +8 -8
- package/assets/scripts/{Helpers → helpers}/writeToTmpFile.js +22 -22
- package/core/{Constants → constants}/Champions/ChampionIds.d.ts +165 -164
- package/core/{Constants → constants}/Champions/ChampionIds.js +4 -4
- package/core/{Constants → constants}/Champions/ChampionIdsByName.d.ts +165 -164
- package/core/constants/Champions/ChampionIdsByName.js +4 -0
- package/core/{Constants → constants}/Champions/ChampionKeys.d.ts +165 -164
- package/core/constants/Champions/ChampionKeys.js +4 -0
- package/core/{Constants → constants}/Champions/ChampionNames.d.ts +165 -164
- package/core/{Constants → constants}/Champions/ChampionNames.js +4 -4
- package/core/{Constants/DDPaths.d.ts → constants/DataDragonUrls.d.ts} +38 -38
- package/core/{Constants/DDPaths.js → constants/DataDragonUrls.js} +45 -45
- package/core/constants/GameModes.d.ts +12 -0
- package/core/constants/GameModes.js +17 -0
- package/core/constants/GameTypes.d.ts +7 -0
- package/core/constants/GameTypes.js +12 -0
- package/core/{Constants → constants}/Items/BootsItemKeys.d.ts +11 -11
- package/core/{Constants → constants}/Items/BootsItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/BootsItemNames.d.ts +11 -11
- package/core/{Constants → constants}/Items/BootsItemNames.js +4 -4
- package/core/{Constants → constants}/Items/ItemKeys.d.ts +263 -263
- package/core/{Constants → constants}/Items/ItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/ItemNames.d.ts +271 -271
- package/core/{Constants → constants}/Items/ItemNames.js +4 -4
- package/core/{Constants → constants}/Items/ItemTypes.d.ts +8 -6
- package/core/{Constants → constants}/Items/ItemTypes.js +13 -9
- package/core/{Constants → constants}/Items/LegendaryItemKeys.d.ts +76 -76
- package/core/{Constants → constants}/Items/LegendaryItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/LegendaryItemNames.d.ts +76 -76
- package/core/{Constants → constants}/Items/LegendaryItemNames.js +4 -4
- package/core/{Constants → constants}/Items/MythicItemKeys.d.ts +30 -30
- package/core/{Constants → constants}/Items/MythicItemKeys.js +4 -4
- package/core/{Constants → constants}/Items/MythicItemNames.d.ts +30 -30
- package/core/{Constants → constants}/Items/MythicItemNames.js +4 -4
- package/core/{Constants → constants}/Lanes.d.ts +8 -6
- package/core/{Constants → constants}/Lanes.js +13 -9
- package/core/{Constants → constants}/Levels.d.ts +22 -20
- package/core/{Constants → constants}/Levels.js +27 -23
- package/core/constants/Locales.d.ts +32 -0
- package/core/constants/Locales.js +37 -0
- package/core/constants/PlatformIds.d.ts +15 -0
- package/core/constants/PlatformIds.js +20 -0
- package/core/{Constants → constants}/Positions.d.ts +9 -7
- package/core/{Constants → constants}/Positions.js +14 -10
- package/core/constants/Queues.d.ts +7 -0
- package/core/constants/Queues.js +12 -0
- package/core/constants/RankedRanks.d.ts +8 -0
- package/core/constants/RankedRanks.js +13 -0
- package/core/constants/RankedTiers.d.ts +13 -0
- package/core/constants/RankedTiers.js +18 -0
- package/core/constants/Regions.d.ts +21 -0
- package/core/constants/Regions.js +26 -0
- package/core/constants/RelativeTeams.d.ts +6 -0
- package/core/constants/RelativeTeams.js +11 -0
- package/core/constants/Roles.d.ts +8 -0
- package/core/constants/Roles.js +13 -0
- package/core/{Constants → constants}/Runes/RuneIconFileNames.d.ts +13 -12
- package/core/{Constants → constants}/Runes/RuneIconFileNames.js +101 -101
- package/core/{Constants → constants}/Runes/RunePickingRelationships.d.ts +77 -77
- package/core/{Constants → constants}/Runes/RunePickingRelationships.js +7 -7
- package/core/{Constants → constants}/Runes/RuneSets.d.ts +743 -743
- package/core/{Constants → constants}/Runes/RuneSets.js +14 -14
- package/core/{Constants → constants}/Runes/RuneSetsByRuneNames.d.ts +743 -743
- package/core/constants/Runes/RuneSetsByRuneNames.js +14 -0
- package/core/constants/Runes/RuneTreeIds.d.ts +11 -0
- package/core/constants/Runes/RuneTreeIds.js +19 -0
- package/core/constants/Runes/RuneTreeNames.d.ts +11 -0
- package/core/constants/Runes/RuneTreeNames.js +19 -0
- package/core/constants/Runes/RuneTreeTypes.d.ts +6 -0
- package/core/constants/Runes/RuneTreeTypes.js +11 -0
- package/core/{Constants → constants}/Runes/TreeRuneIds.d.ts +65 -65
- package/core/{Constants → constants}/Runes/TreeRuneIds.js +4 -4
- package/core/{Constants → constants}/Runes/TreeRuneNames.d.ts +65 -65
- package/core/{Constants → constants}/Runes/TreeRuneNames.js +4 -4
- package/core/{Constants → constants}/Skills.d.ts +8 -6
- package/core/constants/Skills.js +13 -0
- package/core/{Constants → constants}/Spells/SpellIds.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellIds.js +4 -4
- package/core/{Constants → constants}/Spells/SpellIdsByName.d.ts +17 -17
- package/core/{Constants → constants}/Spells/SpellIdsByName.js +4 -4
- package/core/{Constants → constants}/Spells/SpellKeys.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellKeys.js +4 -4
- package/core/{Constants → constants}/Spells/SpellNames.d.ts +18 -18
- package/core/{Constants → constants}/Spells/SpellNames.js +4 -4
- package/core/constants/WardTypes.d.ts +7 -0
- package/core/constants/WardTypes.js +12 -0
- package/core/{Helpers → helpers}/Champions/getChampionIdByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionIdByKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionIdByName.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionKeyById.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionKeyById.js +8 -8
- package/core/{Helpers → helpers}/Champions/getChampionKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionKeyByName.js +9 -9
- package/core/{Helpers → helpers}/Champions/getChampionNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionNameById.js +9 -9
- package/core/{Helpers → helpers}/Champions/getChampionNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/getChampionNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionId.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionId.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionKey.js +8 -8
- package/core/{Helpers → helpers}/Champions/isChampionName.d.ts +2 -2
- package/core/{Helpers → helpers}/Champions/isChampionName.js +8 -8
- package/core/{Helpers → helpers}/Items/getItemKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/getItemKeyByName.js +8 -8
- package/core/{Helpers → helpers}/Items/getItemNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/getItemNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isBootsItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isBootsItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isBootsItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isBootsItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isLegendaryItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isLegendaryItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isLegendaryItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isLegendaryItemName.js +8 -8
- package/core/{Helpers → helpers}/Items/isMythicItemKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isMythicItemKey.js +8 -8
- package/core/{Helpers → helpers}/Items/isMythicItemName.d.ts +2 -2
- package/core/{Helpers → helpers}/Items/isMythicItemName.js +8 -8
- package/core/helpers/Runes/getRuneCategoryName.d.ts +3 -0
- package/core/helpers/Runes/getRuneCategoryName.js +20 -0
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +3 -0
- package/core/{Helpers/Runes/getRuneCDNURL.js → helpers/Runes/getRuneCdnUrl.js} +49 -53
- package/core/{Helpers → helpers}/Runes/getRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/getStatRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getStatRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getStatRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getStatRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/getTreeRuneIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getTreeRuneIdByName.js +8 -8
- package/core/{Helpers → helpers}/Runes/getTreeRuneNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/getTreeRuneNameById.js +8 -8
- package/core/{Helpers → helpers}/Runes/isDominationTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isDominationTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isInspirationTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isInspirationTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isKeystoneRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isKeystoneRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isPrecisionTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isPrecisionTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isResolveTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isResolveTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isRuneName.js +8 -8
- package/core/{Helpers → helpers}/Runes/isSorceryTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isSorceryTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isStatRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isStatRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isStatRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isStatRuneName.js +8 -8
- package/core/{Helpers → helpers}/Runes/isTreeRuneId.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isTreeRuneId.js +8 -8
- package/core/{Helpers → helpers}/Runes/isTreeRuneName.d.ts +2 -2
- package/core/{Helpers → helpers}/Runes/isTreeRuneName.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellIdByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellIdByKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellIdByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellIdByName.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellKeyById.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellKeyById.js +8 -8
- package/core/{Helpers → helpers}/Spells/getSpellKeyByName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellKeyByName.js +9 -9
- package/core/{Helpers → helpers}/Spells/getSpellNameById.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellNameById.js +9 -9
- package/core/{Helpers → helpers}/Spells/getSpellNameByKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/getSpellNameByKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellId.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellId.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellKey.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellKey.js +8 -8
- package/core/{Helpers → helpers}/Spells/isSpellName.d.ts +2 -2
- package/core/{Helpers → helpers}/Spells/isSpellName.js +8 -8
- package/core/helpers/getPositionImageUrl.d.ts +2 -0
- package/core/helpers/getPositionImageUrl.js +15 -0
- package/core/index.d.ts +90 -92
- package/core/index.js +129 -229
- package/core/types/types.d.ts +210 -0
- package/core/types/{Meta.js → types.js} +2 -2
- package/package.json +4 -4
- package/assets/Constants/Champion.js +0 -4
- package/assets/Constants/Item.js +0 -4
- package/core/Constants/Champions/ChampionIdsByName.js +0 -4
- package/core/Constants/Champions/ChampionKeys.js +0 -4
- package/core/Constants/Meta/ChampionRelationTypes.d.ts +0 -4
- package/core/Constants/Meta/ChampionRelationTypes.js +0 -7
- package/core/Constants/Runes/RuneSetsByRuneNames.js +0 -14
- package/core/Constants/Runes/RuneTreeIds.d.ts +0 -7
- package/core/Constants/Runes/RuneTreeIds.js +0 -10
- package/core/Constants/Runes/RuneTreeNames.d.ts +0 -7
- package/core/Constants/Runes/RuneTreeNames.js +0 -10
- package/core/Constants/Runes/RuneTreeTypes.d.ts +0 -4
- package/core/Constants/Runes/RuneTreeTypes.js +0 -7
- package/core/Constants/Skills.js +0 -9
- package/core/Helpers/Icons/getPositionImageURL.d.ts +0 -5
- package/core/Helpers/Icons/getPositionImageURL.js +0 -15
- package/core/Helpers/Items/isItemType.d.ts +0 -2
- package/core/Helpers/Items/isItemType.js +0 -8
- package/core/Helpers/Meta/isChampionRelationType.d.ts +0 -2
- package/core/Helpers/Meta/isChampionRelationType.js +0 -8
- package/core/Helpers/Runes/getRuneCDNURL.d.ts +0 -6
- package/core/Helpers/Runes/getRuneCategoryByRuneName.d.ts +0 -5
- package/core/Helpers/Runes/getRuneCategoryByRuneName.js +0 -28
- package/core/Helpers/Runes/getRuneTreeIdByName.d.ts +0 -2
- package/core/Helpers/Runes/getRuneTreeIdByName.js +0 -8
- package/core/Helpers/Runes/getRuneTreeNameById.d.ts +0 -2
- package/core/Helpers/Runes/getRuneTreeNameById.js +0 -8
- package/core/Helpers/Runes/isRuneTreeId.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeId.js +0 -8
- package/core/Helpers/Runes/isRuneTreeName.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeName.js +0 -8
- package/core/Helpers/Runes/isRuneTreeType.d.ts +0 -2
- package/core/Helpers/Runes/isRuneTreeType.js +0 -8
- package/core/Helpers/isLane.d.ts +0 -2
- package/core/Helpers/isLane.js +0 -8
- package/core/Helpers/isLevel.d.ts +0 -2
- package/core/Helpers/isLevel.js +0 -8
- package/core/Helpers/isPosition.d.ts +0 -2
- package/core/Helpers/isPosition.js +0 -8
- package/core/Helpers/isSkill.d.ts +0 -2
- package/core/Helpers/isSkill.js +0 -8
- package/core/types/Meta.d.ts +0 -40
- package/core/types/index.d.ts +0 -197
- package/core/types/index.js +0 -2
@@ -1,53 +1,49 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
const
|
5
|
-
const RuneIconFileNames_1 = require("../../
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const isStatRuneName_1 = require("./isStatRuneName");
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
//
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
//
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
case '
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
}
|
51
|
-
return `${base}/${runeTreeFolder}/${runeFolder}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
|
52
|
-
}
|
53
|
-
exports.getRuneCDNURL = getRuneCDNURL;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getRuneCdnUrl = void 0;
|
4
|
+
const DataDragonUrls_1 = require("../../constants/DataDragonUrls");
|
5
|
+
const RuneIconFileNames_1 = require("../../constants/Runes/RuneIconFileNames");
|
6
|
+
const RuneTreeNames_1 = require("../../constants/Runes/RuneTreeNames");
|
7
|
+
const getRuneCategoryName_1 = require("./getRuneCategoryName");
|
8
|
+
const isStatRuneName_1 = require("./isStatRuneName");
|
9
|
+
function getRuneCdnUrl(name) {
|
10
|
+
// Choose the appropriate base path
|
11
|
+
const base = (0, isStatRuneName_1.isStatRuneName)(name)
|
12
|
+
? DataDragonUrls_1.DataDragonUrls.STAT_RUNE_ICON_BASE
|
13
|
+
: DataDragonUrls_1.DataDragonUrls.TREE_RUNE_ICON_BASE;
|
14
|
+
// Already sufficient enough response for a rune tree name
|
15
|
+
if ((0, RuneTreeNames_1.isRuneTreeName)(name))
|
16
|
+
return `${base}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
|
17
|
+
// And stat runes
|
18
|
+
if ((0, isStatRuneName_1.isStatRuneName)(name))
|
19
|
+
return `${base}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
|
20
|
+
// Finish for tree rune names
|
21
|
+
let category = (0, getRuneCategoryName_1.getRuneCategoryName)(name);
|
22
|
+
// Remove spaces, colons, apostrophes and make lowercase
|
23
|
+
let runeTreeFolder = category.replaceAll(' ', '').toLowerCase();
|
24
|
+
let runeFolder = name.replaceAll(/[:']/g, '').toLowerCase();
|
25
|
+
// Some runes, for whatever reason, are displaced and badly organized.
|
26
|
+
// Therefore we are going to add special cases to these runes.
|
27
|
+
switch (name) {
|
28
|
+
case 'Triumph':
|
29
|
+
case 'Overheal':
|
30
|
+
runeFolder = '';
|
31
|
+
break;
|
32
|
+
case 'Last Stand':
|
33
|
+
runeTreeFolder = 'sorcery';
|
34
|
+
break;
|
35
|
+
case 'Aftershock':
|
36
|
+
runeFolder = 'veteranaftershock';
|
37
|
+
break;
|
38
|
+
case 'Shield Bash':
|
39
|
+
runeFolder = 'mirrorshell';
|
40
|
+
break;
|
41
|
+
case 'Unflinching':
|
42
|
+
runeTreeFolder = 'sorcery';
|
43
|
+
break;
|
44
|
+
case 'Approach Velocity':
|
45
|
+
runeTreeFolder = 'resolve';
|
46
|
+
}
|
47
|
+
return `${base}/${runeTreeFolder}/${runeFolder}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
|
48
|
+
}
|
49
|
+
exports.getRuneCdnUrl = getRuneCdnUrl;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId, RuneName } from '../../types';
|
2
|
-
export declare function getRuneIdByName(name: RuneName): RuneId;
|
1
|
+
import { RuneId, RuneName } from '../../types/types';
|
2
|
+
export declare function getRuneIdByName(name: RuneName): RuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getRuneIdByName = void 0;
|
4
|
-
const RuneSetsByRuneNames_1 = require("../../
|
5
|
-
function getRuneIdByName(name) {
|
6
|
-
return RuneSetsByRuneNames_1.RuneIds[name];
|
7
|
-
}
|
8
|
-
exports.getRuneIdByName = getRuneIdByName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getRuneIdByName = void 0;
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
|
5
|
+
function getRuneIdByName(name) {
|
6
|
+
return RuneSetsByRuneNames_1.RuneIds[name];
|
7
|
+
}
|
8
|
+
exports.getRuneIdByName = getRuneIdByName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId, RuneName } from '../../types';
|
2
|
-
export declare function getRuneNameById(id: RuneId): RuneName;
|
1
|
+
import { RuneId, RuneName } from '../../types/types';
|
2
|
+
export declare function getRuneNameById(id: RuneId): RuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getRuneNameById = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function getRuneNameById(id) {
|
6
|
-
return RuneSets_1.RuneNames[id];
|
7
|
-
}
|
8
|
-
exports.getRuneNameById = getRuneNameById;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getRuneNameById = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function getRuneNameById(id) {
|
6
|
+
return RuneSets_1.RuneNames[id];
|
7
|
+
}
|
8
|
+
exports.getRuneNameById = getRuneNameById;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId, StatRuneName } from '../../types';
|
2
|
-
export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
|
1
|
+
import { StatRuneId, StatRuneName } from '../../types/types';
|
2
|
+
export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getStatRuneIdByName = void 0;
|
4
|
-
const RuneSetsByRuneNames_1 = require("../../
|
5
|
-
function getStatRuneIdByName(name) {
|
6
|
-
return RuneSetsByRuneNames_1.StatRuneIds[name];
|
7
|
-
}
|
8
|
-
exports.getStatRuneIdByName = getStatRuneIdByName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getStatRuneIdByName = void 0;
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
|
5
|
+
function getStatRuneIdByName(name) {
|
6
|
+
return RuneSetsByRuneNames_1.StatRuneIds[name];
|
7
|
+
}
|
8
|
+
exports.getStatRuneIdByName = getStatRuneIdByName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId, StatRuneName } from '../../types';
|
2
|
-
export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
|
1
|
+
import { StatRuneId, StatRuneName } from '../../types/types';
|
2
|
+
export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getStatRuneNameById = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function getStatRuneNameById(id) {
|
6
|
-
return RuneSets_1.StatRuneNames[id];
|
7
|
-
}
|
8
|
-
exports.getStatRuneNameById = getStatRuneNameById;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getStatRuneNameById = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function getStatRuneNameById(id) {
|
6
|
+
return RuneSets_1.StatRuneNames[id];
|
7
|
+
}
|
8
|
+
exports.getStatRuneNameById = getStatRuneNameById;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId, TreeRuneName } from '../../types';
|
2
|
-
export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
|
1
|
+
import { TreeRuneId, TreeRuneName } from '../../types/types';
|
2
|
+
export declare function getTreeRuneIdByName(name: TreeRuneName): TreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getTreeRuneIdByName = void 0;
|
4
|
-
const TreeRuneIds_1 = require("../../
|
5
|
-
function getTreeRuneIdByName(name) {
|
6
|
-
return TreeRuneIds_1.TreeRuneIds[name];
|
7
|
-
}
|
8
|
-
exports.getTreeRuneIdByName = getTreeRuneIdByName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getTreeRuneIdByName = void 0;
|
4
|
+
const TreeRuneIds_1 = require("../../constants/Runes/TreeRuneIds");
|
5
|
+
function getTreeRuneIdByName(name) {
|
6
|
+
return TreeRuneIds_1.TreeRuneIds[name];
|
7
|
+
}
|
8
|
+
exports.getTreeRuneIdByName = getTreeRuneIdByName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId, TreeRuneName } from '../../types';
|
2
|
-
export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
|
1
|
+
import { TreeRuneId, TreeRuneName } from '../../types/types';
|
2
|
+
export declare function getTreeRuneNameById(id: TreeRuneId): TreeRuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getTreeRuneNameById = void 0;
|
4
|
-
const TreeRuneNames_1 = require("../../
|
5
|
-
function getTreeRuneNameById(id) {
|
6
|
-
return TreeRuneNames_1.TreeRuneNames[id];
|
7
|
-
}
|
8
|
-
exports.getTreeRuneNameById = getTreeRuneNameById;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getTreeRuneNameById = void 0;
|
4
|
+
const TreeRuneNames_1 = require("../../constants/Runes/TreeRuneNames");
|
5
|
+
function getTreeRuneNameById(id) {
|
6
|
+
return TreeRuneNames_1.TreeRuneNames[id];
|
7
|
+
}
|
8
|
+
exports.getTreeRuneNameById = getTreeRuneNameById;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { DominationTreeRuneId } from '../../types';
|
2
|
-
export declare function isDominationTreeRuneId(id: string): id is DominationTreeRuneId;
|
1
|
+
import { DominationTreeRuneId } from '../../types/types';
|
2
|
+
export declare function isDominationTreeRuneId(id: string): id is DominationTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isDominationTreeRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isDominationTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.PrimaryRuneTrees.Domination;
|
7
|
-
}
|
8
|
-
exports.isDominationTreeRuneId = isDominationTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isDominationTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isDominationTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Domination;
|
7
|
+
}
|
8
|
+
exports.isDominationTreeRuneId = isDominationTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { InspirationTreeRuneId } from '../../types';
|
2
|
-
export declare function isInspirationTreeRuneId(id: string): id is InspirationTreeRuneId;
|
1
|
+
import { InspirationTreeRuneId } from '../../types/types';
|
2
|
+
export declare function isInspirationTreeRuneId(id: string): id is InspirationTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isInspirationTreeRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isInspirationTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.PrimaryRuneTrees.Inspiration;
|
7
|
-
}
|
8
|
-
exports.isInspirationTreeRuneId = isInspirationTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isInspirationTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isInspirationTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Inspiration;
|
7
|
+
}
|
8
|
+
exports.isInspirationTreeRuneId = isInspirationTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { KeystoneRuneId } from '../../types';
|
2
|
-
export declare function isKeystoneRuneId(id: string): id is KeystoneRuneId;
|
1
|
+
import { KeystoneRuneId } from '../../types/types';
|
2
|
+
export declare function isKeystoneRuneId(id: string): id is KeystoneRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isKeystoneRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isKeystoneRuneId(id) {
|
6
|
-
return id in RuneSets_1.KeystoneNames;
|
7
|
-
}
|
8
|
-
exports.isKeystoneRuneId = isKeystoneRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isKeystoneRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isKeystoneRuneId(id) {
|
6
|
+
return id in RuneSets_1.KeystoneNames;
|
7
|
+
}
|
8
|
+
exports.isKeystoneRuneId = isKeystoneRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { PrecisionTreeRuneId } from '../../types';
|
2
|
-
export declare function isPrecisionTreeRuneId(id: string): id is PrecisionTreeRuneId;
|
1
|
+
import { PrecisionTreeRuneId } from '../../types/types';
|
2
|
+
export declare function isPrecisionTreeRuneId(id: string): id is PrecisionTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isPrecisionTreeRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isPrecisionTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.PrimaryRuneTrees.Precision;
|
7
|
-
}
|
8
|
-
exports.isPrecisionTreeRuneId = isPrecisionTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isPrecisionTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isPrecisionTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Precision;
|
7
|
+
}
|
8
|
+
exports.isPrecisionTreeRuneId = isPrecisionTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { ResolveTreeRuneId } from '../../types';
|
2
|
-
export declare function isResolveTreeRuneId(id: string): id is ResolveTreeRuneId;
|
1
|
+
import { ResolveTreeRuneId } from '../../types/types';
|
2
|
+
export declare function isResolveTreeRuneId(id: string): id is ResolveTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isResolveTreeRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isResolveTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.PrimaryRuneTrees.Resolve;
|
7
|
-
}
|
8
|
-
exports.isResolveTreeRuneId = isResolveTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isResolveTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isResolveTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Resolve;
|
7
|
+
}
|
8
|
+
exports.isResolveTreeRuneId = isResolveTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneId } from '../../types';
|
2
|
-
export declare function isRuneId(id: string): id is RuneId;
|
1
|
+
import { RuneId } from '../../types/types';
|
2
|
+
export declare function isRuneId(id: string): id is RuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isRuneId(id) {
|
6
|
-
return id in RuneSets_1.RuneNames;
|
7
|
-
}
|
8
|
-
exports.isRuneId = isRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isRuneId(id) {
|
6
|
+
return id in RuneSets_1.RuneNames;
|
7
|
+
}
|
8
|
+
exports.isRuneId = isRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { RuneName } from '../../types';
|
2
|
-
export declare function isRuneName(name: any): name is RuneName;
|
1
|
+
import { RuneName } from '../../types/types';
|
2
|
+
export declare function isRuneName(name: any): name is RuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isRuneName = void 0;
|
4
|
-
const RuneSetsByRuneNames_1 = require("../../
|
5
|
-
function isRuneName(name) {
|
6
|
-
return name in RuneSetsByRuneNames_1.RuneIds;
|
7
|
-
}
|
8
|
-
exports.isRuneName = isRuneName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRuneName = void 0;
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
|
5
|
+
function isRuneName(name) {
|
6
|
+
return typeof name == 'string' && name in RuneSetsByRuneNames_1.RuneIds;
|
7
|
+
}
|
8
|
+
exports.isRuneName = isRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SorceryTreeRuneId } from '../../types';
|
2
|
-
export declare function isSorceryTreeRuneId(id: string): id is SorceryTreeRuneId;
|
1
|
+
import { SorceryTreeRuneId } from '../../types/types';
|
2
|
+
export declare function isSorceryTreeRuneId(id: string): id is SorceryTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isSorceryTreeRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isSorceryTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
|
7
|
-
}
|
8
|
-
exports.isSorceryTreeRuneId = isSorceryTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isSorceryTreeRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isSorceryTreeRuneId(id) {
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
|
7
|
+
}
|
8
|
+
exports.isSorceryTreeRuneId = isSorceryTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneId } from '../../types';
|
2
|
-
export declare function isStatRuneId(id: string): id is StatRuneId;
|
1
|
+
import { StatRuneId } from '../../types/types';
|
2
|
+
export declare function isStatRuneId(id: string): id is StatRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isStatRuneId = void 0;
|
4
|
-
const RuneSets_1 = require("../../
|
5
|
-
function isStatRuneId(id) {
|
6
|
-
return id in RuneSets_1.StatRuneNames;
|
7
|
-
}
|
8
|
-
exports.isStatRuneId = isStatRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneId = void 0;
|
4
|
+
const RuneSets_1 = require("../../constants/Runes/RuneSets");
|
5
|
+
function isStatRuneId(id) {
|
6
|
+
return id in RuneSets_1.StatRuneNames;
|
7
|
+
}
|
8
|
+
exports.isStatRuneId = isStatRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { StatRuneName } from '../../types';
|
2
|
-
export declare function isStatRuneName(name: any): name is StatRuneName;
|
1
|
+
import { StatRuneName } from '../../types/types';
|
2
|
+
export declare function isStatRuneName(name: any): name is StatRuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isStatRuneName = void 0;
|
4
|
-
const RuneSetsByRuneNames_1 = require("../../
|
5
|
-
function isStatRuneName(name) {
|
6
|
-
return name in RuneSetsByRuneNames_1.StatRuneIds;
|
7
|
-
}
|
8
|
-
exports.isStatRuneName = isStatRuneName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStatRuneName = void 0;
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
|
5
|
+
function isStatRuneName(name) {
|
6
|
+
return typeof name == 'string' && name in RuneSetsByRuneNames_1.StatRuneIds;
|
7
|
+
}
|
8
|
+
exports.isStatRuneName = isStatRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneId } from '../../types';
|
2
|
-
export declare function isTreeRuneId(id: string): id is TreeRuneId;
|
1
|
+
import { TreeRuneId } from '../../types/types';
|
2
|
+
export declare function isTreeRuneId(id: string): id is TreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isTreeRuneId = void 0;
|
4
|
-
const TreeRuneNames_1 = require("../../
|
5
|
-
function isTreeRuneId(id) {
|
6
|
-
return id in TreeRuneNames_1.TreeRuneNames;
|
7
|
-
}
|
8
|
-
exports.isTreeRuneId = isTreeRuneId;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneId = void 0;
|
4
|
+
const TreeRuneNames_1 = require("../../constants/Runes/TreeRuneNames");
|
5
|
+
function isTreeRuneId(id) {
|
6
|
+
return id in TreeRuneNames_1.TreeRuneNames;
|
7
|
+
}
|
8
|
+
exports.isTreeRuneId = isTreeRuneId;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { TreeRuneName } from '../../types';
|
2
|
-
export declare function isTreeRuneName(name: any): name is TreeRuneName;
|
1
|
+
import { TreeRuneName } from '../../types/types';
|
2
|
+
export declare function isTreeRuneName(name: any): name is TreeRuneName;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isTreeRuneName = void 0;
|
4
|
-
const TreeRuneIds_1 = require("../../
|
5
|
-
function isTreeRuneName(name) {
|
6
|
-
return name in TreeRuneIds_1.TreeRuneIds;
|
7
|
-
}
|
8
|
-
exports.isTreeRuneName = isTreeRuneName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isTreeRuneName = void 0;
|
4
|
+
const TreeRuneIds_1 = require("../../constants/Runes/TreeRuneIds");
|
5
|
+
function isTreeRuneName(name) {
|
6
|
+
return typeof name == 'string' && name in TreeRuneIds_1.TreeRuneIds;
|
7
|
+
}
|
8
|
+
exports.isTreeRuneName = isTreeRuneName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellKey } from '../../types';
|
2
|
-
export declare function getSpellIdByKey(key: SpellKey): SpellId;
|
1
|
+
import { SpellId, SpellKey } from '../../types/types';
|
2
|
+
export declare function getSpellIdByKey(key: SpellKey): SpellId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getSpellIdByKey = void 0;
|
4
|
-
const SpellIds_1 = require("../../
|
5
|
-
function getSpellIdByKey(key) {
|
6
|
-
return SpellIds_1.SpellIds[key];
|
7
|
-
}
|
8
|
-
exports.getSpellIdByKey = getSpellIdByKey;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellIdByKey = void 0;
|
4
|
+
const SpellIds_1 = require("../../constants/Spells/SpellIds");
|
5
|
+
function getSpellIdByKey(key) {
|
6
|
+
return SpellIds_1.SpellIds[key];
|
7
|
+
}
|
8
|
+
exports.getSpellIdByKey = getSpellIdByKey;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellName } from '../../types';
|
2
|
-
export declare function getSpellIdByName(name: SpellName): SpellId;
|
1
|
+
import { SpellId, SpellName } from '../../types/types';
|
2
|
+
export declare function getSpellIdByName(name: SpellName): SpellId;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getSpellIdByName = void 0;
|
4
|
-
const SpellIdsByName_1 = require("../../
|
5
|
-
function getSpellIdByName(name) {
|
6
|
-
return SpellIdsByName_1.SpellIdsByName[name];
|
7
|
-
}
|
8
|
-
exports.getSpellIdByName = getSpellIdByName;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellIdByName = void 0;
|
4
|
+
const SpellIdsByName_1 = require("../../constants/Spells/SpellIdsByName");
|
5
|
+
function getSpellIdByName(name) {
|
6
|
+
return SpellIdsByName_1.SpellIdsByName[name];
|
7
|
+
}
|
8
|
+
exports.getSpellIdByName = getSpellIdByName;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpellId, SpellKey } from '../../types';
|
2
|
-
export declare function getSpellKeyById(id: SpellId): SpellKey;
|
1
|
+
import { SpellId, SpellKey } from '../../types/types';
|
2
|
+
export declare function getSpellKeyById(id: SpellId): SpellKey;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getSpellKeyById = void 0;
|
4
|
-
const SpellKeys_1 = require("../../
|
5
|
-
function getSpellKeyById(id) {
|
6
|
-
return SpellKeys_1.SpellKeys[id];
|
7
|
-
}
|
8
|
-
exports.getSpellKeyById = getSpellKeyById;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getSpellKeyById = void 0;
|
4
|
+
const SpellKeys_1 = require("../../constants/Spells/SpellKeys");
|
5
|
+
function getSpellKeyById(id) {
|
6
|
+
return SpellKeys_1.SpellKeys[id];
|
7
|
+
}
|
8
|
+
exports.getSpellKeyById = getSpellKeyById;
|