lol-constants 1.4.3 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/assets/StatRunes.d.ts +6 -6
  2. package/assets/StatRunes.js +6 -6
  3. package/assets/StatRunesV2.d.ts +17 -0
  4. package/assets/StatRunesV2.js +20 -0
  5. package/assets/scripts/Helpers/{enableSpreadValues.d.ts → enableEscapedValues.d.ts} +2 -2
  6. package/assets/scripts/Helpers/{enableSpreadValues.js → enableEscapedValues.js} +4 -4
  7. package/assets/scripts/Helpers/getExportStatement.d.ts +1 -1
  8. package/assets/scripts/Helpers/getExportStatement.js +4 -4
  9. package/assets/scripts/Helpers/writeToTmpFile.d.ts +1 -1
  10. package/assets/scripts/Helpers/writeToTmpFile.js +2 -2
  11. package/assets/scripts/generate-all.d.ts +0 -4
  12. package/assets/scripts/generate-all.js +8 -4
  13. package/assets/scripts/generate-rune-sets-by-rune-names.js +72 -47
  14. package/assets/scripts/generate-rune-sets.js +73 -81
  15. package/dist/Constants/Runes/RuneSets.d.ts +274 -10
  16. package/dist/Constants/Runes/RuneSets.js +9 -7
  17. package/dist/Constants/Runes/RuneSetsByRuneNames.d.ts +282 -18
  18. package/dist/Constants/Runes/RuneSetsByRuneNames.js +9 -7
  19. package/dist/Helpers/Runes/getRuneCategoryByRuneName.js +6 -7
  20. package/dist/Helpers/Runes/getRuneIdByName.js +2 -2
  21. package/dist/Helpers/Runes/getRuneNameById.js +2 -2
  22. package/dist/Helpers/Runes/getRuneTreeIdByName.d.ts +2 -0
  23. package/dist/Helpers/Runes/getRuneTreeIdByName.js +8 -0
  24. package/dist/Helpers/Runes/getRuneTreeNameById.d.ts +2 -0
  25. package/dist/Helpers/Runes/getRuneTreeNameById.js +8 -0
  26. package/dist/Helpers/Runes/getStatRuneIdByName.js +2 -2
  27. package/dist/Helpers/Runes/getStatRuneNameById.js +2 -2
  28. package/dist/Helpers/Runes/isDominationTreeRuneId.js +1 -1
  29. package/dist/Helpers/Runes/isInspirationTreeRuneId.js +1 -1
  30. package/dist/Helpers/Runes/isKeystoneRuneId.js +1 -1
  31. package/dist/Helpers/Runes/isPrecisionTreeRuneId.js +1 -1
  32. package/dist/Helpers/Runes/isResolveTreeRuneId.js +1 -1
  33. package/dist/Helpers/Runes/isRuneId.js +2 -2
  34. package/dist/Helpers/Runes/isRuneName.js +2 -2
  35. package/dist/Helpers/Runes/isSorceryTreeRuneId.js +1 -1
  36. package/dist/Helpers/Runes/isStatRuneId.js +2 -2
  37. package/dist/Helpers/Runes/isStatRuneName.js +2 -2
  38. package/dist/index.d.ts +4 -6
  39. package/dist/index.js +20 -10
  40. package/dist/types/index.d.ts +14 -18
  41. package/package.json +1 -1
  42. package/dist/Constants/Runes/RuneIds.d.ts +0 -74
  43. package/dist/Constants/Runes/RuneIds.js +0 -9
  44. package/dist/Constants/Runes/RuneNames.d.ts +0 -74
  45. package/dist/Constants/Runes/RuneNames.js +0 -9
  46. package/dist/Constants/Runes/StatRuneIds.d.ts +0 -11
  47. package/dist/Constants/Runes/StatRuneIds.js +0 -4
  48. package/dist/Constants/Runes/StatRuneNames.d.ts +0 -11
  49. package/dist/Constants/Runes/StatRuneNames.js +0 -4
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isStatRuneName = void 0;
4
- const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
4
+ const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
5
5
  function isStatRuneName(name) {
6
- return name in StatRuneIds_1.StatRuneIds;
6
+ return name in RuneSetsByRuneNames_1.StatRuneIds;
7
7
  }
8
8
  exports.isStatRuneName = isStatRuneName;
package/dist/index.d.ts CHANGED
@@ -6,15 +6,11 @@ export { ChampionNames } from './Constants/Champions/ChampionNames';
6
6
  export { ItemKeys } from './Constants/Items/ItemKeys';
7
7
  export { ItemNames } from './Constants/Items/ItemNames';
8
8
  export { RuneIconFileNames } from './Constants/Runes/RuneIconFileNames';
9
- export { RuneIds } from './Constants/Runes/RuneIds';
10
- export { RuneNames } from './Constants/Runes/RuneNames';
11
9
  export { RunePickingRelationships } from './Constants/Runes/RunePickingRelationships';
12
- export { RuneSets } from './Constants/Runes/RuneSets';
13
- export { RuneSetsByRuneNames } from './Constants/Runes/RuneSetsByRuneNames';
10
+ export { PrimaryRuneTrees, SecondaryRuneTrees, KeystoneNames, StatRuneNames, RuneNames, RuneTreeHSets, StatRuneHSets, RuneSets, } from './Constants/Runes/RuneSets';
11
+ export { PrimaryRuneTrees as PrimaryRuneTreesByRuneNames, SecondaryRuneTrees as SecondaryRuneTreesByRuneNames, KeystoneIds, StatRuneIds, RuneIds, RuneTreeHSets as RuneTreeHSetsByRuneNames, StatRuneHSets as StatRuneHSetsByRuneNames, RuneSetsByRuneNames, } from './Constants/Runes/RuneSetsByRuneNames';
14
12
  export { RuneTreeIds } from './Constants/Runes/RuneTreeIds';
15
13
  export { RuneTreeNames } from './Constants/Runes/RuneTreeNames';
16
- export { StatRuneIds } from './Constants/Runes/StatRuneIds';
17
- export { StatRuneNames } from './Constants/Runes/StatRuneNames';
18
14
  export { TreeRuneIds } from './Constants/Runes/TreeRuneIds';
19
15
  export { TreeRuneNames } from './Constants/Runes/TreeRuneNames';
20
16
  export { SpellIds } from './Constants/Spells/SpellIds';
@@ -37,6 +33,8 @@ export { getRuneCategoryByRuneName } from './Helpers/Runes/getRuneCategoryByRune
37
33
  export { getRuneCDNURL } from './Helpers/Runes/getRuneCDNURL';
38
34
  export { getRuneIdByName } from './Helpers/Runes/getRuneIdByName';
39
35
  export { getRuneNameById } from './Helpers/Runes/getRuneNameById';
36
+ export { getRuneTreeIdByName } from './Helpers/Runes/getRuneTreeIdByName';
37
+ export { getRuneTreeNameById } from './Helpers/Runes/getRuneTreeNameById';
40
38
  export { getStatRuneIdByName } from './Helpers/Runes/getStatRuneIdByName';
41
39
  export { getStatRuneNameById } from './Helpers/Runes/getStatRuneNameById';
42
40
  export { getTreeRuneIdByName } from './Helpers/Runes/getTreeRuneIdByName';
package/dist/index.js CHANGED
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.StatRuneNames = exports.StatRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.RuneSets = exports.RunePickingRelationships = exports.RuneNames = exports.RuneIds = exports.RuneIconFileNames = exports.ItemNames = exports.ItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
18
- exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = void 0;
17
+ exports.getRuneTreeIdByName = exports.getRuneNameById = exports.getRuneIdByName = exports.getRuneCDNURL = exports.getRuneCategoryByRuneName = exports.isItemName = exports.isItemKey = exports.getItemNameByKey = exports.getItemKeyByName = exports.isChampionName = exports.isChampionKey = exports.isChampionId = exports.getChampionNameById = exports.getChampionKeyByName = exports.getChampionKeyById = exports.getChampionIdByName = exports.getChampionIdByKey = exports.SpellNames = exports.SpellKeys = exports.SpellIdsByName = exports.SpellIds = exports.TreeRuneNames = exports.TreeRuneIds = exports.RuneTreeNames = exports.RuneTreeIds = exports.RuneSetsByRuneNames = exports.StatRuneHSetsByRuneNames = exports.RuneTreeHSetsByRuneNames = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTreesByRuneNames = exports.PrimaryRuneTreesByRuneNames = exports.RuneSets = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneNames = exports.StatRuneNames = exports.KeystoneNames = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = exports.RunePickingRelationships = exports.RuneIconFileNames = exports.ItemNames = exports.ItemKeys = exports.ChampionNames = exports.ChampionKeys = exports.ChampionIdsByName = exports.ChampionIds = exports.DDPaths = void 0;
18
+ exports.isSpellName = exports.isSpellKey = exports.isSpellId = exports.getSpellNameByKey = exports.getSpellNameById = exports.getSpellKeyByName = exports.getSpellKeyById = exports.getSpellIdByName = exports.getSpellIdByKey = exports.isTreeRuneName = exports.isTreeRuneId = exports.isStatRuneName = exports.isStatRuneId = exports.isSorceryTreeRuneId = exports.isRuneTreeName = exports.isRuneTreeId = exports.isRuneName = exports.isRuneId = exports.isResolveTreeRuneId = exports.isPrecisionTreeRuneId = exports.isKeystoneRuneId = exports.isInspirationTreeRuneId = exports.isDominationTreeRuneId = exports.getTreeRuneNameById = exports.getTreeRuneIdByName = exports.getStatRuneNameById = exports.getStatRuneIdByName = exports.getRuneTreeNameById = void 0;
19
19
  // # Constants
20
20
  var DDPaths_1 = require("./Constants/DDPaths");
21
21
  Object.defineProperty(exports, "DDPaths", { enumerable: true, get: function () { return DDPaths_1.DDPaths; } });
@@ -36,24 +36,30 @@ Object.defineProperty(exports, "ItemNames", { enumerable: true, get: function ()
36
36
  // ## Runes
37
37
  var RuneIconFileNames_1 = require("./Constants/Runes/RuneIconFileNames");
38
38
  Object.defineProperty(exports, "RuneIconFileNames", { enumerable: true, get: function () { return RuneIconFileNames_1.RuneIconFileNames; } });
39
- var RuneIds_1 = require("./Constants/Runes/RuneIds");
40
- Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneIds_1.RuneIds; } });
41
- var RuneNames_1 = require("./Constants/Runes/RuneNames");
42
- Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneNames_1.RuneNames; } });
43
39
  var RunePickingRelationships_1 = require("./Constants/Runes/RunePickingRelationships");
44
40
  Object.defineProperty(exports, "RunePickingRelationships", { enumerable: true, get: function () { return RunePickingRelationships_1.RunePickingRelationships; } });
45
41
  var RuneSets_1 = require("./Constants/Runes/RuneSets");
42
+ Object.defineProperty(exports, "PrimaryRuneTrees", { enumerable: true, get: function () { return RuneSets_1.PrimaryRuneTrees; } });
43
+ Object.defineProperty(exports, "SecondaryRuneTrees", { enumerable: true, get: function () { return RuneSets_1.SecondaryRuneTrees; } });
44
+ Object.defineProperty(exports, "KeystoneNames", { enumerable: true, get: function () { return RuneSets_1.KeystoneNames; } });
45
+ Object.defineProperty(exports, "StatRuneNames", { enumerable: true, get: function () { return RuneSets_1.StatRuneNames; } });
46
+ Object.defineProperty(exports, "RuneNames", { enumerable: true, get: function () { return RuneSets_1.RuneNames; } });
47
+ Object.defineProperty(exports, "RuneTreeHSets", { enumerable: true, get: function () { return RuneSets_1.RuneTreeHSets; } });
48
+ Object.defineProperty(exports, "StatRuneHSets", { enumerable: true, get: function () { return RuneSets_1.StatRuneHSets; } });
46
49
  Object.defineProperty(exports, "RuneSets", { enumerable: true, get: function () { return RuneSets_1.RuneSets; } });
47
50
  var RuneSetsByRuneNames_1 = require("./Constants/Runes/RuneSetsByRuneNames");
51
+ Object.defineProperty(exports, "PrimaryRuneTreesByRuneNames", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.PrimaryRuneTrees; } });
52
+ Object.defineProperty(exports, "SecondaryRuneTreesByRuneNames", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.SecondaryRuneTrees; } });
53
+ Object.defineProperty(exports, "KeystoneIds", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.KeystoneIds; } });
54
+ Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.StatRuneIds; } });
55
+ Object.defineProperty(exports, "RuneIds", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.RuneIds; } });
56
+ Object.defineProperty(exports, "RuneTreeHSetsByRuneNames", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.RuneTreeHSets; } });
57
+ Object.defineProperty(exports, "StatRuneHSetsByRuneNames", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.StatRuneHSets; } });
48
58
  Object.defineProperty(exports, "RuneSetsByRuneNames", { enumerable: true, get: function () { return RuneSetsByRuneNames_1.RuneSetsByRuneNames; } });
49
59
  var RuneTreeIds_1 = require("./Constants/Runes/RuneTreeIds");
50
60
  Object.defineProperty(exports, "RuneTreeIds", { enumerable: true, get: function () { return RuneTreeIds_1.RuneTreeIds; } });
51
61
  var RuneTreeNames_1 = require("./Constants/Runes/RuneTreeNames");
52
62
  Object.defineProperty(exports, "RuneTreeNames", { enumerable: true, get: function () { return RuneTreeNames_1.RuneTreeNames; } });
53
- var StatRuneIds_1 = require("./Constants/Runes/StatRuneIds");
54
- Object.defineProperty(exports, "StatRuneIds", { enumerable: true, get: function () { return StatRuneIds_1.StatRuneIds; } });
55
- var StatRuneNames_1 = require("./Constants/Runes/StatRuneNames");
56
- Object.defineProperty(exports, "StatRuneNames", { enumerable: true, get: function () { return StatRuneNames_1.StatRuneNames; } });
57
63
  var TreeRuneIds_1 = require("./Constants/Runes/TreeRuneIds");
58
64
  Object.defineProperty(exports, "TreeRuneIds", { enumerable: true, get: function () { return TreeRuneIds_1.TreeRuneIds; } });
59
65
  var TreeRuneNames_1 = require("./Constants/Runes/TreeRuneNames");
@@ -103,6 +109,10 @@ var getRuneIdByName_1 = require("./Helpers/Runes/getRuneIdByName");
103
109
  Object.defineProperty(exports, "getRuneIdByName", { enumerable: true, get: function () { return getRuneIdByName_1.getRuneIdByName; } });
104
110
  var getRuneNameById_1 = require("./Helpers/Runes/getRuneNameById");
105
111
  Object.defineProperty(exports, "getRuneNameById", { enumerable: true, get: function () { return getRuneNameById_1.getRuneNameById; } });
112
+ var getRuneTreeIdByName_1 = require("./Helpers/Runes/getRuneTreeIdByName");
113
+ Object.defineProperty(exports, "getRuneTreeIdByName", { enumerable: true, get: function () { return getRuneTreeIdByName_1.getRuneTreeIdByName; } });
114
+ var getRuneTreeNameById_1 = require("./Helpers/Runes/getRuneTreeNameById");
115
+ Object.defineProperty(exports, "getRuneTreeNameById", { enumerable: true, get: function () { return getRuneTreeNameById_1.getRuneTreeNameById; } });
106
116
  var getStatRuneIdByName_1 = require("./Helpers/Runes/getStatRuneIdByName");
107
117
  Object.defineProperty(exports, "getStatRuneIdByName", { enumerable: true, get: function () { return getStatRuneIdByName_1.getStatRuneIdByName; } });
108
118
  var getStatRuneNameById_1 = require("./Helpers/Runes/getStatRuneNameById");
@@ -1,4 +1,4 @@
1
- import { RuneSets } from '../Constants/Runes/RuneSets';
1
+ import { RuneNames, RuneSets, StatRuneNames } from '../Constants/Runes/RuneSets';
2
2
  import { ChampionIds } from '../Constants/Champions/ChampionIds';
3
3
  import { ChampionKeys } from '../Constants/Champions/ChampionKeys';
4
4
  import { ChampionNames } from '../Constants/Champions/ChampionNames';
@@ -7,10 +7,6 @@ import { ItemNames } from '../Constants/Items/ItemNames';
7
7
  import { SpellIds } from '../Constants/Spells/SpellIds';
8
8
  import { SpellKeys } from '../Constants/Spells/SpellKeys';
9
9
  import { SpellNames } from '../Constants/Spells/SpellNames';
10
- import { RuneIds } from '../Constants/Runes/RuneIds';
11
- import { RuneNames } from '../Constants/Runes/RuneNames';
12
- import { StatRuneIds } from '../Constants/Runes/StatRuneIds';
13
- import { StatRuneNames } from '../Constants/Runes/StatRuneNames';
14
10
  import { TreeRuneIds } from '../Constants/Runes/TreeRuneIds';
15
11
  import { TreeRuneNames } from '../Constants/Runes/TreeRuneNames';
16
12
  import { Positions } from '../Constants/Positions';
@@ -20,7 +16,7 @@ import { RuneTreeTypes } from '../Constants/Runes/RuneTreeTypes';
20
16
  import { Levels } from '../Constants/Levels';
21
17
  import { Skills } from '../Constants/Skills';
22
18
  import { RuneTreeIds } from '../Constants/Runes/RuneTreeIds';
23
- import { RuneSetsByRuneNames } from '../Constants/Runes/RuneSetsByRuneNames';
19
+ import { RuneIds, RuneSetsByRuneNames, StatRuneIds } from '../Constants/Runes/RuneSetsByRuneNames';
24
20
  export declare type ChampionId = typeof ChampionIds[keyof typeof ChampionIds];
25
21
  export declare type ChampionKey = typeof ChampionKeys[keyof typeof ChampionKeys];
26
22
  export declare type ChampionName = typeof ChampionNames[keyof typeof ChampionNames];
@@ -91,8 +87,8 @@ export declare type StatRuneName = typeof StatRuneNames[keyof typeof StatRuneNam
91
87
  * - `ResolveTreeRuneId`,
92
88
  * - `InspirationTreeRuneId`,
93
89
  */
94
- export declare type KeystoneRuneId = keyof typeof RuneSets.Keystones;
95
- export declare type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.Keystones;
90
+ export declare type KeystoneRuneId = keyof typeof RuneSets.KeystoneNames;
91
+ export declare type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.KeystoneIds;
96
92
  /**
97
93
  * There are 3 main Rune ID types:
98
94
  * - `RuneId` (all),
@@ -107,8 +103,8 @@ export declare type KeystoneRuneName = keyof typeof RuneSetsByRuneNames.Keystone
107
103
  * - `ResolveTreeRuneId`,
108
104
  * - `InspirationTreeRuneId`,
109
105
  */
110
- export declare type PrecisionTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Precision;
111
- export declare type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryTrees.Precision;
106
+ export declare type PrecisionTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Precision;
107
+ export declare type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTrees.Precision;
112
108
  /**
113
109
  * There are 3 main Rune ID types:
114
110
  * - `RuneId` (all),
@@ -123,8 +119,8 @@ export declare type PrecisionTreeRuneName = keyof typeof RuneSetsByRuneNames.Pri
123
119
  * - `ResolveTreeRuneId`,
124
120
  * - `InspirationTreeRuneId`,
125
121
  */
126
- export declare type DominationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Domination;
127
- export declare type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryTrees.Domination;
122
+ export declare type DominationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Domination;
123
+ export declare type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTrees.Domination;
128
124
  /**
129
125
  * There are 3 main Rune ID types:
130
126
  * - `RuneId` (all),
@@ -139,8 +135,8 @@ export declare type DominationTreeRuneName = keyof typeof RuneSetsByRuneNames.Pr
139
135
  * - `ResolveTreeRuneId`,
140
136
  * - `InspirationTreeRuneId`,
141
137
  */
142
- export declare type SorceryTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Sorcery;
143
- export declare type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryTrees.Sorcery;
138
+ export declare type SorceryTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Sorcery;
139
+ export declare type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTrees.Sorcery;
144
140
  /**
145
141
  * There are 3 main Rune ID types:
146
142
  * - `RuneId` (all),
@@ -155,8 +151,8 @@ export declare type SorceryTreeRuneName = keyof typeof RuneSetsByRuneNames.Prima
155
151
  * - `ResolveTreeRuneId`,
156
152
  * - `InspirationTreeRuneId`,
157
153
  */
158
- export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Resolve;
159
- export declare type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryTrees.Resolve;
154
+ export declare type ResolveTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Resolve;
155
+ export declare type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTrees.Resolve;
160
156
  /**
161
157
  * There are 3 main Rune ID types:
162
158
  * - `RuneId` (all),
@@ -171,8 +167,8 @@ export declare type ResolveTreeRuneName = keyof typeof RuneSetsByRuneNames.Prima
171
167
  * - `ResolveTreeRuneId`,
172
168
  * - `InspirationTreeRuneId`,
173
169
  */
174
- export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryTrees.Inspiration;
175
- export declare type InspirationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryTrees.Inspiration;
170
+ export declare type InspirationTreeRuneId = keyof typeof RuneSets.PrimaryRuneTrees.Inspiration;
171
+ export declare type InspirationTreeRuneName = keyof typeof RuneSetsByRuneNames.PrimaryRuneTrees.Inspiration;
176
172
  export declare type RuneTreeId = typeof RuneTreeIds[keyof typeof RuneTreeIds];
177
173
  export declare type RuneTreeName = typeof RuneTreeNames[keyof typeof RuneTreeNames];
178
174
  export declare type RuneTreeType = keyof typeof RuneTreeTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "1.4.3",
3
+ "version": "1.5.2",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,74 +0,0 @@
1
- export declare const RuneIds: {
2
- readonly "Defense (HP)": "5001";
3
- readonly "Defense (AR)": "5002";
4
- readonly "Defense (MR)": "5003";
5
- readonly "Offense (AS)": "5005";
6
- readonly "Offense (AH)": "5007";
7
- readonly "Offense (AF)": "5008";
8
- readonly "Flex (AR)": "5002f";
9
- readonly "Flex (MR)": "5003f";
10
- readonly "Flex (AF)": "5008f";
11
- readonly Electrocute: "8112";
12
- readonly Predator: "8124";
13
- readonly "Dark Harvest": "8128";
14
- readonly "Hail of Blades": "9923";
15
- readonly "Cheap Shot": "8126";
16
- readonly "Taste of Blood": "8139";
17
- readonly "Sudden Impact": "8143";
18
- readonly "Zombie Ward": "8136";
19
- readonly "Ghost Poro": "8120";
20
- readonly "Eyeball Collection": "8138";
21
- readonly "Treasure Hunter": "8135";
22
- readonly "Ingenious Hunter": "8134";
23
- readonly "Relentless Hunter": "8105";
24
- readonly "Ultimate Hunter": "8106";
25
- readonly "Glacial Augment": "8351";
26
- readonly "Unsealed Spellbook": "8360";
27
- readonly "First Strike": "8369";
28
- readonly "Hextech Flashtraption": "8306";
29
- readonly "Magical Footwear": "8304";
30
- readonly "Perfect Timing": "8313";
31
- readonly "Future's Market": "8321";
32
- readonly "Minion Dematerializer": "8316";
33
- readonly "Biscuit Delivery": "8345";
34
- readonly "Cosmic Insight": "8347";
35
- readonly "Approach Velocity": "8410";
36
- readonly "Time Warp Tonic": "8352";
37
- readonly "Press the Attack": "8005";
38
- readonly "Lethal Tempo": "8008";
39
- readonly "Fleet Footwork": "8021";
40
- readonly Conqueror: "8010";
41
- readonly Overheal: "9101";
42
- readonly Triumph: "9111";
43
- readonly "Presence of Mind": "8009";
44
- readonly "Legend: Alacrity": "9104";
45
- readonly "Legend: Tenacity": "9105";
46
- readonly "Legend: Bloodline": "9103";
47
- readonly "Coup de Grace": "8014";
48
- readonly "Cut Down": "8017";
49
- readonly "Last Stand": "8299";
50
- readonly "Grasp of the Undying": "8437";
51
- readonly Aftershock: "8439";
52
- readonly Guardian: "8465";
53
- readonly Demolish: "8446";
54
- readonly "Font of Life": "8463";
55
- readonly "Shield Bash": "8401";
56
- readonly Conditioning: "8429";
57
- readonly "Second Wind": "8444";
58
- readonly "Bone Plating": "8473";
59
- readonly Overgrowth: "8451";
60
- readonly Revitalize: "8453";
61
- readonly Unflinching: "8242";
62
- readonly "Summon Aery": "8214";
63
- readonly "Arcane Comet": "8229";
64
- readonly "Phase Rush": "8230";
65
- readonly "Nullifying Orb": "8224";
66
- readonly "Manaflow Band": "8226";
67
- readonly "Nimbus Cloak": "8275";
68
- readonly Transcendence: "8210";
69
- readonly Celerity: "8234";
70
- readonly "Absolute Focus": "8233";
71
- readonly Scorch: "8237";
72
- readonly Waterwalking: "8232";
73
- readonly "Gathering Storm": "8236";
74
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuneIds = void 0;
4
- const StatRuneIds_1 = require("./StatRuneIds");
5
- const TreeRuneIds_1 = require("./TreeRuneIds");
6
- exports.RuneIds = {
7
- ...TreeRuneIds_1.TreeRuneIds,
8
- ...StatRuneIds_1.StatRuneIds,
9
- };
@@ -1,74 +0,0 @@
1
- export declare const RuneNames: {
2
- readonly "5001": "Defense (HP)";
3
- readonly "5002": "Defense (AR)";
4
- readonly "5003": "Defense (MR)";
5
- readonly "5005": "Offense (AS)";
6
- readonly "5007": "Offense (AH)";
7
- readonly "5008": "Offense (AF)";
8
- readonly "5002f": "Flex (AR)";
9
- readonly "5003f": "Flex (MR)";
10
- readonly "5008f": "Flex (AF)";
11
- readonly "8005": "Press the Attack";
12
- readonly "8008": "Lethal Tempo";
13
- readonly "8009": "Presence of Mind";
14
- readonly "8010": "Conqueror";
15
- readonly "8014": "Coup de Grace";
16
- readonly "8017": "Cut Down";
17
- readonly "8021": "Fleet Footwork";
18
- readonly "8105": "Relentless Hunter";
19
- readonly "8106": "Ultimate Hunter";
20
- readonly "8112": "Electrocute";
21
- readonly "8120": "Ghost Poro";
22
- readonly "8124": "Predator";
23
- readonly "8126": "Cheap Shot";
24
- readonly "8128": "Dark Harvest";
25
- readonly "8134": "Ingenious Hunter";
26
- readonly "8135": "Treasure Hunter";
27
- readonly "8136": "Zombie Ward";
28
- readonly "8138": "Eyeball Collection";
29
- readonly "8139": "Taste of Blood";
30
- readonly "8143": "Sudden Impact";
31
- readonly "8210": "Transcendence";
32
- readonly "8214": "Summon Aery";
33
- readonly "8224": "Nullifying Orb";
34
- readonly "8226": "Manaflow Band";
35
- readonly "8229": "Arcane Comet";
36
- readonly "8230": "Phase Rush";
37
- readonly "8232": "Waterwalking";
38
- readonly "8233": "Absolute Focus";
39
- readonly "8234": "Celerity";
40
- readonly "8236": "Gathering Storm";
41
- readonly "8237": "Scorch";
42
- readonly "8242": "Unflinching";
43
- readonly "8275": "Nimbus Cloak";
44
- readonly "8299": "Last Stand";
45
- readonly "8304": "Magical Footwear";
46
- readonly "8306": "Hextech Flashtraption";
47
- readonly "8313": "Perfect Timing";
48
- readonly "8316": "Minion Dematerializer";
49
- readonly "8321": "Future's Market";
50
- readonly "8345": "Biscuit Delivery";
51
- readonly "8347": "Cosmic Insight";
52
- readonly "8351": "Glacial Augment";
53
- readonly "8352": "Time Warp Tonic";
54
- readonly "8360": "Unsealed Spellbook";
55
- readonly "8369": "First Strike";
56
- readonly "8401": "Shield Bash";
57
- readonly "8410": "Approach Velocity";
58
- readonly "8429": "Conditioning";
59
- readonly "8437": "Grasp of the Undying";
60
- readonly "8439": "Aftershock";
61
- readonly "8444": "Second Wind";
62
- readonly "8446": "Demolish";
63
- readonly "8451": "Overgrowth";
64
- readonly "8453": "Revitalize";
65
- readonly "8463": "Font of Life";
66
- readonly "8465": "Guardian";
67
- readonly "8473": "Bone Plating";
68
- readonly "9101": "Overheal";
69
- readonly "9103": "Legend: Bloodline";
70
- readonly "9104": "Legend: Alacrity";
71
- readonly "9105": "Legend: Tenacity";
72
- readonly "9111": "Triumph";
73
- readonly "9923": "Hail of Blades";
74
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuneNames = void 0;
4
- const StatRuneNames_1 = require("./StatRuneNames");
5
- const TreeRuneNames_1 = require("./TreeRuneNames");
6
- exports.RuneNames = {
7
- ...TreeRuneNames_1.TreeRuneNames,
8
- ...StatRuneNames_1.StatRuneNames,
9
- };
@@ -1,11 +0,0 @@
1
- export declare const StatRuneIds: {
2
- readonly "Defense (HP)": "5001";
3
- readonly "Defense (AR)": "5002";
4
- readonly "Defense (MR)": "5003";
5
- readonly "Offense (AS)": "5005";
6
- readonly "Offense (AH)": "5007";
7
- readonly "Offense (AF)": "5008";
8
- readonly "Flex (AR)": "5002f";
9
- readonly "Flex (MR)": "5003f";
10
- readonly "Flex (AF)": "5008f";
11
- };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatRuneIds = void 0;
4
- exports.StatRuneIds = { "Defense (HP)": "5001", "Defense (AR)": "5002", "Defense (MR)": "5003", "Offense (AS)": "5005", "Offense (AH)": "5007", "Offense (AF)": "5008", "Flex (AR)": "5002f", "Flex (MR)": "5003f", "Flex (AF)": "5008f" };
@@ -1,11 +0,0 @@
1
- export declare const StatRuneNames: {
2
- readonly "5001": "Defense (HP)";
3
- readonly "5002": "Defense (AR)";
4
- readonly "5003": "Defense (MR)";
5
- readonly "5005": "Offense (AS)";
6
- readonly "5007": "Offense (AH)";
7
- readonly "5008": "Offense (AF)";
8
- readonly "5002f": "Flex (AR)";
9
- readonly "5003f": "Flex (MR)";
10
- readonly "5008f": "Flex (AF)";
11
- };
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatRuneNames = void 0;
4
- exports.StatRuneNames = { "5001": "Defense (HP)", "5002": "Defense (AR)", "5003": "Defense (MR)", "5005": "Offense (AS)", "5007": "Offense (AH)", "5008": "Offense (AF)", "5002f": "Flex (AR)", "5003f": "Flex (MR)", "5008f": "Flex (AF)" };