lol-constants 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,13 +2,13 @@
|
|
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
|
5
|
+
const StatRuneIds_1 = require("../../Constants/Runes/StatRuneIds");
|
6
6
|
/**
|
7
7
|
* Returns the name of the Rune Tree that the Rune belongs to.
|
8
8
|
*/
|
9
9
|
function getRuneCategoryByRuneName(name) {
|
10
10
|
// Start with StatRunes because it is the tiniest of all
|
11
|
-
if (name in
|
11
|
+
if (name in StatRuneIds_1.StatRuneIds)
|
12
12
|
return 'StatRunes';
|
13
13
|
// Continue on with the rest of the runes
|
14
14
|
if (name in RuneSetsByRuneNames_1.PrimaryTrees.Precision)
|
package/package.json
CHANGED