lol-constants 2.23.0 → 2.24.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/assets/constants/BootsItemNames.js +1 -4
  2. package/assets/constants/Champion.js +1 -4
  3. package/assets/constants/Item.js +1 -4
  4. package/assets/constants/LegendaryItemNames.d.ts +1 -1
  5. package/assets/constants/LegendaryItemNames.js +4 -6
  6. package/assets/constants/RunesReforged.js +1 -4
  7. package/assets/constants/StatRunes.js +1 -4
  8. package/assets/constants/StatRunesByRow.js +1 -4
  9. package/assets/constants/Summoner.js +1 -4
  10. package/assets/index.js +4 -20
  11. package/assets/scripts/asset-scripts/champion.js +5 -7
  12. package/assets/scripts/asset-scripts/generate-all.js +4 -6
  13. package/assets/scripts/asset-scripts/item.js +5 -7
  14. package/assets/scripts/asset-scripts/runes-reforged.js +5 -7
  15. package/assets/scripts/asset-scripts/summoner.js +5 -7
  16. package/assets/scripts/constants/RuneIdComment.js +1 -4
  17. package/assets/scripts/generate-all.js +23 -25
  18. package/assets/scripts/generate-categorized-item-keys-num.js +15 -17
  19. package/assets/scripts/generate-categorized-item-keys.js +12 -14
  20. package/assets/scripts/generate-categorized-item-names.js +12 -14
  21. package/assets/scripts/generate-champion-ids-by-name.js +5 -7
  22. package/assets/scripts/generate-champion-ids.js +5 -7
  23. package/assets/scripts/generate-champion-keys-num.js +7 -9
  24. package/assets/scripts/generate-champion-keys.js +5 -7
  25. package/assets/scripts/generate-champion-names.js +5 -7
  26. package/assets/scripts/generate-item-keys-num.js +7 -9
  27. package/assets/scripts/generate-item-keys.js +5 -7
  28. package/assets/scripts/generate-item-names.js +5 -7
  29. package/assets/scripts/generate-non-stat-rune-ids-num.js +4 -6
  30. package/assets/scripts/generate-non-stat-rune-ids.js +6 -8
  31. package/assets/scripts/generate-non-stat-rune-names.js +4 -6
  32. package/assets/scripts/generate-rune-ids.js +8 -10
  33. package/assets/scripts/generate-rune-names.js +6 -8
  34. package/assets/scripts/generate-rune-picking-relationships.js +4 -6
  35. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +12 -14
  36. package/assets/scripts/generate-rune-sets-by-rune-names.js +10 -12
  37. package/assets/scripts/generate-rune-sets.js +7 -9
  38. package/assets/scripts/generate-spell-ids-by-name.js +5 -7
  39. package/assets/scripts/generate-spell-ids.js +5 -7
  40. package/assets/scripts/generate-spell-keys-num.js +7 -9
  41. package/assets/scripts/generate-spell-keys.js +5 -7
  42. package/assets/scripts/generate-spell-names.js +5 -7
  43. package/assets/scripts/generate-stat-rune-ids.js +6 -8
  44. package/assets/scripts/generate-stat-rune-names.js +4 -6
  45. package/assets/scripts/helpers/enableEscapedValues.js +1 -5
  46. package/assets/scripts/helpers/generateIndexFile.js +1 -5
  47. package/assets/scripts/helpers/getExportStatement.js +6 -10
  48. package/assets/scripts/helpers/getFmtdComment.js +1 -5
  49. package/assets/scripts/helpers/validateNumber.js +1 -5
  50. package/assets/scripts/helpers/writeToTmpFile.js +5 -9
  51. package/assets/scripts/print-file-names.js +5 -7
  52. package/core/constants/Abilities.js +6 -11
  53. package/core/constants/BuildingTypes.js +3 -7
  54. package/core/constants/Champions/ChampionClasses.d.ts +17 -0
  55. package/core/constants/Champions/ChampionClasses.js +25 -0
  56. package/core/constants/Champions/ChampionIds.js +1 -4
  57. package/core/constants/Champions/ChampionIdsByName.js +1 -4
  58. package/core/constants/Champions/ChampionKeys.js +1 -4
  59. package/core/constants/Champions/ChampionKeysNum.js +1 -4
  60. package/core/constants/Champions/ChampionNames.js +1 -4
  61. package/core/constants/Continents.js +3 -7
  62. package/core/constants/DataDragonUrls.d.ts +16 -16
  63. package/core/constants/DataDragonUrls.js +3 -6
  64. package/core/constants/DragonTypes.js +3 -7
  65. package/core/constants/GameModes.js +3 -7
  66. package/core/constants/GameTypes.js +3 -7
  67. package/core/constants/Items/BootsItemKeys.js +1 -4
  68. package/core/constants/Items/BootsItemKeysNum.js +1 -4
  69. package/core/constants/Items/BootsItemNames.js +1 -4
  70. package/core/constants/Items/ItemKeys.js +1 -4
  71. package/core/constants/Items/ItemKeysNum.js +1 -4
  72. package/core/constants/Items/ItemNames.js +1 -4
  73. package/core/constants/Items/ItemTypes.js +3 -7
  74. package/core/constants/Items/LegendaryItemKeys.d.ts +1 -1
  75. package/core/constants/Items/LegendaryItemKeys.js +1 -4
  76. package/core/constants/Items/LegendaryItemKeysNum.d.ts +1 -1
  77. package/core/constants/Items/LegendaryItemKeysNum.js +1 -4
  78. package/core/constants/Items/LegendaryItemNames.d.ts +1 -1
  79. package/core/constants/Items/LegendaryItemNames.js +1 -4
  80. package/core/constants/KillTypes.js +3 -7
  81. package/core/constants/LaneTypes.js +3 -7
  82. package/core/constants/Lanes.js +3 -7
  83. package/core/constants/LeagueTexts.js +3 -7
  84. package/core/constants/Levels.js +3 -7
  85. package/core/constants/Locales.js +3 -7
  86. package/core/constants/MapIds.js +3 -7
  87. package/core/constants/MonsterTypes.d.ts +2 -1
  88. package/core/constants/MonsterTypes.js +5 -8
  89. package/core/constants/ParticipantIds.js +3 -7
  90. package/core/constants/PlatformApiUris.js +3 -7
  91. package/core/constants/PlatformIds.js +6 -11
  92. package/core/constants/Positions.js +3 -7
  93. package/core/constants/QueueIds.js +5 -9
  94. package/core/constants/QueueTypes.js +3 -7
  95. package/core/constants/RankedRanks.js +3 -7
  96. package/core/constants/RankedTiers.js +3 -7
  97. package/core/constants/RegionalApiUris.js +3 -7
  98. package/core/constants/Regions.js +6 -11
  99. package/core/constants/RelativeTeams.js +3 -7
  100. package/core/constants/Roles.js +3 -7
  101. package/core/constants/Runes/NonStatRuneIds.js +1 -4
  102. package/core/constants/Runes/NonStatRuneIdsNum.js +1 -4
  103. package/core/constants/Runes/NonStatRuneNames.js +1 -4
  104. package/core/constants/Runes/RuneIconFileNames.js +1 -4
  105. package/core/constants/Runes/RunePickingRelationships.js +1 -4
  106. package/core/constants/Runes/RuneSets.js +8 -11
  107. package/core/constants/Runes/RuneSetsByRuneNames.js +8 -11
  108. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +8 -11
  109. package/core/constants/Runes/RuneTreeIds.js +6 -11
  110. package/core/constants/Runes/RuneTreeIdsNum.js +6 -11
  111. package/core/constants/Runes/RuneTreeNames.js +6 -11
  112. package/core/constants/Runes/RuneTreeTypes.js +3 -7
  113. package/core/constants/SkillSlots.js +3 -7
  114. package/core/constants/Skills.js +3 -7
  115. package/core/constants/Spells/SpellIds.js +1 -4
  116. package/core/constants/Spells/SpellIdsByName.js +1 -4
  117. package/core/constants/Spells/SpellKeys.js +1 -4
  118. package/core/constants/Spells/SpellKeysNum.js +1 -4
  119. package/core/constants/Spells/SpellNames.js +1 -4
  120. package/core/constants/TeamIds.js +3 -7
  121. package/core/constants/TowerTypes.js +3 -7
  122. package/core/constants/WardTypes.js +3 -7
  123. package/core/helpers/Champions/getChampionIdByKey.js +3 -7
  124. package/core/helpers/Champions/getChampionIdByName.js +3 -7
  125. package/core/helpers/Champions/getChampionKeyById.js +3 -7
  126. package/core/helpers/Champions/getChampionKeyByName.js +4 -8
  127. package/core/helpers/Champions/getChampionNameById.js +4 -8
  128. package/core/helpers/Champions/getChampionNameByKey.js +3 -7
  129. package/core/helpers/Champions/isChampionId.js +3 -7
  130. package/core/helpers/Champions/isChampionKey.js +3 -7
  131. package/core/helpers/Champions/isChampionKeyNum.js +3 -7
  132. package/core/helpers/Champions/isChampionName.js +3 -7
  133. package/core/helpers/Items/getItemKeyByName.js +3 -7
  134. package/core/helpers/Items/getItemKeyNumByName.d.ts +3 -0
  135. package/core/helpers/Items/getItemKeyNumByName.js +4 -0
  136. package/core/helpers/Items/getItemNameByKey.js +3 -7
  137. package/core/helpers/Items/isBootsItemKey.js +3 -7
  138. package/core/helpers/Items/isBootsItemKeyNum.js +3 -7
  139. package/core/helpers/Items/isBootsItemName.js +3 -7
  140. package/core/helpers/Items/isItemKey.js +3 -7
  141. package/core/helpers/Items/isItemKeyNum.js +3 -7
  142. package/core/helpers/Items/isItemName.js +3 -7
  143. package/core/helpers/Items/isLegendaryItemKey.js +3 -7
  144. package/core/helpers/Items/isLegendaryItemKeyNum.js +3 -7
  145. package/core/helpers/Items/isLegendaryItemName.js +3 -7
  146. package/core/helpers/Items/isTier2Boots.d.ts +3 -0
  147. package/core/helpers/Items/isTier2Boots.js +9 -0
  148. package/core/helpers/Runes/getNonStatRuneIdByName.js +3 -7
  149. package/core/helpers/Runes/getNonStatRuneNameById.js +3 -7
  150. package/core/helpers/Runes/getRuneCategoryName.js +8 -12
  151. package/core/helpers/Runes/getRuneCdnUrl.js +16 -20
  152. package/core/helpers/Runes/getRuneIdByName.js +3 -7
  153. package/core/helpers/Runes/getRuneNameById.js +3 -7
  154. package/core/helpers/Runes/getStatRuneIdByName.js +3 -7
  155. package/core/helpers/Runes/getStatRuneNameById.js +3 -7
  156. package/core/helpers/Runes/isDominationRuneId.js +3 -7
  157. package/core/helpers/Runes/isDominationRuneIdNum.js +3 -7
  158. package/core/helpers/Runes/isDominationRuneName.js +3 -7
  159. package/core/helpers/Runes/isInspirationRuneId.js +3 -7
  160. package/core/helpers/Runes/isInspirationRuneIdNum.js +3 -7
  161. package/core/helpers/Runes/isInspirationRuneName.js +3 -7
  162. package/core/helpers/Runes/isKeystoneRuneId.js +3 -7
  163. package/core/helpers/Runes/isKeystoneRuneIdNum.js +3 -7
  164. package/core/helpers/Runes/isKeystoneRuneName.js +3 -7
  165. package/core/helpers/Runes/isNonStatRuneId.js +3 -7
  166. package/core/helpers/Runes/isNonStatRuneIdNum.js +3 -7
  167. package/core/helpers/Runes/isNonStatRuneName.js +3 -7
  168. package/core/helpers/Runes/isPrecisionRuneId.js +3 -7
  169. package/core/helpers/Runes/isPrecisionRuneIdNum.js +3 -7
  170. package/core/helpers/Runes/isPrecisionRuneName.js +3 -7
  171. package/core/helpers/Runes/isResolveRuneId.js +3 -7
  172. package/core/helpers/Runes/isResolveRuneIdNum.js +3 -7
  173. package/core/helpers/Runes/isResolveRuneName.js +3 -7
  174. package/core/helpers/Runes/isRuneId.js +3 -7
  175. package/core/helpers/Runes/isRuneIdNum.js +3 -7
  176. package/core/helpers/Runes/isRuneName.js +3 -7
  177. package/core/helpers/Runes/isSorceryRuneId.js +3 -7
  178. package/core/helpers/Runes/isSorceryRuneIdNum.js +3 -7
  179. package/core/helpers/Runes/isSorceryRuneName.js +3 -7
  180. package/core/helpers/Runes/isStatRuneId.js +3 -7
  181. package/core/helpers/Runes/isStatRuneIdNum.js +3 -7
  182. package/core/helpers/Runes/isStatRuneName.js +3 -7
  183. package/core/helpers/Spells/getSpellIdByKey.js +3 -7
  184. package/core/helpers/Spells/getSpellIdByName.js +3 -7
  185. package/core/helpers/Spells/getSpellKeyById.js +3 -7
  186. package/core/helpers/Spells/getSpellKeyByName.js +4 -8
  187. package/core/helpers/Spells/getSpellNameById.js +4 -8
  188. package/core/helpers/Spells/getSpellNameByKey.js +3 -7
  189. package/core/helpers/Spells/isSpellId.js +3 -7
  190. package/core/helpers/Spells/isSpellKey.js +3 -7
  191. package/core/helpers/Spells/isSpellKeyNum.js +3 -7
  192. package/core/helpers/Spells/isSpellName.js +3 -7
  193. package/core/helpers/getPositionImageUrl.js +3 -7
  194. package/core/helpers/isRiotId.js +7 -11
  195. package/core/helpers/makeRiotId.js +1 -5
  196. package/core/helpers/splitRiotId.js +1 -5
  197. package/core/index.d.ts +4 -0
  198. package/core/index.js +138 -150
  199. package/core/types/championJson.js +1 -2
  200. package/core/types/interfaces.js +1 -2
  201. package/core/types/types.js +1 -2
  202. package/package.json +9 -7
  203. package/assets/constants/OrnnItemNames.d.ts +0 -1
  204. package/assets/constants/OrnnItemNames.js +0 -33
  205. package/core/constants/Items/OrnnItemKeys.d.ts +0 -23
  206. package/core/constants/Items/OrnnItemKeys.js +0 -4
  207. package/core/constants/Items/OrnnItemKeysNum.d.ts +0 -23
  208. package/core/constants/Items/OrnnItemKeysNum.js +0 -4
  209. package/core/constants/Items/OrnnItemNames.d.ts +0 -23
  210. package/core/constants/Items/OrnnItemNames.js +0 -4
  211. package/core/helpers/Items/isOrnnItemKey.d.ts +0 -2
  212. package/core/helpers/Items/isOrnnItemKey.js +0 -8
  213. package/core/helpers/Items/isOrnnItemKeyNum.d.ts +0 -2
  214. package/core/helpers/Items/isOrnnItemKeyNum.js +0 -8
  215. package/core/helpers/Items/isOrnnItemName.d.ts +0 -2
  216. package/core/helpers/Items/isOrnnItemName.js +0 -8
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isItemName = void 0;
4
- const ItemKeys_1 = require("../../constants/Items/ItemKeys");
5
- function isItemName(name) {
6
- return typeof name == 'string' && name in ItemKeys_1.ItemKeys;
1
+ import { ItemKeys } from '../../constants/Items/ItemKeys';
2
+ export function isItemName(name) {
3
+ return typeof name == 'string' && name in ItemKeys;
7
4
  }
8
- exports.isItemName = isItemName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLegendaryItemKey = void 0;
4
- const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
5
- function isLegendaryItemKey(key) {
6
- return key in LegendaryItemNames_1.LegendaryItemNames;
1
+ import { LegendaryItemNames } from '../../constants/Items/LegendaryItemNames';
2
+ export function isLegendaryItemKey(key) {
3
+ return key in LegendaryItemNames;
7
4
  }
8
- exports.isLegendaryItemKey = isLegendaryItemKey;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLegendaryItemKeyNum = void 0;
4
- const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
5
- function isLegendaryItemKeyNum(key) {
6
- return key in LegendaryItemNames_1.LegendaryItemNames;
1
+ import { LegendaryItemNames } from '../../constants/Items/LegendaryItemNames';
2
+ export function isLegendaryItemKeyNum(key) {
3
+ return key in LegendaryItemNames;
7
4
  }
8
- exports.isLegendaryItemKeyNum = isLegendaryItemKeyNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isLegendaryItemName = void 0;
4
- const LegendaryItemKeys_1 = require("../../constants/Items/LegendaryItemKeys");
5
- function isLegendaryItemName(name) {
6
- return typeof name == 'string' && name in LegendaryItemKeys_1.LegendaryItemKeys;
1
+ import { LegendaryItemKeys } from '../../constants/Items/LegendaryItemKeys';
2
+ export function isLegendaryItemName(name) {
3
+ return typeof name == 'string' && name in LegendaryItemKeys;
7
4
  }
8
- exports.isLegendaryItemName = isLegendaryItemName;
@@ -0,0 +1,3 @@
1
+ import { ItemKey } from '../../constants/Items/ItemKeys';
2
+ import { ItemKeyNum } from '../../constants/Items/ItemKeysNum';
3
+ export declare function isTier2Boots(itemKey: ItemKey | ItemKeyNum): boolean;
@@ -0,0 +1,9 @@
1
+ const tier1BootsItemKey = 1001;
2
+ const slightlyMagicalBootsItemKey = 2422;
3
+ const tier1Boots = {
4
+ [tier1BootsItemKey]: tier1BootsItemKey,
5
+ [slightlyMagicalBootsItemKey]: slightlyMagicalBootsItemKey,
6
+ };
7
+ export function isTier2Boots(itemKey) {
8
+ return !(itemKey in tier1Boots);
9
+ }
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNonStatRuneIdByName = void 0;
4
- const NonStatRuneIds_1 = require("../../constants/Runes/NonStatRuneIds");
5
- function getNonStatRuneIdByName(name) {
6
- return NonStatRuneIds_1.NonStatRuneIds[name];
1
+ import { NonStatRuneIds } from '../../constants/Runes/NonStatRuneIds';
2
+ export function getNonStatRuneIdByName(name) {
3
+ return NonStatRuneIds[name];
7
4
  }
8
- exports.getNonStatRuneIdByName = getNonStatRuneIdByName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getNonStatRuneNameById = void 0;
4
- const NonStatRuneNames_1 = require("../../constants/Runes/NonStatRuneNames");
5
- function getNonStatRuneNameById(id) {
6
- return NonStatRuneNames_1.NonStatRuneNames[id];
1
+ import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
+ export function getNonStatRuneNameById(id) {
3
+ return NonStatRuneNames[id];
7
4
  }
8
- exports.getNonStatRuneNameById = getNonStatRuneNameById;
@@ -1,20 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuneCategoryName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function getRuneCategoryName(name) {
6
- if (name in RuneSetsByRuneNames_1.StatRuneIds)
1
+ import { PrimaryRuneTreesByRuneNames, StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function getRuneCategoryName(name) {
3
+ if (name in StatRuneIds)
7
4
  return 'StatRunes';
8
- if (name in RuneSetsByRuneNames_1.PrimaryRuneTreesByRuneNames.Precision)
5
+ if (name in PrimaryRuneTreesByRuneNames.Precision)
9
6
  return 'Precision';
10
- if (name in RuneSetsByRuneNames_1.PrimaryRuneTreesByRuneNames.Domination)
7
+ if (name in PrimaryRuneTreesByRuneNames.Domination)
11
8
  return 'Domination';
12
- if (name in RuneSetsByRuneNames_1.PrimaryRuneTreesByRuneNames.Sorcery)
9
+ if (name in PrimaryRuneTreesByRuneNames.Sorcery)
13
10
  return 'Sorcery';
14
- if (name in RuneSetsByRuneNames_1.PrimaryRuneTreesByRuneNames.Resolve)
11
+ if (name in PrimaryRuneTreesByRuneNames.Resolve)
15
12
  return 'Resolve';
16
- if (name in RuneSetsByRuneNames_1.PrimaryRuneTreesByRuneNames.Inspiration)
13
+ if (name in PrimaryRuneTreesByRuneNames.Inspiration)
17
14
  return 'Inspiration';
18
15
  throw 'impossible code reached';
19
16
  }
20
- exports.getRuneCategoryName = getRuneCategoryName;
@@ -1,26 +1,23 @@
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) {
1
+ import { DataDragonUrls } from '../../constants/DataDragonUrls';
2
+ import { RuneIconFileNames } from '../../constants/Runes/RuneIconFileNames';
3
+ import { isRuneTreeName } from '../../constants/Runes/RuneTreeNames';
4
+ import { getRuneCategoryName } from './getRuneCategoryName';
5
+ import { isStatRuneName } from './isStatRuneName';
6
+ export function getRuneCdnUrl(name) {
10
7
  if (name == 'runesicon')
11
- return `${DataDragonUrls_1.DataDragonUrls.TREE_RUNE_ICON_BASE}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
8
+ return `${DataDragonUrls.TREE_RUNE_ICON_BASE}/${RuneIconFileNames[name]}.png`;
12
9
  // Choose the appropriate base path
13
- const base = (0, isStatRuneName_1.isStatRuneName)(name)
14
- ? DataDragonUrls_1.DataDragonUrls.STAT_RUNE_ICON_BASE
15
- : DataDragonUrls_1.DataDragonUrls.TREE_RUNE_ICON_BASE;
10
+ const base = isStatRuneName(name)
11
+ ? DataDragonUrls.STAT_RUNE_ICON_BASE
12
+ : DataDragonUrls.TREE_RUNE_ICON_BASE;
16
13
  // Already sufficient enough response for a rune tree name
17
- if ((0, RuneTreeNames_1.isRuneTreeName)(name))
18
- return `${base}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
14
+ if (isRuneTreeName(name))
15
+ return `${base}/${RuneIconFileNames[name]}.png`;
19
16
  // And stat runes
20
- if ((0, isStatRuneName_1.isStatRuneName)(name))
21
- return `${base}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
17
+ if (isStatRuneName(name))
18
+ return `${base}/${RuneIconFileNames[name]}.png`;
22
19
  // Finish for tree rune names
23
- let category = (0, getRuneCategoryName_1.getRuneCategoryName)(name);
20
+ let category = getRuneCategoryName(name);
24
21
  // Remove spaces, colons, apostrophes and make lowercase
25
22
  let runeTreeFolder = category.replaceAll(' ', '').toLowerCase();
26
23
  let runeFolder = name.replaceAll(/[:' ]/g, '').toLowerCase();
@@ -49,6 +46,5 @@ function getRuneCdnUrl(name) {
49
46
  runeFolder = 'perfecttiming';
50
47
  break;
51
48
  }
52
- return `${base}/${runeTreeFolder}/${runeFolder}/${RuneIconFileNames_1.RuneIconFileNames[name]}.png`;
49
+ return `${base}/${runeTreeFolder}/${runeFolder}/${RuneIconFileNames[name]}.png`;
53
50
  }
54
- exports.getRuneCdnUrl = getRuneCdnUrl;
@@ -1,8 +1,4 @@
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];
1
+ import { RuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function getRuneIdByName(name) {
3
+ return RuneIds[name];
7
4
  }
8
- exports.getRuneIdByName = getRuneIdByName;
@@ -1,8 +1,4 @@
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];
1
+ import { RuneNames } from '../../constants/Runes/RuneSets';
2
+ export function getRuneNameById(id) {
3
+ return RuneNames[id];
7
4
  }
8
- exports.getRuneNameById = getRuneNameById;
@@ -1,8 +1,4 @@
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];
1
+ import { StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function getStatRuneIdByName(name) {
3
+ return StatRuneIds[name];
7
4
  }
8
- exports.getStatRuneIdByName = getStatRuneIdByName;
@@ -1,8 +1,4 @@
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];
1
+ import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
+ export function getStatRuneNameById(id) {
3
+ return StatRuneNames[id];
7
4
  }
8
- exports.getStatRuneNameById = getStatRuneNameById;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDominationRuneId = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isDominationRuneId(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Domination;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isDominationRuneId(id) {
3
+ return id in PrimaryRuneTrees.Domination;
7
4
  }
8
- exports.isDominationRuneId = isDominationRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDominationRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isDominationRuneIdNum(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Domination;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isDominationRuneIdNum(id) {
3
+ return id in PrimaryRuneTrees.Domination;
7
4
  }
8
- exports.isDominationRuneIdNum = isDominationRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isDominationRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isDominationRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
1
+ import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isDominationRuneName(value) {
3
+ return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Domination;
7
4
  }
8
- exports.isDominationRuneName = isDominationRuneName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInspirationRuneId = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isInspirationRuneId(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Inspiration;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isInspirationRuneId(id) {
3
+ return id in PrimaryRuneTrees.Inspiration;
7
4
  }
8
- exports.isInspirationRuneId = isInspirationRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInspirationRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isInspirationRuneIdNum(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Inspiration;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isInspirationRuneIdNum(id) {
3
+ return id in PrimaryRuneTrees.Inspiration;
7
4
  }
8
- exports.isInspirationRuneIdNum = isInspirationRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isInspirationRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isInspirationRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
1
+ import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isInspirationRuneName(value) {
3
+ return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Inspiration;
7
4
  }
8
- exports.isInspirationRuneName = isInspirationRuneName;
@@ -1,8 +1,4 @@
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;
1
+ import { KeystoneNames } from '../../constants/Runes/RuneSets';
2
+ export function isKeystoneRuneId(id) {
3
+ return id in KeystoneNames;
7
4
  }
8
- exports.isKeystoneRuneId = isKeystoneRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isKeystoneRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isKeystoneRuneIdNum(id) {
6
- return id in RuneSets_1.KeystoneNames;
1
+ import { KeystoneNames } from '../../constants/Runes/RuneSets';
2
+ export function isKeystoneRuneIdNum(id) {
3
+ return id in KeystoneNames;
7
4
  }
8
- exports.isKeystoneRuneIdNum = isKeystoneRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isKeystoneRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isKeystoneRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.KeystoneIds;
1
+ import { KeystoneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isKeystoneRuneName(value) {
3
+ return typeof value == 'string' && value in KeystoneIds;
7
4
  }
8
- exports.isKeystoneRuneName = isKeystoneRuneName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNonStatRuneId = void 0;
4
- const NonStatRuneNames_1 = require("../../constants/Runes/NonStatRuneNames");
5
- function isNonStatRuneId(id) {
6
- return id in NonStatRuneNames_1.NonStatRuneNames;
1
+ import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
+ export function isNonStatRuneId(id) {
3
+ return id in NonStatRuneNames;
7
4
  }
8
- exports.isNonStatRuneId = isNonStatRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNonStatRuneIdNum = void 0;
4
- const NonStatRuneNames_1 = require("../../constants/Runes/NonStatRuneNames");
5
- function isNonStatRuneIdNum(id) {
6
- return id in NonStatRuneNames_1.NonStatRuneNames;
1
+ import { NonStatRuneNames } from '../../constants/Runes/NonStatRuneNames';
2
+ export function isNonStatRuneIdNum(id) {
3
+ return id in NonStatRuneNames;
7
4
  }
8
- exports.isNonStatRuneIdNum = isNonStatRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isNonStatRuneName = void 0;
4
- const NonStatRuneIds_1 = require("../../constants/Runes/NonStatRuneIds");
5
- function isNonStatRuneName(name) {
6
- return typeof name == 'string' && name in NonStatRuneIds_1.NonStatRuneIds;
1
+ import { NonStatRuneIds } from '../../constants/Runes/NonStatRuneIds';
2
+ export function isNonStatRuneName(name) {
3
+ return typeof name == 'string' && name in NonStatRuneIds;
7
4
  }
8
- exports.isNonStatRuneName = isNonStatRuneName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPrecisionRuneId = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isPrecisionRuneId(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Precision;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isPrecisionRuneId(id) {
3
+ return id in PrimaryRuneTrees.Precision;
7
4
  }
8
- exports.isPrecisionRuneId = isPrecisionRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPrecisionRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isPrecisionRuneIdNum(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Precision;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isPrecisionRuneIdNum(id) {
3
+ return id in PrimaryRuneTrees.Precision;
7
4
  }
8
- exports.isPrecisionRuneIdNum = isPrecisionRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isPrecisionRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isPrecisionRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
1
+ import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isPrecisionRuneName(value) {
3
+ return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Precision;
7
4
  }
8
- exports.isPrecisionRuneName = isPrecisionRuneName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isResolveRuneId = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isResolveRuneId(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Resolve;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isResolveRuneId(id) {
3
+ return id in PrimaryRuneTrees.Resolve;
7
4
  }
8
- exports.isResolveRuneId = isResolveRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isResolveRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isResolveRuneIdNum(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Resolve;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isResolveRuneIdNum(id) {
3
+ return id in PrimaryRuneTrees.Resolve;
7
4
  }
8
- exports.isResolveRuneIdNum = isResolveRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isResolveRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isResolveRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
1
+ import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isResolveRuneName(value) {
3
+ return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Resolve;
7
4
  }
8
- exports.isResolveRuneName = isResolveRuneName;
@@ -1,8 +1,4 @@
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;
1
+ import { RuneNames } from '../../constants/Runes/RuneSets';
2
+ export function isRuneId(id) {
3
+ return id in RuneNames;
7
4
  }
8
- exports.isRuneId = isRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isRuneIdNum(id) {
6
- return id in RuneSets_1.RuneNames;
1
+ import { RuneNames } from '../../constants/Runes/RuneSets';
2
+ export function isRuneIdNum(id) {
3
+ return id in RuneNames;
7
4
  }
8
- exports.isRuneIdNum = isRuneIdNum;
@@ -1,8 +1,4 @@
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;
1
+ import { RuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isRuneName(name) {
3
+ return typeof name == 'string' && name in RuneIds;
7
4
  }
8
- exports.isRuneName = isRuneName;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSorceryRuneId = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isSorceryRuneId(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isSorceryRuneId(id) {
3
+ return id in PrimaryRuneTrees.Sorcery;
7
4
  }
8
- exports.isSorceryRuneId = isSorceryRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSorceryRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isSorceryRuneIdNum(id) {
6
- return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
1
+ import { PrimaryRuneTrees } from '../../constants/Runes/RuneSets';
2
+ export function isSorceryRuneIdNum(id) {
3
+ return id in PrimaryRuneTrees.Sorcery;
7
4
  }
8
- exports.isSorceryRuneIdNum = isSorceryRuneIdNum;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSorceryRuneName = void 0;
4
- const RuneSetsByRuneNames_1 = require("../../constants/Runes/RuneSetsByRuneNames");
5
- function isSorceryRuneName(value) {
6
- return typeof value == 'string' && value in RuneSetsByRuneNames_1.RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
1
+ import { RuneSetsByRuneNames } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isSorceryRuneName(value) {
3
+ return typeof value == 'string' && value in RuneSetsByRuneNames.PrimaryRuneTreesByRuneNames.Sorcery;
7
4
  }
8
- exports.isSorceryRuneName = isSorceryRuneName;
@@ -1,8 +1,4 @@
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;
1
+ import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
+ export function isStatRuneId(id) {
3
+ return id in StatRuneNames;
7
4
  }
8
- exports.isStatRuneId = isStatRuneId;
@@ -1,8 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isStatRuneIdNum = void 0;
4
- const RuneSets_1 = require("../../constants/Runes/RuneSets");
5
- function isStatRuneIdNum(id) {
6
- return id in RuneSets_1.StatRuneNames;
1
+ import { StatRuneNames } from '../../constants/Runes/RuneSets';
2
+ export function isStatRuneIdNum(id) {
3
+ return id in StatRuneNames;
7
4
  }
8
- exports.isStatRuneIdNum = isStatRuneIdNum;
@@ -1,8 +1,4 @@
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;
1
+ import { StatRuneIds } from '../../constants/Runes/RuneSetsByRuneNames';
2
+ export function isStatRuneName(name) {
3
+ return typeof name == 'string' && name in StatRuneIds;
7
4
  }
8
- exports.isStatRuneName = isStatRuneName;
@@ -1,8 +1,4 @@
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];
1
+ import { SpellIds } from '../../constants/Spells/SpellIds';
2
+ export function getSpellIdByKey(key) {
3
+ return SpellIds[key];
7
4
  }
8
- exports.getSpellIdByKey = getSpellIdByKey;
@@ -1,8 +1,4 @@
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];
1
+ import { SpellIdsByName } from '../../constants/Spells/SpellIdsByName';
2
+ export function getSpellIdByName(name) {
3
+ return SpellIdsByName[name];
7
4
  }
8
- exports.getSpellIdByName = getSpellIdByName;