lol-constants 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/StatRunes.d.ts +6 -6
- package/assets/StatRunes.js +6 -6
- package/assets/StatRunesV2.d.ts +17 -0
- package/assets/StatRunesV2.js +20 -0
- package/assets/scripts/Helpers/{enableSpreadValues.d.ts → enableEscapedValues.d.ts} +2 -2
- package/assets/scripts/Helpers/{enableSpreadValues.js → enableEscapedValues.js} +4 -4
- package/assets/scripts/Helpers/getExportStatement.d.ts +1 -1
- package/assets/scripts/Helpers/getExportStatement.js +4 -4
- package/assets/scripts/Helpers/writeToTmpFile.d.ts +1 -1
- package/assets/scripts/Helpers/writeToTmpFile.js +2 -2
- package/assets/scripts/generate-all.d.ts +0 -4
- package/assets/scripts/generate-all.js +8 -4
- package/assets/scripts/generate-rune-sets-by-rune-names.js +72 -47
- package/assets/scripts/generate-rune-sets.js +73 -81
- package/dist/Constants/Runes/RuneSets.d.ts +274 -10
- package/dist/Constants/Runes/RuneSets.js +9 -7
- package/dist/Constants/Runes/RuneSetsByRuneNames.d.ts +282 -18
- package/dist/Constants/Runes/RuneSetsByRuneNames.js +9 -7
- package/dist/Helpers/Runes/getRuneCategoryByRuneName.js +6 -7
- package/dist/Helpers/Runes/getRuneIdByName.js +2 -2
- package/dist/Helpers/Runes/getRuneNameById.js +2 -2
- package/dist/Helpers/Runes/getStatRuneIdByName.js +2 -2
- package/dist/Helpers/Runes/getStatRuneNameById.js +2 -2
- package/dist/Helpers/Runes/isDominationTreeRuneId.js +1 -1
- package/dist/Helpers/Runes/isInspirationTreeRuneId.js +1 -1
- package/dist/Helpers/Runes/isKeystoneRuneId.js +1 -1
- package/dist/Helpers/Runes/isPrecisionTreeRuneId.js +1 -1
- package/dist/Helpers/Runes/isResolveTreeRuneId.js +1 -1
- package/dist/Helpers/Runes/isRuneId.js +2 -2
- package/dist/Helpers/Runes/isRuneName.js +2 -2
- package/dist/Helpers/Runes/isSorceryTreeRuneId.js +1 -1
- package/dist/Helpers/Runes/isStatRuneId.js +2 -2
- package/dist/Helpers/Runes/isStatRuneName.js +2 -2
- package/dist/index.d.ts +2 -6
- package/dist/index.js +16 -10
- package/dist/types/index.d.ts +14 -18
- package/package.json +1 -1
- package/dist/Constants/Runes/RuneIds.d.ts +0 -74
- package/dist/Constants/Runes/RuneIds.js +0 -9
- package/dist/Constants/Runes/RuneNames.d.ts +0 -74
- package/dist/Constants/Runes/RuneNames.js +0 -9
- package/dist/Constants/Runes/StatRuneIds.d.ts +0 -11
- package/dist/Constants/Runes/StatRuneIds.js +0 -4
- package/dist/Constants/Runes/StatRuneNames.d.ts +0 -11
- package/dist/Constants/Runes/StatRuneNames.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const PrimaryRuneTrees: {
|
2
2
|
readonly Domination: {
|
3
3
|
readonly Electrocute: "8112";
|
4
4
|
readonly Predator: "8124";
|
@@ -73,7 +73,7 @@ export declare const PrimaryTrees: {
|
|
73
73
|
readonly "Gathering Storm": "8236";
|
74
74
|
};
|
75
75
|
};
|
76
|
-
export declare const
|
76
|
+
export declare const SecondaryRuneTrees: {
|
77
77
|
readonly Domination: {
|
78
78
|
readonly "Cheap Shot": "8126";
|
79
79
|
readonly "Taste of Blood": "8139";
|
@@ -131,7 +131,7 @@ export declare const SecondaryTrees: {
|
|
131
131
|
readonly "Gathering Storm": "8236";
|
132
132
|
};
|
133
133
|
};
|
134
|
-
export declare const
|
134
|
+
export declare const KeystoneIds: {
|
135
135
|
readonly Electrocute: "8112";
|
136
136
|
readonly Predator: "8124";
|
137
137
|
readonly "Dark Harvest": "8128";
|
@@ -150,27 +150,27 @@ export declare const Keystones: {
|
|
150
150
|
readonly "Arcane Comet": "8229";
|
151
151
|
readonly "Phase Rush": "8230";
|
152
152
|
};
|
153
|
-
export declare const
|
154
|
-
readonly "Defense (HP)": "5001";
|
155
|
-
readonly "Defense (AR)": "5002";
|
156
|
-
readonly "Defense (MR)": "5003";
|
153
|
+
export declare const StatRuneIds: {
|
157
154
|
readonly "Offense (AS)": "5005";
|
158
155
|
readonly "Offense (AH)": "5007";
|
159
156
|
readonly "Offense (AF)": "5008";
|
160
157
|
readonly "Flex (AR)": "5002f";
|
161
158
|
readonly "Flex (MR)": "5003f";
|
162
159
|
readonly "Flex (AF)": "5008f";
|
163
|
-
};
|
164
|
-
export declare const All: {
|
165
160
|
readonly "Defense (HP)": "5001";
|
166
161
|
readonly "Defense (AR)": "5002";
|
167
162
|
readonly "Defense (MR)": "5003";
|
163
|
+
};
|
164
|
+
export declare const RuneIds: {
|
168
165
|
readonly "Offense (AS)": "5005";
|
169
166
|
readonly "Offense (AH)": "5007";
|
170
167
|
readonly "Offense (AF)": "5008";
|
171
168
|
readonly "Flex (AR)": "5002f";
|
172
169
|
readonly "Flex (MR)": "5003f";
|
173
170
|
readonly "Flex (AF)": "5008f";
|
171
|
+
readonly "Defense (HP)": "5001";
|
172
|
+
readonly "Defense (AR)": "5002";
|
173
|
+
readonly "Defense (MR)": "5003";
|
174
174
|
readonly "Glacial Augment": "8351";
|
175
175
|
readonly "Unsealed Spellbook": "8360";
|
176
176
|
readonly "First Strike": "8369";
|
@@ -235,11 +235,143 @@ export declare const All: {
|
|
235
235
|
readonly "Cut Down": "8017";
|
236
236
|
readonly "Last Stand": "8299";
|
237
237
|
};
|
238
|
+
export declare const RuneTreeHSets: {
|
239
|
+
readonly Domination: {
|
240
|
+
readonly "0": {
|
241
|
+
readonly Electrocute: "8112";
|
242
|
+
readonly Predator: "8124";
|
243
|
+
readonly "Dark Harvest": "8128";
|
244
|
+
readonly "Hail of Blades": "9923";
|
245
|
+
};
|
246
|
+
readonly "1": {
|
247
|
+
readonly "Cheap Shot": "8126";
|
248
|
+
readonly "Taste of Blood": "8139";
|
249
|
+
readonly "Sudden Impact": "8143";
|
250
|
+
};
|
251
|
+
readonly "2": {
|
252
|
+
readonly "Zombie Ward": "8136";
|
253
|
+
readonly "Ghost Poro": "8120";
|
254
|
+
readonly "Eyeball Collection": "8138";
|
255
|
+
};
|
256
|
+
readonly "3": {
|
257
|
+
readonly "Treasure Hunter": "8135";
|
258
|
+
readonly "Ingenious Hunter": "8134";
|
259
|
+
readonly "Relentless Hunter": "8105";
|
260
|
+
readonly "Ultimate Hunter": "8106";
|
261
|
+
};
|
262
|
+
};
|
263
|
+
readonly Inspiration: {
|
264
|
+
readonly "0": {
|
265
|
+
readonly "Glacial Augment": "8351";
|
266
|
+
readonly "Unsealed Spellbook": "8360";
|
267
|
+
readonly "First Strike": "8369";
|
268
|
+
};
|
269
|
+
readonly "1": {
|
270
|
+
readonly "Hextech Flashtraption": "8306";
|
271
|
+
readonly "Magical Footwear": "8304";
|
272
|
+
readonly "Perfect Timing": "8313";
|
273
|
+
};
|
274
|
+
readonly "2": {
|
275
|
+
readonly "Future's Market": "8321";
|
276
|
+
readonly "Minion Dematerializer": "8316";
|
277
|
+
readonly "Biscuit Delivery": "8345";
|
278
|
+
};
|
279
|
+
readonly "3": {
|
280
|
+
readonly "Cosmic Insight": "8347";
|
281
|
+
readonly "Approach Velocity": "8410";
|
282
|
+
readonly "Time Warp Tonic": "8352";
|
283
|
+
};
|
284
|
+
};
|
285
|
+
readonly Precision: {
|
286
|
+
readonly "0": {
|
287
|
+
readonly "Press the Attack": "8005";
|
288
|
+
readonly "Lethal Tempo": "8008";
|
289
|
+
readonly "Fleet Footwork": "8021";
|
290
|
+
readonly Conqueror: "8010";
|
291
|
+
};
|
292
|
+
readonly "1": {
|
293
|
+
readonly Overheal: "9101";
|
294
|
+
readonly Triumph: "9111";
|
295
|
+
readonly "Presence of Mind": "8009";
|
296
|
+
};
|
297
|
+
readonly "2": {
|
298
|
+
readonly "Legend: Alacrity": "9104";
|
299
|
+
readonly "Legend: Tenacity": "9105";
|
300
|
+
readonly "Legend: Bloodline": "9103";
|
301
|
+
};
|
302
|
+
readonly "3": {
|
303
|
+
readonly "Coup de Grace": "8014";
|
304
|
+
readonly "Cut Down": "8017";
|
305
|
+
readonly "Last Stand": "8299";
|
306
|
+
};
|
307
|
+
};
|
308
|
+
readonly Resolve: {
|
309
|
+
readonly "0": {
|
310
|
+
readonly "Grasp of the Undying": "8437";
|
311
|
+
readonly Aftershock: "8439";
|
312
|
+
readonly Guardian: "8465";
|
313
|
+
};
|
314
|
+
readonly "1": {
|
315
|
+
readonly Demolish: "8446";
|
316
|
+
readonly "Font of Life": "8463";
|
317
|
+
readonly "Shield Bash": "8401";
|
318
|
+
};
|
319
|
+
readonly "2": {
|
320
|
+
readonly Conditioning: "8429";
|
321
|
+
readonly "Second Wind": "8444";
|
322
|
+
readonly "Bone Plating": "8473";
|
323
|
+
};
|
324
|
+
readonly "3": {
|
325
|
+
readonly Overgrowth: "8451";
|
326
|
+
readonly Revitalize: "8453";
|
327
|
+
readonly Unflinching: "8242";
|
328
|
+
};
|
329
|
+
};
|
330
|
+
readonly Sorcery: {
|
331
|
+
readonly "0": {
|
332
|
+
readonly "Summon Aery": "8214";
|
333
|
+
readonly "Arcane Comet": "8229";
|
334
|
+
readonly "Phase Rush": "8230";
|
335
|
+
};
|
336
|
+
readonly "1": {
|
337
|
+
readonly "Nullifying Orb": "8224";
|
338
|
+
readonly "Manaflow Band": "8226";
|
339
|
+
readonly "Nimbus Cloak": "8275";
|
340
|
+
};
|
341
|
+
readonly "2": {
|
342
|
+
readonly Transcendence: "8210";
|
343
|
+
readonly Celerity: "8234";
|
344
|
+
readonly "Absolute Focus": "8233";
|
345
|
+
};
|
346
|
+
readonly "3": {
|
347
|
+
readonly Scorch: "8237";
|
348
|
+
readonly Waterwalking: "8232";
|
349
|
+
readonly "Gathering Storm": "8236";
|
350
|
+
};
|
351
|
+
};
|
352
|
+
};
|
353
|
+
export declare const StatRuneHSets: {
|
354
|
+
readonly "0": {
|
355
|
+
readonly "Offense (AS)": "5005";
|
356
|
+
readonly "Offense (AH)": "5007";
|
357
|
+
readonly "Offense (AF)": "5008";
|
358
|
+
};
|
359
|
+
readonly "1": {
|
360
|
+
readonly "Flex (AR)": "5002f";
|
361
|
+
readonly "Flex (MR)": "5003f";
|
362
|
+
readonly "Flex (AF)": "5008f";
|
363
|
+
};
|
364
|
+
readonly "2": {
|
365
|
+
readonly "Defense (HP)": "5001";
|
366
|
+
readonly "Defense (AR)": "5002";
|
367
|
+
readonly "Defense (MR)": "5003";
|
368
|
+
};
|
369
|
+
};
|
238
370
|
/**
|
239
371
|
* Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of 72 runes in the game.
|
240
372
|
*/
|
241
373
|
export declare const RuneSetsByRuneNames: {
|
242
|
-
readonly
|
374
|
+
readonly PrimaryRuneTrees: {
|
243
375
|
readonly Domination: {
|
244
376
|
readonly Electrocute: "8112";
|
245
377
|
readonly Predator: "8124";
|
@@ -314,7 +446,7 @@ export declare const RuneSetsByRuneNames: {
|
|
314
446
|
readonly "Gathering Storm": "8236";
|
315
447
|
};
|
316
448
|
};
|
317
|
-
readonly
|
449
|
+
readonly SecondaryRuneTrees: {
|
318
450
|
readonly Domination: {
|
319
451
|
readonly "Cheap Shot": "8126";
|
320
452
|
readonly "Taste of Blood": "8139";
|
@@ -372,7 +504,7 @@ export declare const RuneSetsByRuneNames: {
|
|
372
504
|
readonly "Gathering Storm": "8236";
|
373
505
|
};
|
374
506
|
};
|
375
|
-
readonly
|
507
|
+
readonly KeystoneIds: {
|
376
508
|
readonly Electrocute: "8112";
|
377
509
|
readonly Predator: "8124";
|
378
510
|
readonly "Dark Harvest": "8128";
|
@@ -391,27 +523,27 @@ export declare const RuneSetsByRuneNames: {
|
|
391
523
|
readonly "Arcane Comet": "8229";
|
392
524
|
readonly "Phase Rush": "8230";
|
393
525
|
};
|
394
|
-
readonly
|
395
|
-
readonly "Defense (HP)": "5001";
|
396
|
-
readonly "Defense (AR)": "5002";
|
397
|
-
readonly "Defense (MR)": "5003";
|
526
|
+
readonly StatRuneIds: {
|
398
527
|
readonly "Offense (AS)": "5005";
|
399
528
|
readonly "Offense (AH)": "5007";
|
400
529
|
readonly "Offense (AF)": "5008";
|
401
530
|
readonly "Flex (AR)": "5002f";
|
402
531
|
readonly "Flex (MR)": "5003f";
|
403
532
|
readonly "Flex (AF)": "5008f";
|
404
|
-
};
|
405
|
-
readonly All: {
|
406
533
|
readonly "Defense (HP)": "5001";
|
407
534
|
readonly "Defense (AR)": "5002";
|
408
535
|
readonly "Defense (MR)": "5003";
|
536
|
+
};
|
537
|
+
readonly RuneIds: {
|
409
538
|
readonly "Offense (AS)": "5005";
|
410
539
|
readonly "Offense (AH)": "5007";
|
411
540
|
readonly "Offense (AF)": "5008";
|
412
541
|
readonly "Flex (AR)": "5002f";
|
413
542
|
readonly "Flex (MR)": "5003f";
|
414
543
|
readonly "Flex (AF)": "5008f";
|
544
|
+
readonly "Defense (HP)": "5001";
|
545
|
+
readonly "Defense (AR)": "5002";
|
546
|
+
readonly "Defense (MR)": "5003";
|
415
547
|
readonly "Glacial Augment": "8351";
|
416
548
|
readonly "Unsealed Spellbook": "8360";
|
417
549
|
readonly "First Strike": "8369";
|
@@ -476,4 +608,136 @@ export declare const RuneSetsByRuneNames: {
|
|
476
608
|
readonly "Cut Down": "8017";
|
477
609
|
readonly "Last Stand": "8299";
|
478
610
|
};
|
611
|
+
readonly RuneTreeHSets: {
|
612
|
+
readonly Domination: {
|
613
|
+
readonly "0": {
|
614
|
+
readonly Electrocute: "8112";
|
615
|
+
readonly Predator: "8124";
|
616
|
+
readonly "Dark Harvest": "8128";
|
617
|
+
readonly "Hail of Blades": "9923";
|
618
|
+
};
|
619
|
+
readonly "1": {
|
620
|
+
readonly "Cheap Shot": "8126";
|
621
|
+
readonly "Taste of Blood": "8139";
|
622
|
+
readonly "Sudden Impact": "8143";
|
623
|
+
};
|
624
|
+
readonly "2": {
|
625
|
+
readonly "Zombie Ward": "8136";
|
626
|
+
readonly "Ghost Poro": "8120";
|
627
|
+
readonly "Eyeball Collection": "8138";
|
628
|
+
};
|
629
|
+
readonly "3": {
|
630
|
+
readonly "Treasure Hunter": "8135";
|
631
|
+
readonly "Ingenious Hunter": "8134";
|
632
|
+
readonly "Relentless Hunter": "8105";
|
633
|
+
readonly "Ultimate Hunter": "8106";
|
634
|
+
};
|
635
|
+
};
|
636
|
+
readonly Inspiration: {
|
637
|
+
readonly "0": {
|
638
|
+
readonly "Glacial Augment": "8351";
|
639
|
+
readonly "Unsealed Spellbook": "8360";
|
640
|
+
readonly "First Strike": "8369";
|
641
|
+
};
|
642
|
+
readonly "1": {
|
643
|
+
readonly "Hextech Flashtraption": "8306";
|
644
|
+
readonly "Magical Footwear": "8304";
|
645
|
+
readonly "Perfect Timing": "8313";
|
646
|
+
};
|
647
|
+
readonly "2": {
|
648
|
+
readonly "Future's Market": "8321";
|
649
|
+
readonly "Minion Dematerializer": "8316";
|
650
|
+
readonly "Biscuit Delivery": "8345";
|
651
|
+
};
|
652
|
+
readonly "3": {
|
653
|
+
readonly "Cosmic Insight": "8347";
|
654
|
+
readonly "Approach Velocity": "8410";
|
655
|
+
readonly "Time Warp Tonic": "8352";
|
656
|
+
};
|
657
|
+
};
|
658
|
+
readonly Precision: {
|
659
|
+
readonly "0": {
|
660
|
+
readonly "Press the Attack": "8005";
|
661
|
+
readonly "Lethal Tempo": "8008";
|
662
|
+
readonly "Fleet Footwork": "8021";
|
663
|
+
readonly Conqueror: "8010";
|
664
|
+
};
|
665
|
+
readonly "1": {
|
666
|
+
readonly Overheal: "9101";
|
667
|
+
readonly Triumph: "9111";
|
668
|
+
readonly "Presence of Mind": "8009";
|
669
|
+
};
|
670
|
+
readonly "2": {
|
671
|
+
readonly "Legend: Alacrity": "9104";
|
672
|
+
readonly "Legend: Tenacity": "9105";
|
673
|
+
readonly "Legend: Bloodline": "9103";
|
674
|
+
};
|
675
|
+
readonly "3": {
|
676
|
+
readonly "Coup de Grace": "8014";
|
677
|
+
readonly "Cut Down": "8017";
|
678
|
+
readonly "Last Stand": "8299";
|
679
|
+
};
|
680
|
+
};
|
681
|
+
readonly Resolve: {
|
682
|
+
readonly "0": {
|
683
|
+
readonly "Grasp of the Undying": "8437";
|
684
|
+
readonly Aftershock: "8439";
|
685
|
+
readonly Guardian: "8465";
|
686
|
+
};
|
687
|
+
readonly "1": {
|
688
|
+
readonly Demolish: "8446";
|
689
|
+
readonly "Font of Life": "8463";
|
690
|
+
readonly "Shield Bash": "8401";
|
691
|
+
};
|
692
|
+
readonly "2": {
|
693
|
+
readonly Conditioning: "8429";
|
694
|
+
readonly "Second Wind": "8444";
|
695
|
+
readonly "Bone Plating": "8473";
|
696
|
+
};
|
697
|
+
readonly "3": {
|
698
|
+
readonly Overgrowth: "8451";
|
699
|
+
readonly Revitalize: "8453";
|
700
|
+
readonly Unflinching: "8242";
|
701
|
+
};
|
702
|
+
};
|
703
|
+
readonly Sorcery: {
|
704
|
+
readonly "0": {
|
705
|
+
readonly "Summon Aery": "8214";
|
706
|
+
readonly "Arcane Comet": "8229";
|
707
|
+
readonly "Phase Rush": "8230";
|
708
|
+
};
|
709
|
+
readonly "1": {
|
710
|
+
readonly "Nullifying Orb": "8224";
|
711
|
+
readonly "Manaflow Band": "8226";
|
712
|
+
readonly "Nimbus Cloak": "8275";
|
713
|
+
};
|
714
|
+
readonly "2": {
|
715
|
+
readonly Transcendence: "8210";
|
716
|
+
readonly Celerity: "8234";
|
717
|
+
readonly "Absolute Focus": "8233";
|
718
|
+
};
|
719
|
+
readonly "3": {
|
720
|
+
readonly Scorch: "8237";
|
721
|
+
readonly Waterwalking: "8232";
|
722
|
+
readonly "Gathering Storm": "8236";
|
723
|
+
};
|
724
|
+
};
|
725
|
+
};
|
726
|
+
readonly StatRuneHSets: {
|
727
|
+
readonly "0": {
|
728
|
+
readonly "Offense (AS)": "5005";
|
729
|
+
readonly "Offense (AH)": "5007";
|
730
|
+
readonly "Offense (AF)": "5008";
|
731
|
+
};
|
732
|
+
readonly "1": {
|
733
|
+
readonly "Flex (AR)": "5002f";
|
734
|
+
readonly "Flex (MR)": "5003f";
|
735
|
+
readonly "Flex (AF)": "5008f";
|
736
|
+
};
|
737
|
+
readonly "2": {
|
738
|
+
readonly "Defense (HP)": "5001";
|
739
|
+
readonly "Defense (AR)": "5002";
|
740
|
+
readonly "Defense (MR)": "5003";
|
741
|
+
};
|
742
|
+
};
|
479
743
|
};
|
@@ -1,12 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RuneSetsByRuneNames = exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.
|
7
|
-
exports.
|
8
|
-
exports.
|
3
|
+
exports.RuneSetsByRuneNames = exports.StatRuneHSets = exports.RuneTreeHSets = exports.RuneIds = exports.StatRuneIds = exports.KeystoneIds = exports.SecondaryRuneTrees = exports.PrimaryRuneTrees = void 0;
|
4
|
+
exports.PrimaryRuneTrees = { "Domination": { "Electrocute": "8112", "Predator": "8124", "Dark Harvest": "8128", "Hail of Blades": "9923", "Cheap Shot": "8126", "Taste of Blood": "8139", "Sudden Impact": "8143", "Zombie Ward": "8136", "Ghost Poro": "8120", "Eyeball Collection": "8138", "Treasure Hunter": "8135", "Ingenious Hunter": "8134", "Relentless Hunter": "8105", "Ultimate Hunter": "8106" }, "Inspiration": { "Glacial Augment": "8351", "Unsealed Spellbook": "8360", "First Strike": "8369", "Hextech Flashtraption": "8306", "Magical Footwear": "8304", "Perfect Timing": "8313", "Future's Market": "8321", "Minion Dematerializer": "8316", "Biscuit Delivery": "8345", "Cosmic Insight": "8347", "Approach Velocity": "8410", "Time Warp Tonic": "8352" }, "Precision": { "Press the Attack": "8005", "Lethal Tempo": "8008", "Fleet Footwork": "8021", "Conqueror": "8010", "Overheal": "9101", "Triumph": "9111", "Presence of Mind": "8009", "Legend: Alacrity": "9104", "Legend: Tenacity": "9105", "Legend: Bloodline": "9103", "Coup de Grace": "8014", "Cut Down": "8017", "Last Stand": "8299" }, "Resolve": { "Grasp of the Undying": "8437", "Aftershock": "8439", "Guardian": "8465", "Demolish": "8446", "Font of Life": "8463", "Shield Bash": "8401", "Conditioning": "8429", "Second Wind": "8444", "Bone Plating": "8473", "Overgrowth": "8451", "Revitalize": "8453", "Unflinching": "8242" }, "Sorcery": { "Summon Aery": "8214", "Arcane Comet": "8229", "Phase Rush": "8230", "Nullifying Orb": "8224", "Manaflow Band": "8226", "Nimbus Cloak": "8275", "Transcendence": "8210", "Celerity": "8234", "Absolute Focus": "8233", "Scorch": "8237", "Waterwalking": "8232", "Gathering Storm": "8236" } };
|
5
|
+
exports.SecondaryRuneTrees = { "Domination": { "Cheap Shot": "8126", "Taste of Blood": "8139", "Sudden Impact": "8143", "Zombie Ward": "8136", "Ghost Poro": "8120", "Eyeball Collection": "8138", "Treasure Hunter": "8135", "Ingenious Hunter": "8134", "Relentless Hunter": "8105", "Ultimate Hunter": "8106" }, "Inspiration": { "Hextech Flashtraption": "8306", "Magical Footwear": "8304", "Perfect Timing": "8313", "Future's Market": "8321", "Minion Dematerializer": "8316", "Biscuit Delivery": "8345", "Cosmic Insight": "8347", "Approach Velocity": "8410", "Time Warp Tonic": "8352" }, "Precision": { "Overheal": "9101", "Triumph": "9111", "Presence of Mind": "8009", "Legend: Alacrity": "9104", "Legend: Tenacity": "9105", "Legend: Bloodline": "9103", "Coup de Grace": "8014", "Cut Down": "8017", "Last Stand": "8299" }, "Resolve": { "Demolish": "8446", "Font of Life": "8463", "Shield Bash": "8401", "Conditioning": "8429", "Second Wind": "8444", "Bone Plating": "8473", "Overgrowth": "8451", "Revitalize": "8453", "Unflinching": "8242" }, "Sorcery": { "Nullifying Orb": "8224", "Manaflow Band": "8226", "Nimbus Cloak": "8275", "Transcendence": "8210", "Celerity": "8234", "Absolute Focus": "8233", "Scorch": "8237", "Waterwalking": "8232", "Gathering Storm": "8236" } };
|
6
|
+
exports.KeystoneIds = { "Electrocute": "8112", "Predator": "8124", "Dark Harvest": "8128", "Hail of Blades": "9923", "Glacial Augment": "8351", "Unsealed Spellbook": "8360", "First Strike": "8369", "Press the Attack": "8005", "Lethal Tempo": "8008", "Fleet Footwork": "8021", "Conqueror": "8010", "Grasp of the Undying": "8437", "Aftershock": "8439", "Guardian": "8465", "Summon Aery": "8214", "Arcane Comet": "8229", "Phase Rush": "8230" };
|
7
|
+
exports.StatRuneIds = { "Offense (AS)": "5005", "Offense (AH)": "5007", "Offense (AF)": "5008", "Flex (AR)": "5002f", "Flex (MR)": "5003f", "Flex (AF)": "5008f", "Defense (HP)": "5001", "Defense (AR)": "5002", "Defense (MR)": "5003" };
|
8
|
+
exports.RuneIds = { ...exports.PrimaryRuneTrees.Precision, ...exports.PrimaryRuneTrees.Domination, ...exports.PrimaryRuneTrees.Sorcery, ...exports.PrimaryRuneTrees.Resolve, ...exports.PrimaryRuneTrees.Inspiration, ...exports.StatRuneIds };
|
9
|
+
exports.RuneTreeHSets = { "Domination": { "0": { "Electrocute": "8112", "Predator": "8124", "Dark Harvest": "8128", "Hail of Blades": "9923" }, "1": { "Cheap Shot": "8126", "Taste of Blood": "8139", "Sudden Impact": "8143" }, "2": { "Zombie Ward": "8136", "Ghost Poro": "8120", "Eyeball Collection": "8138" }, "3": { "Treasure Hunter": "8135", "Ingenious Hunter": "8134", "Relentless Hunter": "8105", "Ultimate Hunter": "8106" } }, "Inspiration": { "0": { "Glacial Augment": "8351", "Unsealed Spellbook": "8360", "First Strike": "8369" }, "1": { "Hextech Flashtraption": "8306", "Magical Footwear": "8304", "Perfect Timing": "8313" }, "2": { "Future's Market": "8321", "Minion Dematerializer": "8316", "Biscuit Delivery": "8345" }, "3": { "Cosmic Insight": "8347", "Approach Velocity": "8410", "Time Warp Tonic": "8352" } }, "Precision": { "0": { "Press the Attack": "8005", "Lethal Tempo": "8008", "Fleet Footwork": "8021", "Conqueror": "8010" }, "1": { "Overheal": "9101", "Triumph": "9111", "Presence of Mind": "8009" }, "2": { "Legend: Alacrity": "9104", "Legend: Tenacity": "9105", "Legend: Bloodline": "9103" }, "3": { "Coup de Grace": "8014", "Cut Down": "8017", "Last Stand": "8299" } }, "Resolve": { "0": { "Grasp of the Undying": "8437", "Aftershock": "8439", "Guardian": "8465" }, "1": { "Demolish": "8446", "Font of Life": "8463", "Shield Bash": "8401" }, "2": { "Conditioning": "8429", "Second Wind": "8444", "Bone Plating": "8473" }, "3": { "Overgrowth": "8451", "Revitalize": "8453", "Unflinching": "8242" } }, "Sorcery": { "0": { "Summon Aery": "8214", "Arcane Comet": "8229", "Phase Rush": "8230" }, "1": { "Nullifying Orb": "8224", "Manaflow Band": "8226", "Nimbus Cloak": "8275" }, "2": { "Transcendence": "8210", "Celerity": "8234", "Absolute Focus": "8233" }, "3": { "Scorch": "8237", "Waterwalking": "8232", "Gathering Storm": "8236" } } };
|
10
|
+
exports.StatRuneHSets = { "0": { "Offense (AS)": "5005", "Offense (AH)": "5007", "Offense (AF)": "5008" }, "1": { "Flex (AR)": "5002f", "Flex (MR)": "5003f", "Flex (AF)": "5008f" }, "2": { "Defense (HP)": "5001", "Defense (AR)": "5002", "Defense (MR)": "5003" } };
|
9
11
|
/**
|
10
12
|
* Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of 72 runes in the game.
|
11
13
|
*/
|
12
|
-
exports.RuneSetsByRuneNames = {
|
14
|
+
exports.RuneSetsByRuneNames = { PrimaryRuneTrees: exports.PrimaryRuneTrees, SecondaryRuneTrees: exports.SecondaryRuneTrees, KeystoneIds: exports.KeystoneIds, StatRuneIds: exports.StatRuneIds, RuneIds: exports.RuneIds, RuneTreeHSets: exports.RuneTreeHSets, StatRuneHSets: exports.StatRuneHSets };
|
@@ -2,24 +2,23 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuneCategoryByRuneName = void 0;
|
4
4
|
const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
|
5
|
-
const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
|
6
5
|
/**
|
7
6
|
* Returns the name of the Rune Tree that the Rune belongs to.
|
8
7
|
*/
|
9
8
|
function getRuneCategoryByRuneName(name) {
|
10
9
|
// Start with StatRunes because it is the tiniest of all
|
11
|
-
if (name in
|
10
|
+
if (name in RuneSetsByRuneNames_1.StatRuneIds)
|
12
11
|
return 'StatRunes';
|
13
12
|
// Continue on with the rest of the runes
|
14
|
-
if (name in RuneSetsByRuneNames_1.
|
13
|
+
if (name in RuneSetsByRuneNames_1.PrimaryRuneTrees.Precision)
|
15
14
|
return 'Precision';
|
16
|
-
if (name in RuneSetsByRuneNames_1.
|
15
|
+
if (name in RuneSetsByRuneNames_1.PrimaryRuneTrees.Domination)
|
17
16
|
return 'Domination';
|
18
|
-
if (name in RuneSetsByRuneNames_1.
|
17
|
+
if (name in RuneSetsByRuneNames_1.PrimaryRuneTrees.Sorcery)
|
19
18
|
return 'Sorcery';
|
20
|
-
if (name in RuneSetsByRuneNames_1.
|
19
|
+
if (name in RuneSetsByRuneNames_1.PrimaryRuneTrees.Resolve)
|
21
20
|
return 'Resolve';
|
22
|
-
if (name in RuneSetsByRuneNames_1.
|
21
|
+
if (name in RuneSetsByRuneNames_1.PrimaryRuneTrees.Inspiration)
|
23
22
|
return 'Inspiration';
|
24
23
|
// Note: It should be impossible to reach code this far
|
25
24
|
// so long as constants are not missing any values,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuneIdByName = void 0;
|
4
|
-
const
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
|
5
5
|
function getRuneIdByName(name) {
|
6
|
-
return
|
6
|
+
return RuneSetsByRuneNames_1.RuneIds[name];
|
7
7
|
}
|
8
8
|
exports.getRuneIdByName = getRuneIdByName;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getRuneNameById = void 0;
|
4
|
-
const
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function getRuneNameById(id) {
|
6
|
-
return
|
6
|
+
return RuneSets_1.RuneNames[id];
|
7
7
|
}
|
8
8
|
exports.getRuneNameById = getRuneNameById;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getStatRuneIdByName = void 0;
|
4
|
-
const
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
|
5
5
|
function getStatRuneIdByName(name) {
|
6
|
-
return
|
6
|
+
return RuneSetsByRuneNames_1.StatRuneIds[name];
|
7
7
|
}
|
8
8
|
exports.getStatRuneIdByName = getStatRuneIdByName;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getStatRuneNameById = void 0;
|
4
|
-
const
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function getStatRuneNameById(id) {
|
6
|
-
return
|
6
|
+
return RuneSets_1.StatRuneNames[id];
|
7
7
|
}
|
8
8
|
exports.getStatRuneNameById = getStatRuneNameById;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isDominationTreeRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isDominationTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Domination;
|
7
7
|
}
|
8
8
|
exports.isDominationTreeRuneId = isDominationTreeRuneId;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isInspirationTreeRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isInspirationTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Inspiration;
|
7
7
|
}
|
8
8
|
exports.isInspirationTreeRuneId = isInspirationTreeRuneId;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isKeystoneRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isKeystoneRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.KeystoneNames;
|
7
7
|
}
|
8
8
|
exports.isKeystoneRuneId = isKeystoneRuneId;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isPrecisionTreeRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isPrecisionTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Precision;
|
7
7
|
}
|
8
8
|
exports.isPrecisionTreeRuneId = isPrecisionTreeRuneId;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isResolveTreeRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isResolveTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Resolve;
|
7
7
|
}
|
8
8
|
exports.isResolveTreeRuneId = isResolveTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneId = void 0;
|
4
|
-
const
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isRuneId(id) {
|
6
|
-
return id in
|
6
|
+
return id in RuneSets_1.RuneNames;
|
7
7
|
}
|
8
8
|
exports.isRuneId = isRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isRuneName = void 0;
|
4
|
-
const
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
|
5
5
|
function isRuneName(name) {
|
6
|
-
return name in
|
6
|
+
return name in RuneSetsByRuneNames_1.RuneIds;
|
7
7
|
}
|
8
8
|
exports.isRuneName = isRuneName;
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isSorceryTreeRuneId = void 0;
|
4
4
|
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isSorceryTreeRuneId(id) {
|
6
|
-
return id in RuneSets_1.
|
6
|
+
return id in RuneSets_1.PrimaryRuneTrees.Sorcery;
|
7
7
|
}
|
8
8
|
exports.isSorceryTreeRuneId = isSorceryTreeRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneId = void 0;
|
4
|
-
const
|
4
|
+
const RuneSets_1 = require("../../Constants/Runes/RuneSets");
|
5
5
|
function isStatRuneId(id) {
|
6
|
-
return id in
|
6
|
+
return id in RuneSets_1.StatRuneNames;
|
7
7
|
}
|
8
8
|
exports.isStatRuneId = isStatRuneId;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.isStatRuneName = void 0;
|
4
|
-
const
|
4
|
+
const RuneSetsByRuneNames_1 = require("../../Constants/Runes/RuneSetsByRuneNames");
|
5
5
|
function isStatRuneName(name) {
|
6
|
-
return name in
|
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';
|