lol-constants 1.0.1 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (178) hide show
  1. package/assets/index.js +1 -1
  2. package/assets/scripts/Helpers/enableSpreadValues.d.ts +15 -0
  3. package/assets/scripts/Helpers/enableSpreadValues.js +38 -0
  4. package/assets/scripts/Helpers/getExportStatement.d.ts +1 -1
  5. package/assets/scripts/Helpers/getExportStatement.js +8 -2
  6. package/assets/scripts/Helpers/getFmtdComment.d.ts +5 -0
  7. package/assets/scripts/Helpers/getFmtdComment.js +15 -0
  8. package/assets/scripts/Helpers/writeToTmpFile.d.ts +8 -0
  9. package/assets/scripts/Helpers/writeToTmpFile.js +22 -0
  10. package/assets/scripts/generate-all.d.ts +1 -0
  11. package/assets/scripts/generate-all.js +1 -0
  12. package/{dist/scripts/generate-champion-ids-by-name.d.ts → assets/scripts/generate-rune-sets.d.ts} +0 -0
  13. package/assets/scripts/generate-rune-sets.js +94 -0
  14. package/dist/Constants/{ChampionIds.d.ts → Champions/ChampionIds.d.ts} +0 -0
  15. package/dist/Constants/{ChampionIds.js → Champions/ChampionIds.js} +0 -0
  16. package/dist/Constants/{ChampionIdsByName.d.ts → Champions/ChampionIdsByName.d.ts} +0 -0
  17. package/dist/Constants/{ChampionIdsByName.js → Champions/ChampionIdsByName.js} +0 -0
  18. package/dist/Constants/{ChampionKeys.d.ts → Champions/ChampionKeys.d.ts} +0 -0
  19. package/dist/Constants/{ChampionKeys.js → Champions/ChampionKeys.js} +0 -0
  20. package/dist/Constants/{ChampionNames.d.ts → Champions/ChampionNames.d.ts} +0 -0
  21. package/dist/Constants/{ChampionNames.js → Champions/ChampionNames.js} +0 -0
  22. package/dist/Constants/{ItemKeys.d.ts → Items/ItemKeys.d.ts} +0 -0
  23. package/dist/Constants/{ItemKeys.js → Items/ItemKeys.js} +0 -0
  24. package/dist/Constants/{ItemNames.d.ts → Items/ItemNames.d.ts} +0 -0
  25. package/dist/Constants/{ItemNames.js → Items/ItemNames.js} +0 -0
  26. package/dist/Constants/{RuneIds.d.ts → Runes/RuneIds.d.ts} +9 -9
  27. package/dist/Constants/Runes/RuneIds.js +9 -0
  28. package/dist/Constants/{RuneNames.d.ts → Runes/RuneNames.d.ts} +3 -3
  29. package/dist/Constants/Runes/RuneNames.js +9 -0
  30. package/dist/Constants/Runes/RuneSets.d.ts +479 -0
  31. package/dist/Constants/Runes/RuneSets.js +12 -0
  32. package/dist/Constants/{StatRuneIds.d.ts → Runes/StatRuneIds.d.ts} +0 -0
  33. package/dist/Constants/{StatRuneIds.js → Runes/StatRuneIds.js} +0 -0
  34. package/dist/Constants/{StatRuneNames.d.ts → Runes/StatRuneNames.d.ts} +0 -0
  35. package/dist/Constants/{StatRuneNames.js → Runes/StatRuneNames.js} +0 -0
  36. package/dist/Constants/{TreeRuneIds.d.ts → Runes/TreeRuneIds.d.ts} +0 -0
  37. package/dist/Constants/{TreeRuneIds.js → Runes/TreeRuneIds.js} +0 -0
  38. package/dist/Constants/{TreeRuneNames.d.ts → Runes/TreeRuneNames.d.ts} +0 -0
  39. package/dist/Constants/{TreeRuneNames.js → Runes/TreeRuneNames.js} +0 -0
  40. package/dist/Constants/{SpellIds.d.ts → Spells/SpellIds.d.ts} +0 -0
  41. package/dist/Constants/{SpellIds.js → Spells/SpellIds.js} +0 -0
  42. package/dist/Constants/{SpellIdsByName.d.ts → Spells/SpellIdsByName.d.ts} +0 -0
  43. package/dist/Constants/{SpellIdsByName.js → Spells/SpellIdsByName.js} +0 -0
  44. package/dist/Constants/{SpellKeys.d.ts → Spells/SpellKeys.d.ts} +0 -0
  45. package/dist/Constants/{SpellKeys.js → Spells/SpellKeys.js} +0 -0
  46. package/dist/Constants/{SpellNames.d.ts → Spells/SpellNames.d.ts} +0 -0
  47. package/dist/Constants/{SpellNames.js → Spells/SpellNames.js} +0 -0
  48. package/dist/Helpers/{getChampionIdByKey.d.ts → Champions/getChampionIdByKey.d.ts} +1 -1
  49. package/dist/Helpers/{getChampionIdByKey.js → Champions/getChampionIdByKey.js} +1 -1
  50. package/dist/Helpers/{getChampionIdByName.d.ts → Champions/getChampionIdByName.d.ts} +1 -1
  51. package/dist/Helpers/{getChampionIdByName.js → Champions/getChampionIdByName.js} +1 -1
  52. package/dist/Helpers/{getChampionKeyById.d.ts → Champions/getChampionKeyById.d.ts} +1 -1
  53. package/dist/Helpers/{getChampionKeyById.js → Champions/getChampionKeyById.js} +1 -1
  54. package/dist/Helpers/{getChampionKeyByName.d.ts → Champions/getChampionKeyByName.d.ts} +1 -1
  55. package/dist/Helpers/{getChampionKeyByName.js → Champions/getChampionKeyByName.js} +2 -2
  56. package/dist/Helpers/{getChampionNameById.d.ts → Champions/getChampionNameById.d.ts} +1 -1
  57. package/dist/Helpers/{getChampionNameById.js → Champions/getChampionNameById.js} +2 -2
  58. package/dist/Helpers/{getChampionNameByKey.d.ts → Champions/getChampionNameByKey.d.ts} +1 -1
  59. package/dist/Helpers/{getChampionNameByKey.js → Champions/getChampionNameByKey.js} +1 -1
  60. package/dist/Helpers/{isChampionId.d.ts → Champions/isChampionId.d.ts} +1 -1
  61. package/dist/Helpers/{isChampionId.js → Champions/isChampionId.js} +1 -1
  62. package/dist/Helpers/{isChampionKey.d.ts → Champions/isChampionKey.d.ts} +1 -1
  63. package/dist/Helpers/{isChampionKey.js → Champions/isChampionKey.js} +1 -1
  64. package/dist/Helpers/{isChampionName.d.ts → Champions/isChampionName.d.ts} +1 -1
  65. package/dist/Helpers/{isChampionName.js → Champions/isChampionName.js} +1 -1
  66. package/dist/Helpers/{getItemKeyByName.d.ts → Items/getItemKeyByName.d.ts} +1 -1
  67. package/dist/Helpers/{getItemKeyByName.js → Items/getItemKeyByName.js} +1 -1
  68. package/dist/Helpers/{getItemNameByKey.d.ts → Items/getItemNameByKey.d.ts} +1 -1
  69. package/dist/Helpers/{getItemNameByKey.js → Items/getItemNameByKey.js} +1 -1
  70. package/dist/Helpers/{isItemKey.d.ts → Items/isItemKey.d.ts} +1 -1
  71. package/dist/Helpers/{isItemKey.js → Items/isItemKey.js} +1 -1
  72. package/dist/Helpers/{isItemName.d.ts → Items/isItemName.d.ts} +1 -1
  73. package/dist/Helpers/{isItemName.js → Items/isItemName.js} +1 -1
  74. package/dist/Helpers/{getRuneIdByName.d.ts → Runes/getRuneIdByName.d.ts} +1 -1
  75. package/dist/Helpers/{getRuneIdByName.js → Runes/getRuneIdByName.js} +1 -1
  76. package/dist/Helpers/{getRuneNameById.d.ts → Runes/getRuneNameById.d.ts} +1 -1
  77. package/dist/Helpers/{getRuneNameById.js → Runes/getRuneNameById.js} +1 -1
  78. package/dist/Helpers/{getStatRuneIdByName.d.ts → Runes/getStatRuneIdByName.d.ts} +1 -1
  79. package/dist/Helpers/{getStatRuneIdByName.js → Runes/getStatRuneIdByName.js} +1 -1
  80. package/dist/Helpers/{getStatRuneNameById.d.ts → Runes/getStatRuneNameById.d.ts} +1 -1
  81. package/dist/Helpers/{getStatRuneNameById.js → Runes/getStatRuneNameById.js} +1 -1
  82. package/dist/Helpers/{getTreeRuneIdByName.d.ts → Runes/getTreeRuneIdByName.d.ts} +1 -1
  83. package/dist/Helpers/{getTreeRuneIdByName.js → Runes/getTreeRuneIdByName.js} +1 -1
  84. package/dist/Helpers/{getTreeRuneNameById.d.ts → Runes/getTreeRuneNameById.d.ts} +1 -1
  85. package/dist/Helpers/{getTreeRuneNameById.js → Runes/getTreeRuneNameById.js} +1 -1
  86. package/dist/Helpers/Runes/isDominationTreeRuneId.d.ts +2 -0
  87. package/dist/Helpers/Runes/isDominationTreeRuneId.js +8 -0
  88. package/dist/Helpers/Runes/isInspirationTreeRuneId.d.ts +2 -0
  89. package/dist/Helpers/Runes/isInspirationTreeRuneId.js +8 -0
  90. package/dist/Helpers/Runes/isKeystoneRuneId.d.ts +2 -0
  91. package/dist/Helpers/Runes/isKeystoneRuneId.js +8 -0
  92. package/dist/Helpers/Runes/isPrecisionTreeRuneId.d.ts +2 -0
  93. package/dist/Helpers/Runes/isPrecisionTreeRuneId.js +8 -0
  94. package/dist/Helpers/Runes/isResolveTreeRuneId.d.ts +2 -0
  95. package/dist/Helpers/Runes/isResolveTreeRuneId.js +8 -0
  96. package/dist/Helpers/{isRuneId.d.ts → Runes/isRuneId.d.ts} +1 -1
  97. package/dist/Helpers/{isRuneId.js → Runes/isRuneId.js} +1 -1
  98. package/dist/Helpers/{isRuneName.d.ts → Runes/isRuneName.d.ts} +1 -1
  99. package/dist/Helpers/{isRuneName.js → Runes/isRuneName.js} +1 -1
  100. package/dist/Helpers/Runes/isSorceryTreeRuneId.d.ts +2 -0
  101. package/dist/Helpers/Runes/isSorceryTreeRuneId.js +8 -0
  102. package/dist/Helpers/{isStatRuneId.d.ts → Runes/isStatRuneId.d.ts} +1 -1
  103. package/dist/Helpers/{isStatRuneId.js → Runes/isStatRuneId.js} +1 -1
  104. package/dist/Helpers/{isStatRuneName.d.ts → Runes/isStatRuneName.d.ts} +1 -1
  105. package/dist/Helpers/{isStatRuneName.js → Runes/isStatRuneName.js} +1 -1
  106. package/dist/Helpers/{isTreeRuneId.d.ts → Runes/isTreeRuneId.d.ts} +1 -1
  107. package/dist/Helpers/{isTreeRuneId.js → Runes/isTreeRuneId.js} +1 -1
  108. package/dist/Helpers/{isTreeRuneName.d.ts → Runes/isTreeRuneName.d.ts} +1 -1
  109. package/dist/Helpers/{isTreeRuneName.js → Runes/isTreeRuneName.js} +1 -1
  110. package/dist/Helpers/{getSpellIdByKey.d.ts → Spells/getSpellIdByKey.d.ts} +1 -1
  111. package/dist/Helpers/{getSpellIdByKey.js → Spells/getSpellIdByKey.js} +1 -1
  112. package/dist/Helpers/{getSpellIdByName.d.ts → Spells/getSpellIdByName.d.ts} +1 -1
  113. package/dist/Helpers/{getSpellIdByName.js → Spells/getSpellIdByName.js} +1 -1
  114. package/dist/Helpers/{getSpellKeyById.d.ts → Spells/getSpellKeyById.d.ts} +1 -1
  115. package/dist/Helpers/{getSpellKeyById.js → Spells/getSpellKeyById.js} +1 -1
  116. package/dist/Helpers/{getSpellKeyByName.d.ts → Spells/getSpellKeyByName.d.ts} +1 -1
  117. package/dist/Helpers/{getSpellKeyByName.js → Spells/getSpellKeyByName.js} +2 -2
  118. package/dist/Helpers/{getSpellNameById.d.ts → Spells/getSpellNameById.d.ts} +1 -1
  119. package/dist/Helpers/{getSpellNameById.js → Spells/getSpellNameById.js} +2 -2
  120. package/dist/Helpers/{getSpellNameByKey.d.ts → Spells/getSpellNameByKey.d.ts} +1 -1
  121. package/dist/Helpers/{getSpellNameByKey.js → Spells/getSpellNameByKey.js} +1 -1
  122. package/dist/Helpers/{isSpellId.d.ts → Spells/isSpellId.d.ts} +1 -1
  123. package/dist/Helpers/{isSpellId.js → Spells/isSpellId.js} +1 -1
  124. package/dist/Helpers/{isSpellKey.d.ts → Spells/isSpellKey.d.ts} +1 -1
  125. package/dist/Helpers/{isSpellKey.js → Spells/isSpellKey.js} +1 -1
  126. package/dist/Helpers/{isSpellName.d.ts → Spells/isSpellName.d.ts} +1 -1
  127. package/dist/Helpers/{isSpellName.js → Spells/isSpellName.js} +1 -1
  128. package/dist/index.d.ts +56 -50
  129. package/dist/index.js +92 -95
  130. package/dist/types/index.d.ts +21 -21
  131. package/package.json +3 -5
  132. package/dist/Constants/RuneIds.js +0 -4
  133. package/dist/Constants/RuneNames.js +0 -4
  134. package/dist/Constants/RuneSets.d.ts +0 -77
  135. package/dist/Constants/RuneSets.js +0 -210
  136. package/dist/assets/StatRunes.d.ts +0 -11
  137. package/dist/assets/StatRunes.js +0 -14
  138. package/dist/assets/champion.json +0 -1
  139. package/dist/assets/index.d.ts +0 -17216
  140. package/dist/assets/index.js +0 -17
  141. package/dist/assets/item.json +0 -1
  142. package/dist/assets/runesReforged.json +0 -1
  143. package/dist/assets/summoner.json +0 -1
  144. package/dist/scripts/Helpers/getExportStatement.d.ts +0 -6
  145. package/dist/scripts/Helpers/getExportStatement.js +0 -10
  146. package/dist/scripts/generate-all.d.ts +0 -16
  147. package/dist/scripts/generate-all.js +0 -18
  148. package/dist/scripts/generate-champion-ids-by-name.js +0 -20
  149. package/dist/scripts/generate-champion-ids.d.ts +0 -1
  150. package/dist/scripts/generate-champion-ids.js +0 -20
  151. package/dist/scripts/generate-champion-keys.d.ts +0 -1
  152. package/dist/scripts/generate-champion-keys.js +0 -20
  153. package/dist/scripts/generate-champion-names.d.ts +0 -1
  154. package/dist/scripts/generate-champion-names.js +0 -20
  155. package/dist/scripts/generate-item-keys.d.ts +0 -1
  156. package/dist/scripts/generate-item-keys.js +0 -21
  157. package/dist/scripts/generate-item-names.d.ts +0 -1
  158. package/dist/scripts/generate-item-names.js +0 -21
  159. package/dist/scripts/generate-rune-ids.d.ts +0 -1
  160. package/dist/scripts/generate-rune-ids.js +0 -29
  161. package/dist/scripts/generate-rune-names.d.ts +0 -1
  162. package/dist/scripts/generate-rune-names.js +0 -29
  163. package/dist/scripts/generate-spell-ids-by-name.d.ts +0 -1
  164. package/dist/scripts/generate-spell-ids-by-name.js +0 -20
  165. package/dist/scripts/generate-spell-ids.d.ts +0 -1
  166. package/dist/scripts/generate-spell-ids.js +0 -20
  167. package/dist/scripts/generate-spell-keys.d.ts +0 -1
  168. package/dist/scripts/generate-spell-keys.js +0 -20
  169. package/dist/scripts/generate-spell-names.d.ts +0 -1
  170. package/dist/scripts/generate-spell-names.js +0 -20
  171. package/dist/scripts/generate-stat-rune-ids.d.ts +0 -1
  172. package/dist/scripts/generate-stat-rune-ids.js +0 -20
  173. package/dist/scripts/generate-stat-rune-names.d.ts +0 -1
  174. package/dist/scripts/generate-stat-rune-names.js +0 -20
  175. package/dist/scripts/generate-tree-rune-ids.d.ts +0 -1
  176. package/dist/scripts/generate-tree-rune-ids.js +0 -22
  177. package/dist/scripts/generate-tree-rune-names.d.ts +0 -1
  178. package/dist/scripts/generate-tree-rune-names.js +0 -22
@@ -1,210 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RuneSets = exports.All = exports.StatRunes = exports.Keystones = exports.SecondaryTrees = exports.PrimaryTrees = void 0;
4
- exports.PrimaryTrees = {
5
- /**
6
- * There are 13 Precision Runes in the game.
7
- */
8
- 'Precision': [
9
- '8005',
10
- '8008',
11
- '8021',
12
- '8010',
13
- '9101',
14
- '9111',
15
- '8009',
16
- '9104',
17
- '9105',
18
- '9103',
19
- '8014',
20
- '8017',
21
- '8299',
22
- ],
23
- /**
24
- * There are 13 Domination Runes in the game.
25
- */
26
- 'Domination': [
27
- '8112',
28
- '8124',
29
- '8128',
30
- '9923',
31
- '8126',
32
- '8139',
33
- '8143',
34
- '8136',
35
- '8138',
36
- '8135',
37
- '8134',
38
- '8105',
39
- '8106',
40
- ],
41
- /**
42
- * There are 12 Sorcery Runes in the game.
43
- */
44
- 'Sorcery': [
45
- '8214',
46
- '8229',
47
- '8230',
48
- '8224',
49
- '8226',
50
- '8275',
51
- '8210',
52
- '8234',
53
- '8233',
54
- '8237',
55
- '8232',
56
- '8236',
57
- ],
58
- /**
59
- * There are 11 Resolve Runes in the game.
60
- */
61
- 'Resolve': [
62
- '8437',
63
- '8439',
64
- '8465',
65
- '8446',
66
- '8463',
67
- '8401',
68
- '8429',
69
- '8444',
70
- '8473',
71
- '8451',
72
- '8453',
73
- '8242',
74
- ],
75
- /**
76
- * There are 12 Inspiration Runes in the game.
77
- */
78
- 'Inspiration': [
79
- '8351',
80
- '8360',
81
- '8369',
82
- '8306',
83
- '8304',
84
- '8313',
85
- '8321',
86
- '8316',
87
- '8345',
88
- '8347',
89
- '8410',
90
- '8352',
91
- ],
92
- };
93
- exports.SecondaryTrees = {
94
- 'Precision': [
95
- '9101',
96
- '9111',
97
- '8009',
98
- '9104',
99
- '9105',
100
- '9103',
101
- '8014',
102
- '8017',
103
- '8299',
104
- ],
105
- 'Domination': [
106
- '8126',
107
- '8139',
108
- '8143',
109
- '8136',
110
- '8138',
111
- '8135',
112
- '8134',
113
- '8105',
114
- '8106',
115
- ],
116
- 'Sorcery': [
117
- '8224',
118
- '8226',
119
- '8275',
120
- '8210',
121
- '8234',
122
- '8233',
123
- '8237',
124
- '8232',
125
- '8236',
126
- ],
127
- 'Resolve': [
128
- '8446',
129
- '8463',
130
- '8401',
131
- '8429',
132
- '8444',
133
- '8473',
134
- '8451',
135
- '8453',
136
- '8242',
137
- ],
138
- 'Inspiration': [
139
- '8306',
140
- '8304',
141
- '8313',
142
- '8321',
143
- '8316',
144
- '8345',
145
- '8347',
146
- '8410',
147
- '8352',
148
- ],
149
- };
150
- /**
151
- * There are 17 Keystone Runes in the game.
152
- */
153
- exports.Keystones = [
154
- // Precision
155
- '8005',
156
- '8008',
157
- '8021',
158
- '8010',
159
- // Domination
160
- '8112',
161
- '8124',
162
- '8128',
163
- '9923',
164
- // Sorcery
165
- '8214',
166
- '8229',
167
- '8230',
168
- // Resolve
169
- '8437',
170
- '8439',
171
- '8465',
172
- // Inspiration
173
- '8351',
174
- '8360',
175
- '8369',
176
- ];
177
- /**
178
- * There are 9 Stat Runes in the game.
179
- */
180
- exports.StatRunes = [
181
- '5001',
182
- '5002',
183
- '5002f',
184
- '5003',
185
- '5003f',
186
- '5005',
187
- '5007',
188
- '5008',
189
- '5008f',
190
- ];
191
- exports.All = [
192
- ...exports.PrimaryTrees.Precision,
193
- ...exports.PrimaryTrees.Domination,
194
- ...exports.PrimaryTrees.Sorcery,
195
- ...exports.PrimaryTrees.Resolve,
196
- ...exports.PrimaryTrees.Inspiration,
197
- ...exports.StatRunes,
198
- ];
199
- /**
200
- * Contains all Rune IDs
201
- * that are known to man in the game of League of Legends.
202
- * Sorted by various useful categories.
203
- */
204
- exports.RuneSets = {
205
- PrimaryTrees: exports.PrimaryTrees,
206
- SecondaryTrees: exports.SecondaryTrees,
207
- Keystones: exports.Keystones,
208
- StatRunes: exports.StatRunes,
209
- All: exports.All,
210
- };
@@ -1,11 +0,0 @@
1
- export declare const StatRunes: {
2
- readonly '5001': "Defense (HP)";
3
- readonly '5002': "Defense (AR)";
4
- readonly '5003': "Defense (MR)";
5
- readonly '5002f': "Flex (AR)";
6
- readonly '5003f': "Flex (MR)";
7
- readonly '5008f': "Flex (AF)";
8
- readonly '5005': "Offense (AS)";
9
- readonly '5007': "Offense (AH)";
10
- readonly '5008': "Offense (AF)";
11
- };
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatRunes = void 0;
4
- exports.StatRunes = {
5
- '5001': 'Defense (HP)',
6
- '5002': 'Defense (AR)',
7
- '5003': 'Defense (MR)',
8
- '5002f': 'Flex (AR)',
9
- '5003f': 'Flex (MR)',
10
- '5008f': 'Flex (AF)',
11
- '5005': 'Offense (AS)',
12
- '5007': 'Offense (AH)',
13
- '5008': 'Offense (AF)',
14
- };