lol-constants 2.23.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/constants/BootsItemNames.js +1 -4
- package/assets/constants/Champion.js +1 -4
- package/assets/constants/Item.js +1 -4
- package/assets/constants/LegendaryItemNames.d.ts +1 -1
- package/assets/constants/LegendaryItemNames.js +4 -5
- 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.js +1 -4
- package/assets/index.js +4 -20
- package/assets/scripts/asset-scripts/champion.js +5 -7
- package/assets/scripts/asset-scripts/generate-all.js +4 -6
- package/assets/scripts/asset-scripts/item.js +5 -7
- package/assets/scripts/asset-scripts/runes-reforged.js +5 -7
- package/assets/scripts/asset-scripts/summoner.js +5 -7
- package/assets/scripts/constants/RuneIdComment.js +1 -4
- package/assets/scripts/generate-categorized-item-keys-num.js +15 -17
- package/assets/scripts/generate-categorized-item-keys.js +12 -14
- package/assets/scripts/generate-categorized-item-names.js +12 -14
- 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 +16 -16
- package/core/constants/DataDragonUrls.js +3 -6
- 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.js +1 -4
- package/core/constants/Items/ItemKeysNum.js +1 -4
- package/core/constants/Items/ItemNames.js +1 -4
- package/core/constants/Items/ItemTypes.js +3 -7
- package/core/constants/Items/LegendaryItemKeys.js +1 -4
- package/core/constants/Items/LegendaryItemKeysNum.js +1 -4
- 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 -0
- package/core/index.js +138 -150
- package/core/types/championJson.js +1 -2
- package/core/types/interfaces.js +1 -2
- package/core/types/types.js +1 -2
- package/package.json +9 -7
- 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/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
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const SpellNames_1 = require("../../constants/Spells/SpellNames");
|
5
|
-
function isSpellKeyNum(key) {
|
6
|
-
return key in SpellNames_1.SpellNames;
|
1
|
+
import { SpellNames } from '../../constants/Spells/SpellNames';
|
2
|
+
export function isSpellKeyNum(key) {
|
3
|
+
return key in SpellNames;
|
7
4
|
}
|
8
|
-
exports.isSpellKeyNum = isSpellKeyNum;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const SpellIdsByName_1 = require("../../constants/Spells/SpellIdsByName");
|
5
|
-
function isSpellName(name) {
|
6
|
-
return typeof name == 'string' && name in SpellIdsByName_1.SpellIdsByName;
|
1
|
+
import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
|
2
|
+
export function isSpellName(name) {
|
3
|
+
return typeof name == 'string' && name in SpellIdsByName;
|
7
4
|
}
|
8
|
-
exports.isSpellName = isSpellName;
|
@@ -1,11 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const DataDragonUrls_1 = require("../constants/DataDragonUrls");
|
5
|
-
function getPositionImageUrl(position) {
|
6
|
-
return `${DataDragonUrls_1.DataDragonUrls.POSITION_ICON_BASE}/${PositionUrlPaths[position]}.svg`;
|
1
|
+
import { DataDragonUrls } from '../constants/DataDragonUrls';
|
2
|
+
export function getPositionImageUrl(position) {
|
3
|
+
return `${DataDragonUrls.POSITION_ICON_BASE}/${PositionUrlPaths[position]}.svg`;
|
7
4
|
}
|
8
|
-
exports.getPositionImageUrl = getPositionImageUrl;
|
9
5
|
const PositionUrlPaths = {
|
10
6
|
TOP: 'position-top',
|
11
7
|
JUNGLE: 'position-jungle',
|
package/core/helpers/isRiotId.js
CHANGED
@@ -1,19 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.maxRiotIdTagCharCount = exports.maxRiotIdNameCharCount = exports.isRiotId = void 0;
|
4
|
-
const splitRiotId_1 = require("./splitRiotId");
|
5
|
-
function isRiotId(riotId,
|
1
|
+
import { splitRiotId } from './splitRiotId';
|
2
|
+
export function isRiotId(riotId,
|
6
3
|
/** @default '#' */
|
7
4
|
splitChar = '#') {
|
8
5
|
if (typeof riotId != 'string')
|
9
6
|
return false;
|
10
|
-
const id =
|
11
|
-
if (id.name == '' || id.name.length >
|
7
|
+
const id = splitRiotId(riotId, splitChar);
|
8
|
+
if (id.name == '' || id.name.length > maxRiotIdNameCharCount)
|
12
9
|
return false;
|
13
|
-
if (id.tag == '' || id.tag.length >
|
10
|
+
if (id.tag == '' || id.tag.length > maxRiotIdTagCharCount)
|
14
11
|
return false;
|
15
12
|
return true;
|
16
13
|
}
|
17
|
-
|
18
|
-
|
19
|
-
exports.maxRiotIdTagCharCount = 5;
|
14
|
+
export const maxRiotIdNameCharCount = 16;
|
15
|
+
export const maxRiotIdTagCharCount = 5;
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.makeRiotId = void 0;
|
4
|
-
function makeRiotId(riotId,
|
1
|
+
export function makeRiotId(riotId,
|
5
2
|
/** @default '#' */
|
6
3
|
splitChar = '#') {
|
7
4
|
return riotId.name + splitChar + riotId.tag;
|
8
5
|
}
|
9
|
-
exports.makeRiotId = makeRiotId;
|
@@ -1,10 +1,7 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.splitRiotId = void 0;
|
4
1
|
/**
|
5
2
|
* `name#tag` => `{name, tag}`
|
6
3
|
*/
|
7
|
-
function splitRiotId(riotId,
|
4
|
+
export function splitRiotId(riotId,
|
8
5
|
/** @default '#' */
|
9
6
|
splitChar = '#') {
|
10
7
|
const split = riotId.split(splitChar);
|
@@ -17,4 +14,3 @@ splitChar = '#') {
|
|
17
14
|
tag,
|
18
15
|
};
|
19
16
|
}
|
20
|
-
exports.splitRiotId = splitRiotId;
|
package/core/index.d.ts
CHANGED
@@ -29,6 +29,7 @@ export * from './constants/SkillSlots';
|
|
29
29
|
export * from './constants/TeamIds';
|
30
30
|
export * from './constants/TowerTypes';
|
31
31
|
export * from './constants/WardTypes';
|
32
|
+
export * from './constants/Champions/ChampionClasses';
|
32
33
|
export * from './constants/Champions/ChampionIds';
|
33
34
|
export * from './constants/Champions/ChampionIdsByName';
|
34
35
|
export * from './constants/Champions/ChampionKeys';
|
@@ -78,12 +79,15 @@ export * from './helpers/Champions/isChampionName';
|
|
78
79
|
export * from './helpers/Items/getItemKeyByName';
|
79
80
|
export * from './helpers/Items/getItemNameByKey';
|
80
81
|
export * from './helpers/Items/isBootsItemKey';
|
82
|
+
export * from './helpers/Items/isBootsItemKeyNum';
|
81
83
|
export * from './helpers/Items/isBootsItemName';
|
82
84
|
export * from './helpers/Items/isItemKey';
|
83
85
|
export * from './helpers/Items/isItemKeyNum';
|
84
86
|
export * from './helpers/Items/isItemName';
|
85
87
|
export * from './helpers/Items/isLegendaryItemKey';
|
88
|
+
export * from './helpers/Items/isLegendaryItemKeyNum';
|
86
89
|
export * from './helpers/Items/isLegendaryItemName';
|
90
|
+
export * from './helpers/Items/isTier2Boots';
|
87
91
|
export * from './helpers/Runes/getNonStatRuneIdByName';
|
88
92
|
export * from './helpers/Runes/getNonStatRuneNameById';
|
89
93
|
export * from './helpers/Runes/getRuneCategoryName';
|
package/core/index.js
CHANGED
@@ -1,161 +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
|
-
|
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';
|
66
51
|
// ## Runes
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
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';
|
79
64
|
// ## Spells
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
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';
|
85
70
|
// # helpers
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
71
|
+
export * from './helpers/getPositionImageUrl';
|
72
|
+
export * from './helpers/isRiotId';
|
73
|
+
export * from './helpers/makeRiotId';
|
74
|
+
export * from './helpers/splitRiotId';
|
90
75
|
// ## Champions
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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';
|
101
86
|
// ## Items
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
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';
|
111
99
|
// ## Runes
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
-
|
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';
|
147
135
|
// ## Spells
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
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';
|
158
146
|
// # types
|
159
|
-
|
160
|
-
|
161
|
-
|
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,20 +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
|
+
"@types/node": "^20.14.9",
|
14
15
|
"@types/node-fetch": "^2.6.11",
|
15
16
|
"node-fetch": "2.6.7",
|
16
|
-
"
|
17
|
-
"
|
17
|
+
"ts-node": "^10.9.2",
|
18
|
+
"typescript": "^5.5.3",
|
19
|
+
"vite": "^5.3.3"
|
18
20
|
},
|
19
21
|
"repository": {
|
20
22
|
"type": "git",
|
@@ -22,8 +24,8 @@
|
|
22
24
|
},
|
23
25
|
"scripts": {
|
24
26
|
"build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
|
25
|
-
"assets:pull": "
|
26
|
-
"generate": "
|
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",
|
27
29
|
"print-file-names": "node assets/scripts/print-file-names",
|
28
30
|
"dev": "vite"
|
29
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" };
|