lol-constants 2.22.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/assets/constants/BootsItemNames.js +1 -4
- package/assets/constants/Champion.d.ts +175 -175
- package/assets/constants/Champion.js +1 -4
- package/assets/constants/Item.d.ts +4758 -7569
- package/assets/constants/Item.js +1 -4
- package/assets/constants/LegendaryItemNames.d.ts +1 -1
- package/assets/constants/LegendaryItemNames.js +4 -7
- package/assets/constants/RunesReforged.d.ts +2 -2
- package/assets/constants/RunesReforged.js +1 -4
- package/assets/constants/StatRunes.js +1 -4
- package/assets/constants/StatRunesByRow.js +1 -4
- package/assets/constants/Summoner.d.ts +1 -1
- package/assets/constants/Summoner.js +1 -4
- package/assets/index.js +4 -21
- package/assets/scripts/asset-scripts/champion.d.ts +1 -0
- package/assets/scripts/asset-scripts/champion.js +9 -0
- package/assets/scripts/asset-scripts/generate-all.d.ts +4 -0
- package/assets/scripts/asset-scripts/generate-all.js +4 -0
- package/assets/scripts/asset-scripts/item.d.ts +1 -0
- package/assets/scripts/asset-scripts/item.js +9 -0
- package/assets/scripts/asset-scripts/runes-reforged.d.ts +1 -0
- package/assets/scripts/asset-scripts/runes-reforged.js +9 -0
- package/assets/scripts/asset-scripts/summoner.d.ts +1 -0
- package/assets/scripts/asset-scripts/summoner.js +9 -0
- package/assets/scripts/constants/RuneIdComment.js +1 -4
- package/assets/scripts/generate-categorized-item-keys-num.js +15 -37
- package/assets/scripts/generate-categorized-item-keys.js +12 -34
- package/assets/scripts/generate-categorized-item-names.js +12 -34
- package/assets/scripts/generate-champion-ids-by-name.js +5 -7
- package/assets/scripts/generate-champion-ids.js +5 -7
- package/assets/scripts/generate-champion-keys-num.js +7 -9
- package/assets/scripts/generate-champion-keys.js +5 -7
- package/assets/scripts/generate-champion-names.js +5 -7
- package/assets/scripts/generate-item-keys-num.js +7 -9
- package/assets/scripts/generate-item-keys.js +5 -7
- package/assets/scripts/generate-item-names.js +5 -7
- package/assets/scripts/generate-non-stat-rune-ids-num.js +4 -6
- package/assets/scripts/generate-non-stat-rune-ids.js +6 -8
- package/assets/scripts/generate-non-stat-rune-names.js +4 -6
- package/assets/scripts/generate-rune-ids.js +8 -10
- package/assets/scripts/generate-rune-names.js +6 -8
- package/assets/scripts/generate-rune-picking-relationships.js +4 -6
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +12 -14
- package/assets/scripts/generate-rune-sets-by-rune-names.js +10 -12
- package/assets/scripts/generate-rune-sets.js +7 -9
- package/assets/scripts/generate-spell-ids-by-name.js +5 -7
- package/assets/scripts/generate-spell-ids.js +5 -7
- package/assets/scripts/generate-spell-keys-num.js +7 -9
- package/assets/scripts/generate-spell-keys.js +5 -7
- package/assets/scripts/generate-spell-names.js +5 -7
- package/assets/scripts/generate-stat-rune-ids.js +6 -8
- package/assets/scripts/generate-stat-rune-names.js +4 -6
- package/assets/scripts/helpers/enableEscapedValues.js +1 -5
- package/assets/scripts/helpers/generateIndexFile.js +1 -5
- package/assets/scripts/helpers/getExportStatement.js +6 -10
- package/assets/scripts/helpers/getFmtdComment.js +1 -5
- package/assets/scripts/helpers/validateNumber.js +1 -5
- package/assets/scripts/helpers/writeToTmpFile.js +5 -9
- package/assets/scripts/print-file-names.js +5 -7
- package/core/constants/Abilities.js +6 -11
- package/core/constants/BuildingTypes.js +3 -7
- package/core/constants/Champions/ChampionClasses.d.ts +17 -0
- package/core/constants/Champions/ChampionClasses.js +25 -0
- package/core/constants/Champions/ChampionIds.js +1 -4
- package/core/constants/Champions/ChampionIdsByName.js +1 -4
- package/core/constants/Champions/ChampionKeys.js +1 -4
- package/core/constants/Champions/ChampionKeysNum.js +1 -4
- package/core/constants/Champions/ChampionNames.js +1 -4
- package/core/constants/Continents.js +3 -7
- package/core/constants/DataDragonUrls.d.ts +17 -16
- package/core/constants/DataDragonUrls.js +4 -7
- package/core/constants/DragonTypes.js +3 -7
- package/core/constants/GameModes.js +3 -7
- package/core/constants/GameTypes.js +3 -7
- package/core/constants/Items/BootsItemKeys.js +1 -4
- package/core/constants/Items/BootsItemKeysNum.js +1 -4
- package/core/constants/Items/BootsItemNames.js +1 -4
- package/core/constants/Items/ItemKeys.d.ts +0 -34
- package/core/constants/Items/ItemKeys.js +1 -4
- package/core/constants/Items/ItemKeysNum.d.ts +0 -34
- package/core/constants/Items/ItemKeysNum.js +1 -4
- package/core/constants/Items/ItemNames.d.ts +0 -34
- package/core/constants/Items/ItemNames.js +1 -4
- package/core/constants/Items/ItemTypes.js +3 -7
- package/core/constants/Items/LegendaryItemKeys.d.ts +0 -20
- package/core/constants/Items/LegendaryItemKeys.js +1 -4
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -20
- package/core/constants/Items/LegendaryItemKeysNum.js +1 -4
- package/core/constants/Items/LegendaryItemNames.d.ts +0 -20
- package/core/constants/Items/LegendaryItemNames.js +1 -4
- package/core/constants/KillTypes.js +3 -7
- package/core/constants/LaneTypes.js +3 -7
- package/core/constants/Lanes.js +3 -7
- package/core/constants/LeagueTexts.js +3 -7
- package/core/constants/Levels.js +3 -7
- package/core/constants/Locales.js +3 -7
- package/core/constants/MapIds.js +3 -7
- package/core/constants/MonsterTypes.d.ts +2 -1
- package/core/constants/MonsterTypes.js +5 -8
- package/core/constants/ParticipantIds.js +3 -7
- package/core/constants/PlatformApiUris.js +3 -7
- package/core/constants/PlatformIds.js +6 -11
- package/core/constants/Positions.js +3 -7
- package/core/constants/QueueIds.js +5 -9
- package/core/constants/QueueTypes.js +3 -7
- package/core/constants/RankedRanks.js +3 -7
- package/core/constants/RankedTiers.js +3 -7
- package/core/constants/RegionalApiUris.js +3 -7
- package/core/constants/Regions.js +6 -11
- package/core/constants/RelativeTeams.js +3 -7
- package/core/constants/Roles.js +3 -7
- package/core/constants/Runes/NonStatRuneIds.js +1 -4
- package/core/constants/Runes/NonStatRuneIdsNum.js +1 -4
- package/core/constants/Runes/NonStatRuneNames.js +1 -4
- package/core/constants/Runes/RuneIconFileNames.js +1 -4
- package/core/constants/Runes/RunePickingRelationships.js +1 -4
- package/core/constants/Runes/RuneSets.js +8 -11
- package/core/constants/Runes/RuneSetsByRuneNames.js +8 -11
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +8 -11
- package/core/constants/Runes/RuneTreeIds.js +6 -11
- package/core/constants/Runes/RuneTreeIdsNum.js +6 -11
- package/core/constants/Runes/RuneTreeNames.js +6 -11
- package/core/constants/Runes/RuneTreeTypes.js +3 -7
- package/core/constants/SkillSlots.js +3 -7
- package/core/constants/Skills.js +3 -7
- package/core/constants/Spells/SpellIds.js +1 -4
- package/core/constants/Spells/SpellIdsByName.js +1 -4
- package/core/constants/Spells/SpellKeys.js +1 -4
- package/core/constants/Spells/SpellKeysNum.js +1 -4
- package/core/constants/Spells/SpellNames.js +1 -4
- package/core/constants/TeamIds.js +3 -7
- package/core/constants/TowerTypes.js +3 -7
- package/core/constants/WardTypes.js +3 -7
- package/core/helpers/Champions/getChampionIdByKey.js +3 -7
- package/core/helpers/Champions/getChampionIdByName.js +3 -7
- package/core/helpers/Champions/getChampionKeyById.js +3 -7
- package/core/helpers/Champions/getChampionKeyByName.js +4 -8
- package/core/helpers/Champions/getChampionNameById.js +4 -8
- package/core/helpers/Champions/getChampionNameByKey.js +3 -7
- package/core/helpers/Champions/isChampionId.js +3 -7
- package/core/helpers/Champions/isChampionKey.js +3 -7
- package/core/helpers/Champions/isChampionKeyNum.js +3 -7
- package/core/helpers/Champions/isChampionName.js +3 -7
- package/core/helpers/Items/getItemKeyByName.js +3 -7
- package/core/helpers/Items/getItemNameByKey.js +3 -7
- package/core/helpers/Items/isBootsItemKey.js +3 -7
- package/core/helpers/Items/isBootsItemKeyNum.js +3 -7
- package/core/helpers/Items/isBootsItemName.js +3 -7
- package/core/helpers/Items/isItemKey.js +3 -7
- package/core/helpers/Items/isItemKeyNum.js +3 -7
- package/core/helpers/Items/isItemName.js +3 -7
- package/core/helpers/Items/isLegendaryItemKey.js +3 -7
- package/core/helpers/Items/isLegendaryItemKeyNum.js +3 -7
- package/core/helpers/Items/isLegendaryItemName.js +3 -7
- package/core/helpers/Items/isTier2Boots.d.ts +3 -0
- package/core/helpers/Items/isTier2Boots.js +9 -0
- package/core/helpers/Runes/getNonStatRuneIdByName.js +3 -7
- package/core/helpers/Runes/getNonStatRuneNameById.js +3 -7
- package/core/helpers/Runes/getRuneCategoryName.js +8 -12
- package/core/helpers/Runes/getRuneCdnUrl.js +16 -20
- package/core/helpers/Runes/getRuneIdByName.js +3 -7
- package/core/helpers/Runes/getRuneNameById.js +3 -7
- package/core/helpers/Runes/getStatRuneIdByName.js +3 -7
- package/core/helpers/Runes/getStatRuneNameById.js +3 -7
- package/core/helpers/Runes/isDominationRuneId.js +3 -7
- package/core/helpers/Runes/isDominationRuneIdNum.js +3 -7
- package/core/helpers/Runes/isDominationRuneName.js +3 -7
- package/core/helpers/Runes/isInspirationRuneId.js +3 -7
- package/core/helpers/Runes/isInspirationRuneIdNum.js +3 -7
- package/core/helpers/Runes/isInspirationRuneName.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneId.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneIdNum.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneName.js +3 -7
- package/core/helpers/Runes/isNonStatRuneId.js +3 -7
- package/core/helpers/Runes/isNonStatRuneIdNum.js +3 -7
- package/core/helpers/Runes/isNonStatRuneName.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneId.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneIdNum.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneName.js +3 -7
- package/core/helpers/Runes/isResolveRuneId.js +3 -7
- package/core/helpers/Runes/isResolveRuneIdNum.js +3 -7
- package/core/helpers/Runes/isResolveRuneName.js +3 -7
- package/core/helpers/Runes/isRuneId.js +3 -7
- package/core/helpers/Runes/isRuneIdNum.js +3 -7
- package/core/helpers/Runes/isRuneName.js +3 -7
- package/core/helpers/Runes/isSorceryRuneId.js +3 -7
- package/core/helpers/Runes/isSorceryRuneIdNum.js +3 -7
- package/core/helpers/Runes/isSorceryRuneName.js +3 -7
- package/core/helpers/Runes/isStatRuneId.js +3 -7
- package/core/helpers/Runes/isStatRuneIdNum.js +3 -7
- package/core/helpers/Runes/isStatRuneName.js +3 -7
- package/core/helpers/Spells/getSpellIdByKey.js +3 -7
- package/core/helpers/Spells/getSpellIdByName.js +3 -7
- package/core/helpers/Spells/getSpellKeyById.js +3 -7
- package/core/helpers/Spells/getSpellKeyByName.js +4 -8
- package/core/helpers/Spells/getSpellNameById.js +4 -8
- package/core/helpers/Spells/getSpellNameByKey.js +3 -7
- package/core/helpers/Spells/isSpellId.js +3 -7
- package/core/helpers/Spells/isSpellKey.js +3 -7
- package/core/helpers/Spells/isSpellKeyNum.js +3 -7
- package/core/helpers/Spells/isSpellName.js +3 -7
- package/core/helpers/getPositionImageUrl.js +3 -7
- package/core/helpers/isRiotId.js +7 -11
- package/core/helpers/makeRiotId.js +1 -5
- package/core/helpers/splitRiotId.js +1 -5
- package/core/index.d.ts +4 -6
- package/core/index.js +138 -156
- package/core/types/championJson.js +1 -2
- package/core/types/interfaces.js +1 -2
- package/core/types/types.js +1 -2
- package/package.json +11 -6
- package/assets/constants/OrnnItemNames.d.ts +0 -1
- package/assets/constants/OrnnItemNames.js +0 -33
- package/assets/scripts/generate-all.d.ts +0 -23
- package/assets/scripts/generate-all.js +0 -29
- package/core/constants/Items/OrnnItemKeys.d.ts +0 -23
- package/core/constants/Items/OrnnItemKeys.js +0 -4
- package/core/constants/Items/OrnnItemKeysNum.d.ts +0 -23
- package/core/constants/Items/OrnnItemKeysNum.js +0 -4
- package/core/constants/Items/OrnnItemNames.d.ts +0 -23
- package/core/constants/Items/OrnnItemNames.js +0 -4
- package/core/constants/QueueDescriptions.d.ts +0 -4
- package/core/constants/QueueDescriptions.js +0 -31
- package/core/helpers/Items/isOrnnItemKey.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemKey.js +0 -8
- package/core/helpers/Items/isOrnnItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemKeyNum.js +0 -8
- package/core/helpers/Items/isOrnnItemName.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemName.js +0 -8
package/core/index.js
CHANGED
@@ -1,167 +1,149 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
1
|
// # constants
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
2
|
+
export * from './constants/BuildingTypes';
|
3
|
+
export * from './constants/Continents';
|
4
|
+
export * from './constants/DataDragonUrls';
|
5
|
+
export * from './constants/DragonTypes';
|
6
|
+
export * from './constants/GameModes';
|
7
|
+
export * from './constants/GameTypes';
|
8
|
+
export * from './constants/KillTypes';
|
9
|
+
export * from './constants/Lanes';
|
10
|
+
export * from './constants/LaneTypes';
|
11
|
+
export * from './constants/LeagueTexts';
|
12
|
+
export * from './constants/Levels';
|
13
|
+
export * from './constants/Locales';
|
14
|
+
export * from './constants/MapIds';
|
15
|
+
export * from './constants/MonsterTypes';
|
16
|
+
export * from './constants/ParticipantIds';
|
17
|
+
export * from './constants/PlatformApiUris';
|
18
|
+
export * from './constants/PlatformIds';
|
19
|
+
export * from './constants/Positions';
|
20
|
+
export * from './constants/QueueIds';
|
21
|
+
export * from './constants/QueueTypes';
|
22
|
+
export * from './constants/RankedRanks';
|
23
|
+
export * from './constants/RankedTiers';
|
24
|
+
export * from './constants/RegionalApiUris';
|
25
|
+
export * from './constants/Regions';
|
26
|
+
export * from './constants/RelativeTeams';
|
27
|
+
export * from './constants/Roles';
|
28
|
+
export * from './constants/Skills';
|
29
|
+
export * from './constants/SkillSlots';
|
30
|
+
export * from './constants/TeamIds';
|
31
|
+
export * from './constants/TowerTypes';
|
32
|
+
export * from './constants/WardTypes';
|
49
33
|
// ## Champions
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
34
|
+
export * from './constants/Champions/ChampionClasses';
|
35
|
+
export * from './constants/Champions/ChampionIds';
|
36
|
+
export * from './constants/Champions/ChampionIdsByName';
|
37
|
+
export * from './constants/Champions/ChampionKeys';
|
38
|
+
export * from './constants/Champions/ChampionKeysNum';
|
39
|
+
export * from './constants/Champions/ChampionNames';
|
55
40
|
// ## Items
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
__exportStar(require("./constants/Items/OrnnItemKeys"), exports);
|
67
|
-
__exportStar(require("./constants/Items/OrnnItemKeysNum"), exports);
|
68
|
-
__exportStar(require("./constants/Items/OrnnItemNames"), exports);
|
41
|
+
export * from './constants/Items/BootsItemKeys';
|
42
|
+
export * from './constants/Items/BootsItemKeysNum';
|
43
|
+
export * from './constants/Items/BootsItemNames';
|
44
|
+
export * from './constants/Items/ItemKeys';
|
45
|
+
export * from './constants/Items/ItemKeysNum';
|
46
|
+
export * from './constants/Items/ItemNames';
|
47
|
+
export * from './constants/Items/ItemTypes';
|
48
|
+
export * from './constants/Items/LegendaryItemKeys';
|
49
|
+
export * from './constants/Items/LegendaryItemKeysNum';
|
50
|
+
export * from './constants/Items/LegendaryItemNames';
|
69
51
|
// ## Runes
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
52
|
+
export * from './constants/Runes/NonStatRuneIds';
|
53
|
+
export * from './constants/Runes/NonStatRuneIdsNum';
|
54
|
+
export * from './constants/Runes/NonStatRuneNames';
|
55
|
+
export * from './constants/Runes/RuneIconFileNames';
|
56
|
+
export * from './constants/Runes/RunePickingRelationships';
|
57
|
+
export * from './constants/Runes/RuneSets';
|
58
|
+
export * from './constants/Runes/RuneSetsByRuneNames';
|
59
|
+
export * from './constants/Runes/RuneSetsByRuneNamesNum';
|
60
|
+
export * from './constants/Runes/RuneTreeIds';
|
61
|
+
export * from './constants/Runes/RuneTreeIdsNum';
|
62
|
+
export * from './constants/Runes/RuneTreeNames';
|
63
|
+
export * from './constants/Runes/RuneTreeTypes';
|
82
64
|
// ## Spells
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
65
|
+
export * from './constants/Spells/SpellIds';
|
66
|
+
export * from './constants/Spells/SpellIdsByName';
|
67
|
+
export * from './constants/Spells/SpellKeys';
|
68
|
+
export * from './constants/Spells/SpellKeysNum';
|
69
|
+
export * from './constants/Spells/SpellNames';
|
88
70
|
// # helpers
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
71
|
+
export * from './helpers/getPositionImageUrl';
|
72
|
+
export * from './helpers/isRiotId';
|
73
|
+
export * from './helpers/makeRiotId';
|
74
|
+
export * from './helpers/splitRiotId';
|
93
75
|
// ## Champions
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
76
|
+
export * from './helpers/Champions/getChampionIdByKey';
|
77
|
+
export * from './helpers/Champions/getChampionIdByName';
|
78
|
+
export * from './helpers/Champions/getChampionKeyById';
|
79
|
+
export * from './helpers/Champions/getChampionKeyByName';
|
80
|
+
export * from './helpers/Champions/getChampionNameById';
|
81
|
+
export * from './helpers/Champions/getChampionNameByKey';
|
82
|
+
export * from './helpers/Champions/isChampionId';
|
83
|
+
export * from './helpers/Champions/isChampionKey';
|
84
|
+
export * from './helpers/Champions/isChampionKeyNum';
|
85
|
+
export * from './helpers/Champions/isChampionName';
|
104
86
|
// ## Items
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
87
|
+
export * from './helpers/Items/getItemKeyByName';
|
88
|
+
export * from './helpers/Items/getItemNameByKey';
|
89
|
+
export * from './helpers/Items/isBootsItemKey';
|
90
|
+
export * from './helpers/Items/isBootsItemKeyNum';
|
91
|
+
export * from './helpers/Items/isBootsItemName';
|
92
|
+
export * from './helpers/Items/isItemKey';
|
93
|
+
export * from './helpers/Items/isItemKeyNum';
|
94
|
+
export * from './helpers/Items/isItemName';
|
95
|
+
export * from './helpers/Items/isLegendaryItemKey';
|
96
|
+
export * from './helpers/Items/isLegendaryItemKeyNum';
|
97
|
+
export * from './helpers/Items/isLegendaryItemName';
|
98
|
+
export * from './helpers/Items/isTier2Boots';
|
117
99
|
// ## Runes
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
100
|
+
export * from './helpers/Runes/getNonStatRuneIdByName';
|
101
|
+
export * from './helpers/Runes/getNonStatRuneNameById';
|
102
|
+
export * from './helpers/Runes/getRuneCategoryName';
|
103
|
+
export * from './helpers/Runes/getRuneCdnUrl';
|
104
|
+
export * from './helpers/Runes/getRuneIdByName';
|
105
|
+
export * from './helpers/Runes/getRuneNameById';
|
106
|
+
export * from './helpers/Runes/getStatRuneIdByName';
|
107
|
+
export * from './helpers/Runes/getStatRuneNameById';
|
108
|
+
export * from './helpers/Runes/isDominationRuneId';
|
109
|
+
export * from './helpers/Runes/isDominationRuneIdNum';
|
110
|
+
export * from './helpers/Runes/isDominationRuneName';
|
111
|
+
export * from './helpers/Runes/isInspirationRuneId';
|
112
|
+
export * from './helpers/Runes/isInspirationRuneIdNum';
|
113
|
+
export * from './helpers/Runes/isInspirationRuneName';
|
114
|
+
export * from './helpers/Runes/isKeystoneRuneId';
|
115
|
+
export * from './helpers/Runes/isKeystoneRuneIdNum';
|
116
|
+
export * from './helpers/Runes/isKeystoneRuneName';
|
117
|
+
export * from './helpers/Runes/isNonStatRuneId';
|
118
|
+
export * from './helpers/Runes/isNonStatRuneIdNum';
|
119
|
+
export * from './helpers/Runes/isNonStatRuneName';
|
120
|
+
export * from './helpers/Runes/isPrecisionRuneId';
|
121
|
+
export * from './helpers/Runes/isPrecisionRuneIdNum';
|
122
|
+
export * from './helpers/Runes/isPrecisionRuneName';
|
123
|
+
export * from './helpers/Runes/isResolveRuneId';
|
124
|
+
export * from './helpers/Runes/isResolveRuneIdNum';
|
125
|
+
export * from './helpers/Runes/isResolveRuneName';
|
126
|
+
export * from './helpers/Runes/isRuneId';
|
127
|
+
export * from './helpers/Runes/isRuneIdNum';
|
128
|
+
export * from './helpers/Runes/isRuneName';
|
129
|
+
export * from './helpers/Runes/isSorceryRuneId';
|
130
|
+
export * from './helpers/Runes/isSorceryRuneIdNum';
|
131
|
+
export * from './helpers/Runes/isSorceryRuneName';
|
132
|
+
export * from './helpers/Runes/isStatRuneId';
|
133
|
+
export * from './helpers/Runes/isStatRuneIdNum';
|
134
|
+
export * from './helpers/Runes/isStatRuneName';
|
153
135
|
// ## Spells
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
136
|
+
export * from './helpers/Spells/getSpellIdByKey';
|
137
|
+
export * from './helpers/Spells/getSpellIdByName';
|
138
|
+
export * from './helpers/Spells/getSpellKeyById';
|
139
|
+
export * from './helpers/Spells/getSpellKeyByName';
|
140
|
+
export * from './helpers/Spells/getSpellNameById';
|
141
|
+
export * from './helpers/Spells/getSpellNameByKey';
|
142
|
+
export * from './helpers/Spells/isSpellId';
|
143
|
+
export * from './helpers/Spells/isSpellKey';
|
144
|
+
export * from './helpers/Spells/isSpellKeyNum';
|
145
|
+
export * from './helpers/Spells/isSpellName';
|
164
146
|
// # types
|
165
|
-
|
166
|
-
|
167
|
-
|
147
|
+
export * from './types/championJson';
|
148
|
+
export * from './types/interfaces';
|
149
|
+
export * from './types/types';
|
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/core/types/interfaces.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/core/types/types.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
{
|
2
2
|
"name": "lol-constants",
|
3
|
-
"version": "2.
|
4
|
-
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
|
3
|
+
"version": "2.24.0",
|
4
|
+
"description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells. Provides a plathera of functions to easily convert between ID, Name, and Key for champions and other game constants.",
|
5
5
|
"main": "core/index.js",
|
6
6
|
"types": "core/index.d.ts",
|
7
7
|
"license": "MIT",
|
8
|
+
"type": "module",
|
8
9
|
"files": [
|
9
10
|
"/core",
|
10
11
|
"/assets"
|
11
12
|
],
|
12
13
|
"devDependencies": {
|
13
|
-
"@types/node": "^20.14.
|
14
|
-
"
|
15
|
-
"
|
14
|
+
"@types/node": "^20.14.9",
|
15
|
+
"@types/node-fetch": "^2.6.11",
|
16
|
+
"node-fetch": "2.6.7",
|
17
|
+
"ts-node": "^10.9.2",
|
18
|
+
"typescript": "^5.5.3",
|
19
|
+
"vite": "^5.3.3"
|
16
20
|
},
|
17
21
|
"repository": {
|
18
22
|
"type": "git",
|
@@ -20,7 +24,8 @@
|
|
20
24
|
},
|
21
25
|
"scripts": {
|
22
26
|
"build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
|
23
|
-
"
|
27
|
+
"assets:pull": "node --no-warnings --loader ts-node/esm src/assets/scripts/asset-scripts/generate-all",
|
28
|
+
"generate": "node --no-warnings --loader ts-node/esm src/assets/scripts/generate-all",
|
24
29
|
"print-file-names": "node assets/scripts/print-file-names",
|
25
30
|
"dev": "vite"
|
26
31
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const OrnnItemNames: readonly ["Cry of the Shrieking City", "Ceaseless Hunger", "Caesura", "Draktharr's Shadowcarver", "Deicide", "Dreamshatter", "Equinox", "Edge of Finality", "Eye of Luden", "Eternal Winter", "Frozen Fist", "Flicker", "Infinite Convergence", "Icathia's Curse", "Infinity Force", "Leviathan", "Liandry's Lament", "Primordial Dawn", "Reliquary of the Golden Dawn", "Syzygy", "Shurelya's Requiem", "Starcaster", "Seething Sorrow", "The Unspoken Parasite", "Typhoon", "Upgraded Aeropack", "Vespertide", "Youmuu's Wake"];
|
@@ -1,33 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OrnnItemNames = void 0;
|
4
|
-
exports.OrnnItemNames = [
|
5
|
-
'Cry of the Shrieking City',
|
6
|
-
'Ceaseless Hunger',
|
7
|
-
'Caesura',
|
8
|
-
'Draktharr\'s Shadowcarver',
|
9
|
-
'Deicide',
|
10
|
-
'Dreamshatter',
|
11
|
-
'Equinox',
|
12
|
-
'Edge of Finality',
|
13
|
-
'Eye of Luden',
|
14
|
-
'Eternal Winter',
|
15
|
-
'Frozen Fist',
|
16
|
-
'Flicker',
|
17
|
-
'Infinite Convergence',
|
18
|
-
'Icathia\'s Curse',
|
19
|
-
'Infinity Force',
|
20
|
-
'Leviathan',
|
21
|
-
'Liandry\'s Lament',
|
22
|
-
'Primordial Dawn',
|
23
|
-
'Reliquary of the Golden Dawn',
|
24
|
-
'Syzygy',
|
25
|
-
'Shurelya\'s Requiem',
|
26
|
-
'Starcaster',
|
27
|
-
'Seething Sorrow',
|
28
|
-
'The Unspoken Parasite',
|
29
|
-
'Typhoon',
|
30
|
-
'Upgraded Aeropack',
|
31
|
-
'Vespertide',
|
32
|
-
'Youmuu\'s Wake',
|
33
|
-
];
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import './generate-categorized-item-keys-num';
|
2
|
-
import './generate-categorized-item-keys';
|
3
|
-
import './generate-categorized-item-names';
|
4
|
-
import './generate-champion-ids-by-name';
|
5
|
-
import './generate-champion-ids';
|
6
|
-
import './generate-champion-keys-num';
|
7
|
-
import './generate-champion-keys';
|
8
|
-
import './generate-champion-names';
|
9
|
-
import './generate-item-keys-num';
|
10
|
-
import './generate-item-keys';
|
11
|
-
import './generate-item-names';
|
12
|
-
import './generate-non-stat-rune-ids-num';
|
13
|
-
import './generate-non-stat-rune-ids';
|
14
|
-
import './generate-non-stat-rune-names';
|
15
|
-
import './generate-rune-picking-relationships';
|
16
|
-
import './generate-rune-sets-by-rune-names-num';
|
17
|
-
import './generate-rune-sets-by-rune-names';
|
18
|
-
import './generate-rune-sets';
|
19
|
-
import './generate-spell-ids-by-name';
|
20
|
-
import './generate-spell-ids';
|
21
|
-
import './generate-spell-keys-num';
|
22
|
-
import './generate-spell-keys';
|
23
|
-
import './generate-spell-names';
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
require("./generate-categorized-item-keys-num");
|
4
|
-
require("./generate-categorized-item-keys");
|
5
|
-
require("./generate-categorized-item-names");
|
6
|
-
require("./generate-champion-ids-by-name");
|
7
|
-
require("./generate-champion-ids");
|
8
|
-
require("./generate-champion-keys-num");
|
9
|
-
require("./generate-champion-keys");
|
10
|
-
require("./generate-champion-names");
|
11
|
-
require("./generate-item-keys-num");
|
12
|
-
require("./generate-item-keys");
|
13
|
-
require("./generate-item-names");
|
14
|
-
require("./generate-non-stat-rune-ids-num");
|
15
|
-
require("./generate-non-stat-rune-ids");
|
16
|
-
require("./generate-non-stat-rune-names");
|
17
|
-
// import './generate-rune-ids'
|
18
|
-
// import './generate-rune-names'
|
19
|
-
require("./generate-rune-picking-relationships");
|
20
|
-
require("./generate-rune-sets-by-rune-names-num");
|
21
|
-
require("./generate-rune-sets-by-rune-names");
|
22
|
-
require("./generate-rune-sets");
|
23
|
-
require("./generate-spell-ids-by-name");
|
24
|
-
require("./generate-spell-ids");
|
25
|
-
require("./generate-spell-keys-num");
|
26
|
-
require("./generate-spell-keys");
|
27
|
-
require("./generate-spell-names");
|
28
|
-
// import './generate-stat-rune-ids'
|
29
|
-
// import './generate-stat-rune-names'
|
@@ -1,23 +0,0 @@
|
|
1
|
-
export declare const OrnnItemKeys: {
|
2
|
-
readonly "Cry of the Shrieking City": "7033";
|
3
|
-
readonly Dreamshatter: "7016";
|
4
|
-
readonly "Edge of Finality": "7031";
|
5
|
-
readonly "Frozen Fist": "7005";
|
6
|
-
readonly Flicker: "7032";
|
7
|
-
readonly "Infinite Convergence": "7028";
|
8
|
-
readonly "Icathia's Curse": "7009";
|
9
|
-
readonly "Infinity Force": "7018";
|
10
|
-
readonly Leviathan: "7025";
|
11
|
-
readonly "Liandry's Lament": "7012";
|
12
|
-
readonly "Reliquary of the Golden Dawn": "7019";
|
13
|
-
readonly Syzygy: "7001";
|
14
|
-
readonly "Shurelya's Requiem": "7020";
|
15
|
-
readonly Starcaster: "7021";
|
16
|
-
readonly "Seething Sorrow": "7030";
|
17
|
-
readonly "The Unspoken Parasite": "7026";
|
18
|
-
readonly Typhoon: "7006";
|
19
|
-
readonly "Upgraded Aeropack": "7011";
|
20
|
-
readonly Vespertide: "7010";
|
21
|
-
readonly "Youmuu's Wake": "7029";
|
22
|
-
};
|
23
|
-
export type OrnnItemKey = typeof OrnnItemKeys[keyof typeof OrnnItemKeys];
|
@@ -1,4 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OrnnItemKeys = void 0;
|
4
|
-
exports.OrnnItemKeys = { "Cry of the Shrieking City": "7033", "Dreamshatter": "7016", "Edge of Finality": "7031", "Frozen Fist": "7005", "Flicker": "7032", "Infinite Convergence": "7028", "Icathia's Curse": "7009", "Infinity Force": "7018", "Leviathan": "7025", "Liandry's Lament": "7012", "Reliquary of the Golden Dawn": "7019", "Syzygy": "7001", "Shurelya's Requiem": "7020", "Starcaster": "7021", "Seething Sorrow": "7030", "The Unspoken Parasite": "7026", "Typhoon": "7006", "Upgraded Aeropack": "7011", "Vespertide": "7010", "Youmuu's Wake": "7029" };
|
@@ -1,23 +0,0 @@
|
|
1
|
-
export declare const OrnnItemKeysNum: {
|
2
|
-
readonly "Cry of the Shrieking City": 7033;
|
3
|
-
readonly Dreamshatter: 7016;
|
4
|
-
readonly "Edge of Finality": 7031;
|
5
|
-
readonly "Frozen Fist": 7005;
|
6
|
-
readonly Flicker: 7032;
|
7
|
-
readonly "Infinite Convergence": 7028;
|
8
|
-
readonly "Icathia's Curse": 7009;
|
9
|
-
readonly "Infinity Force": 7018;
|
10
|
-
readonly Leviathan: 7025;
|
11
|
-
readonly "Liandry's Lament": 7012;
|
12
|
-
readonly "Reliquary of the Golden Dawn": 7019;
|
13
|
-
readonly Syzygy: 7001;
|
14
|
-
readonly "Shurelya's Requiem": 7020;
|
15
|
-
readonly Starcaster: 7021;
|
16
|
-
readonly "Seething Sorrow": 7030;
|
17
|
-
readonly "The Unspoken Parasite": 7026;
|
18
|
-
readonly Typhoon: 7006;
|
19
|
-
readonly "Upgraded Aeropack": 7011;
|
20
|
-
readonly Vespertide: 7010;
|
21
|
-
readonly "Youmuu's Wake": 7029;
|
22
|
-
};
|
23
|
-
export type OrnnItemKeyNum = typeof OrnnItemKeysNum[keyof typeof OrnnItemKeysNum];
|
@@ -1,4 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OrnnItemKeysNum = void 0;
|
4
|
-
exports.OrnnItemKeysNum = { "Cry of the Shrieking City": 7033, "Dreamshatter": 7016, "Edge of Finality": 7031, "Frozen Fist": 7005, "Flicker": 7032, "Infinite Convergence": 7028, "Icathia's Curse": 7009, "Infinity Force": 7018, "Leviathan": 7025, "Liandry's Lament": 7012, "Reliquary of the Golden Dawn": 7019, "Syzygy": 7001, "Shurelya's Requiem": 7020, "Starcaster": 7021, "Seething Sorrow": 7030, "The Unspoken Parasite": 7026, "Typhoon": 7006, "Upgraded Aeropack": 7011, "Vespertide": 7010, "Youmuu's Wake": 7029 };
|
@@ -1,23 +0,0 @@
|
|
1
|
-
export declare const OrnnItemNames: {
|
2
|
-
readonly "7001": "Syzygy";
|
3
|
-
readonly "7005": "Frozen Fist";
|
4
|
-
readonly "7006": "Typhoon";
|
5
|
-
readonly "7009": "Icathia's Curse";
|
6
|
-
readonly "7010": "Vespertide";
|
7
|
-
readonly "7011": "Upgraded Aeropack";
|
8
|
-
readonly "7012": "Liandry's Lament";
|
9
|
-
readonly "7016": "Dreamshatter";
|
10
|
-
readonly "7018": "Infinity Force";
|
11
|
-
readonly "7019": "Reliquary of the Golden Dawn";
|
12
|
-
readonly "7020": "Shurelya's Requiem";
|
13
|
-
readonly "7021": "Starcaster";
|
14
|
-
readonly "7025": "Leviathan";
|
15
|
-
readonly "7026": "The Unspoken Parasite";
|
16
|
-
readonly "7028": "Infinite Convergence";
|
17
|
-
readonly "7029": "Youmuu's Wake";
|
18
|
-
readonly "7030": "Seething Sorrow";
|
19
|
-
readonly "7031": "Edge of Finality";
|
20
|
-
readonly "7032": "Flicker";
|
21
|
-
readonly "7033": "Cry of the Shrieking City";
|
22
|
-
};
|
23
|
-
export type OrnnItemName = typeof OrnnItemNames[keyof typeof OrnnItemNames];
|
@@ -1,4 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OrnnItemNames = void 0;
|
4
|
-
exports.OrnnItemNames = { "7001": "Syzygy", "7005": "Frozen Fist", "7006": "Typhoon", "7009": "Icathia's Curse", "7010": "Vespertide", "7011": "Upgraded Aeropack", "7012": "Liandry's Lament", "7016": "Dreamshatter", "7018": "Infinity Force", "7019": "Reliquary of the Golden Dawn", "7020": "Shurelya's Requiem", "7021": "Starcaster", "7025": "Leviathan", "7026": "The Unspoken Parasite", "7028": "Infinite Convergence", "7029": "Youmuu's Wake", "7030": "Seething Sorrow", "7031": "Edge of Finality", "7032": "Flicker", "7033": "Cry of the Shrieking City" };
|
@@ -1,31 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.QueueDescriptions = void 0;
|
4
|
-
exports.QueueDescriptions = {
|
5
|
-
0: 'Custom',
|
6
|
-
400: '5v5 Draft Pick',
|
7
|
-
420: '5v5 Ranked Solo',
|
8
|
-
430: '5v5 Blind Pick',
|
9
|
-
440: '5v5 Ranked Flex',
|
10
|
-
450: '5v5 ARAM',
|
11
|
-
700: 'Clash',
|
12
|
-
720: 'ARAM Clash',
|
13
|
-
830: 'Co-op vs. AI Intro Bots',
|
14
|
-
840: 'Co-op vs. AI Beginner Bots',
|
15
|
-
850: 'Co-op vs. AI Intermediate Bots',
|
16
|
-
900: 'ARURF',
|
17
|
-
920: 'Legend of the Poro King',
|
18
|
-
1010: 'Snow ARURF',
|
19
|
-
1020: 'One for All',
|
20
|
-
1090: 'Teamfight Tactics',
|
21
|
-
1100: 'Ranked Teamfight Tactics',
|
22
|
-
1110: 'Teamfight Tactics Tutorial',
|
23
|
-
1111: 'Teamfight Tactics test',
|
24
|
-
1300: 'Nexus Blitz',
|
25
|
-
1400: 'Ultimate Spellbook',
|
26
|
-
1700: 'Arena 2v2v2v2',
|
27
|
-
1900: 'URF',
|
28
|
-
2000: 'Tutorial 1',
|
29
|
-
2010: 'Tutorial 2',
|
30
|
-
2020: 'Tutorial 3',
|
31
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isOrnnItemKey = void 0;
|
4
|
-
const OrnnItemNames_1 = require("../../constants/Items/OrnnItemNames");
|
5
|
-
function isOrnnItemKey(value) {
|
6
|
-
return value in OrnnItemNames_1.OrnnItemNames;
|
7
|
-
}
|
8
|
-
exports.isOrnnItemKey = isOrnnItemKey;
|