lol-constants 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/Constants/Champion.d.ts +7574 -0
- package/assets/Constants/Champion.js +4 -0
- package/assets/Constants/Item.d.ts +9532 -0
- package/assets/Constants/Item.js +4 -0
- package/assets/Constants/RunesReforged.d.ts +512 -0
- package/assets/Constants/RunesReforged.js +4 -0
- package/assets/Constants/{StatRunesV2.d.ts → StatRunesByRow.d.ts} +1 -1
- package/assets/Constants/{StatRunesV2.js → StatRunesByRow.js} +2 -2
- package/assets/Constants/Summoner.d.ts +518 -0
- package/assets/Constants/Summoner.js +4 -0
- package/assets/index.d.ts +9 -4
- package/assets/index.js +22 -13
- package/assets/scripts/generate-all.js +0 -8
- package/assets/scripts/generate-categorized-item-keys.js +7 -10
- package/assets/scripts/generate-categorized-item-names.js +7 -10
- package/assets/scripts/generate-champion-ids-by-name.js +5 -8
- package/assets/scripts/generate-champion-ids.js +5 -8
- package/assets/scripts/generate-champion-keys.js +5 -8
- package/assets/scripts/generate-champion-names.js +5 -8
- package/assets/scripts/generate-item-keys.js +5 -8
- package/assets/scripts/generate-item-names.js +5 -8
- package/assets/scripts/generate-rune-ids.js +4 -7
- package/assets/scripts/generate-rune-names.js +4 -7
- package/assets/scripts/generate-rune-picking-relationships.js +2 -5
- package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -8
- package/assets/scripts/generate-rune-sets.js +5 -8
- package/assets/scripts/generate-spell-ids-by-name.js +5 -8
- package/assets/scripts/generate-spell-ids.js +5 -8
- package/assets/scripts/generate-spell-keys.js +5 -8
- package/assets/scripts/generate-spell-names.js +5 -8
- package/assets/scripts/generate-stat-rune-ids.js +2 -5
- package/assets/scripts/generate-stat-rune-names.js +2 -5
- package/assets/scripts/generate-tree-rune-ids.js +4 -7
- package/assets/scripts/generate-tree-rune-names.js +4 -7
- package/{dist → core}/Constants/Champions/ChampionIds.d.ts +0 -0
- package/{dist → core}/Constants/Champions/ChampionIds.js +0 -0
- package/{dist → core}/Constants/Champions/ChampionIdsByName.d.ts +0 -0
- package/{dist → core}/Constants/Champions/ChampionIdsByName.js +0 -0
- package/{dist → core}/Constants/Champions/ChampionKeys.d.ts +0 -0
- package/{dist → core}/Constants/Champions/ChampionKeys.js +0 -0
- package/{dist → core}/Constants/Champions/ChampionNames.d.ts +0 -0
- package/{dist → core}/Constants/Champions/ChampionNames.js +0 -0
- package/{dist → core}/Constants/DDPaths.d.ts +0 -0
- package/{dist → core}/Constants/DDPaths.js +0 -0
- package/{dist → core}/Constants/Items/BootsItemKeys.d.ts +0 -0
- package/{dist → core}/Constants/Items/BootsItemKeys.js +0 -0
- package/{dist → core}/Constants/Items/BootsItemNames.d.ts +0 -0
- package/{dist → core}/Constants/Items/BootsItemNames.js +0 -0
- package/{dist → core}/Constants/Items/ItemKeys.d.ts +0 -0
- package/{dist → core}/Constants/Items/ItemKeys.js +0 -0
- package/{dist → core}/Constants/Items/ItemNames.d.ts +0 -0
- package/{dist → core}/Constants/Items/ItemNames.js +0 -0
- package/{dist → core}/Constants/Items/ItemTypes.d.ts +0 -0
- package/{dist → core}/Constants/Items/ItemTypes.js +0 -0
- package/{dist → core}/Constants/Items/LegendaryItemKeys.d.ts +0 -0
- package/{dist → core}/Constants/Items/LegendaryItemKeys.js +0 -0
- package/{dist → core}/Constants/Items/LegendaryItemNames.d.ts +0 -0
- package/{dist → core}/Constants/Items/LegendaryItemNames.js +0 -0
- package/{dist → core}/Constants/Items/MythicItemKeys.d.ts +0 -0
- package/{dist → core}/Constants/Items/MythicItemKeys.js +0 -0
- package/{dist → core}/Constants/Items/MythicItemNames.d.ts +0 -0
- package/{dist → core}/Constants/Items/MythicItemNames.js +0 -0
- package/{dist → core}/Constants/Lanes.d.ts +0 -0
- package/{dist → core}/Constants/Lanes.js +0 -0
- package/{dist → core}/Constants/Levels.d.ts +0 -0
- package/{dist → core}/Constants/Levels.js +0 -0
- package/{dist → core}/Constants/Meta/ChampionRelationTypes.d.ts +0 -0
- package/{dist → core}/Constants/Meta/ChampionRelationTypes.js +0 -0
- package/{dist → core}/Constants/Positions.d.ts +0 -0
- package/{dist → core}/Constants/Positions.js +0 -0
- package/{dist → core}/Constants/Runes/RuneIconFileNames.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneIconFileNames.js +0 -0
- package/{dist → core}/Constants/Runes/RunePickingRelationships.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RunePickingRelationships.js +0 -0
- package/{dist → core}/Constants/Runes/RuneSets.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneSets.js +0 -0
- package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.js +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeIds.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeIds.js +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeNames.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeNames.js +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeTypes.d.ts +0 -0
- package/{dist → core}/Constants/Runes/RuneTreeTypes.js +0 -0
- package/{dist → core}/Constants/Runes/TreeRuneIds.d.ts +0 -0
- package/{dist → core}/Constants/Runes/TreeRuneIds.js +0 -0
- package/{dist → core}/Constants/Runes/TreeRuneNames.d.ts +0 -0
- package/{dist → core}/Constants/Runes/TreeRuneNames.js +0 -0
- package/{dist → core}/Constants/Skills.d.ts +0 -0
- package/{dist → core}/Constants/Skills.js +0 -0
- package/{dist → core}/Constants/Spells/SpellIds.d.ts +0 -0
- package/{dist → core}/Constants/Spells/SpellIds.js +0 -0
- package/{dist → core}/Constants/Spells/SpellIdsByName.d.ts +0 -0
- package/{dist → core}/Constants/Spells/SpellIdsByName.js +0 -0
- package/{dist → core}/Constants/Spells/SpellKeys.d.ts +0 -0
- package/{dist → core}/Constants/Spells/SpellKeys.js +0 -0
- package/{dist → core}/Constants/Spells/SpellNames.d.ts +0 -0
- package/{dist → core}/Constants/Spells/SpellNames.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionIdByKey.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionIdByKey.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionIdByName.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionKeyById.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionKeyById.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionKeyByName.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionKeyByName.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionNameById.js +0 -0
- package/{dist → core}/Helpers/Champions/getChampionNameByKey.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/getChampionNameByKey.js +0 -0
- package/{dist → core}/Helpers/Champions/isChampionId.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/isChampionId.js +0 -0
- package/{dist → core}/Helpers/Champions/isChampionKey.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/isChampionKey.js +0 -0
- package/{dist → core}/Helpers/Champions/isChampionName.d.ts +0 -0
- package/{dist → core}/Helpers/Champions/isChampionName.js +0 -0
- package/{dist → core}/Helpers/Icons/getPositionImageURL.d.ts +0 -0
- package/{dist → core}/Helpers/Icons/getPositionImageURL.js +0 -0
- package/{dist → core}/Helpers/Items/getItemKeyByName.d.ts +0 -0
- package/{dist → core}/Helpers/Items/getItemKeyByName.js +0 -0
- package/{dist → core}/Helpers/Items/getItemNameByKey.d.ts +0 -0
- package/{dist → core}/Helpers/Items/getItemNameByKey.js +0 -0
- package/{dist → core}/Helpers/Items/isBootsItemKey.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isBootsItemKey.js +0 -0
- package/{dist → core}/Helpers/Items/isBootsItemName.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isBootsItemName.js +0 -0
- package/{dist → core}/Helpers/Items/isItemKey.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isItemKey.js +0 -0
- package/{dist → core}/Helpers/Items/isItemName.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isItemName.js +0 -0
- package/{dist → core}/Helpers/Items/isItemType.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isItemType.js +0 -0
- package/{dist → core}/Helpers/Items/isLegendaryItemKey.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isLegendaryItemKey.js +0 -0
- package/{dist → core}/Helpers/Items/isLegendaryItemName.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isLegendaryItemName.js +0 -0
- package/{dist → core}/Helpers/Items/isMythicItemKey.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isMythicItemKey.js +0 -0
- package/{dist → core}/Helpers/Items/isMythicItemName.d.ts +0 -0
- package/{dist → core}/Helpers/Items/isMythicItemName.js +0 -0
- package/{dist → core}/Helpers/Meta/isChampionRelationType.d.ts +0 -0
- package/{dist → core}/Helpers/Meta/isChampionRelationType.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneCDNURL.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneCDNURL.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneIdByName.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneNameById.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.js +0 -0
- package/{dist → core}/Helpers/Runes/getRuneTreeNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getRuneTreeNameById.js +0 -0
- package/{dist → core}/Helpers/Runes/getStatRuneIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getStatRuneIdByName.js +0 -0
- package/{dist → core}/Helpers/Runes/getStatRuneNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getStatRuneNameById.js +0 -0
- package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.js +0 -0
- package/{dist → core}/Helpers/Runes/getTreeRuneNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/getTreeRuneNameById.js +0 -0
- package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isKeystoneRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isKeystoneRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isRuneName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isRuneName.js +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeId.js +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeName.js +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeType.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isRuneTreeType.js +0 -0
- package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isStatRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isStatRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isStatRuneName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isStatRuneName.js +0 -0
- package/{dist → core}/Helpers/Runes/isTreeRuneId.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isTreeRuneId.js +0 -0
- package/{dist → core}/Helpers/Runes/isTreeRuneName.d.ts +0 -0
- package/{dist → core}/Helpers/Runes/isTreeRuneName.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellIdByKey.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellIdByKey.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellIdByName.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellIdByName.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellKeyById.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellKeyById.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellKeyByName.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellKeyByName.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellNameById.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellNameById.js +0 -0
- package/{dist → core}/Helpers/Spells/getSpellNameByKey.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/getSpellNameByKey.js +0 -0
- package/{dist → core}/Helpers/Spells/isSpellId.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/isSpellId.js +0 -0
- package/{dist → core}/Helpers/Spells/isSpellKey.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/isSpellKey.js +0 -0
- package/{dist → core}/Helpers/Spells/isSpellName.d.ts +0 -0
- package/{dist → core}/Helpers/Spells/isSpellName.js +0 -0
- package/{dist → core}/Helpers/isLane.d.ts +0 -0
- package/{dist → core}/Helpers/isLane.js +0 -0
- package/{dist → core}/Helpers/isLevel.d.ts +0 -0
- package/{dist → core}/Helpers/isLevel.js +0 -0
- package/{dist → core}/Helpers/isPosition.d.ts +0 -0
- package/{dist → core}/Helpers/isPosition.js +0 -0
- package/{dist → core}/Helpers/isSkill.d.ts +0 -0
- package/{dist → core}/Helpers/isSkill.js +0 -0
- package/{dist → core}/index.d.ts +4 -0
- package/{dist → core}/index.js +11 -4
- package/{dist → core}/types/Meta.d.ts +0 -0
- package/{dist → core}/types/Meta.js +0 -0
- package/{dist → core}/types/index.d.ts +0 -0
- package/{dist → core}/types/index.js +0 -0
- package/package.json +6 -6
- package/assets/Constants/champion.json +0 -1
- package/assets/Constants/item.json +0 -1
- package/assets/Constants/runesReforged.json +0 -1
- package/assets/Constants/summoner.json +0 -1
package/assets/index.js
CHANGED
@@ -1,15 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
7
|
-
// #
|
8
|
-
var
|
9
|
-
Object.defineProperty(exports, "
|
10
|
-
var
|
11
|
-
Object.defineProperty(exports, "
|
12
|
-
var
|
13
|
-
Object.defineProperty(exports, "
|
14
|
-
var
|
15
|
-
Object.defineProperty(exports, "
|
3
|
+
exports.Summoner = exports.StatRunesByRow = exports.StatRunes = exports.RunesReforged = exports.MythicItemNames = exports.LegendaryItemNames = exports.Item = exports.Champion = exports.BootsItemNames = void 0;
|
4
|
+
// # Constants
|
5
|
+
var BootsItemNames_1 = require("./Constants/BootsItemNames");
|
6
|
+
Object.defineProperty(exports, "BootsItemNames", { enumerable: true, get: function () { return BootsItemNames_1.BootsItemNames; } });
|
7
|
+
var Champion_1 = require("./Constants/Champion");
|
8
|
+
Object.defineProperty(exports, "Champion", { enumerable: true, get: function () { return Champion_1.Champion; } });
|
9
|
+
var Item_1 = require("./Constants/Item");
|
10
|
+
Object.defineProperty(exports, "Item", { enumerable: true, get: function () { return Item_1.Item; } });
|
11
|
+
var LegendaryItemNames_1 = require("./Constants/LegendaryItemNames");
|
12
|
+
Object.defineProperty(exports, "LegendaryItemNames", { enumerable: true, get: function () { return LegendaryItemNames_1.LegendaryItemNames; } });
|
13
|
+
var MythicItemNames_1 = require("./Constants/MythicItemNames");
|
14
|
+
Object.defineProperty(exports, "MythicItemNames", { enumerable: true, get: function () { return MythicItemNames_1.MythicItemNames; } });
|
15
|
+
var RunesReforged_1 = require("./Constants/RunesReforged");
|
16
|
+
Object.defineProperty(exports, "RunesReforged", { enumerable: true, get: function () { return RunesReforged_1.RunesReforged; } });
|
17
|
+
var StatRunes_1 = require("./Constants/StatRunes");
|
18
|
+
Object.defineProperty(exports, "StatRunes", { enumerable: true, get: function () { return StatRunes_1.StatRunes; } });
|
19
|
+
var StatRunesByRow_1 = require("./Constants/StatRunesByRow");
|
20
|
+
Object.defineProperty(exports, "StatRunesByRow", { enumerable: true, get: function () { return StatRunesByRow_1.StatRunesByRow; } });
|
21
|
+
var Summoner_1 = require("./Constants/Summoner");
|
22
|
+
Object.defineProperty(exports, "Summoner", { enumerable: true, get: function () { return Summoner_1.Summoner; } });
|
23
|
+
// # scripts
|
24
|
+
// —
|
@@ -8,10 +8,6 @@ require("./generate-champion-keys");
|
|
8
8
|
require("./generate-champion-names");
|
9
9
|
require("./generate-item-keys");
|
10
10
|
require("./generate-item-names");
|
11
|
-
// @deprecated
|
12
|
-
// import './generate-rune-ids'
|
13
|
-
// @deprecated
|
14
|
-
// import './generate-rune-names'
|
15
11
|
require("./generate-rune-picking-relationships");
|
16
12
|
require("./generate-rune-sets-by-rune-names");
|
17
13
|
require("./generate-rune-sets");
|
@@ -19,9 +15,5 @@ require("./generate-spell-ids-by-name");
|
|
19
15
|
require("./generate-spell-ids");
|
20
16
|
require("./generate-spell-keys");
|
21
17
|
require("./generate-spell-names");
|
22
|
-
// @deprecated
|
23
|
-
// import './generate-stat-rune-ids'
|
24
|
-
// @deprecated
|
25
|
-
// import './generate-stat-rune-names'
|
26
18
|
require("./generate-tree-rune-ids");
|
27
19
|
require("./generate-tree-rune-names");
|
@@ -1,10 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
const BootsItemNames_1 = require("../Constants/BootsItemNames");
|
7
|
-
const
|
4
|
+
const Item_1 = require("../Constants/Item");
|
8
5
|
const LegendaryItemNames_1 = require("../Constants/LegendaryItemNames");
|
9
6
|
const MythicItemNames_1 = require("../Constants/MythicItemNames");
|
10
7
|
const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
@@ -17,8 +14,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
17
14
|
// Add Mythic Items
|
18
15
|
for (const mythicItemName of MythicItemNames_1.MythicItemNames) {
|
19
16
|
let itemKey;
|
20
|
-
for (itemKey in
|
21
|
-
const itemData =
|
17
|
+
for (itemKey in Item_1.Item.data) {
|
18
|
+
const itemData = Item_1.Item.data[itemKey];
|
22
19
|
if (itemData.name == mythicItemName) {
|
23
20
|
itemKeys.mythic[itemData.name] = itemKey;
|
24
21
|
}
|
@@ -27,8 +24,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
27
24
|
// Add Legendary Items
|
28
25
|
for (const itemName of LegendaryItemNames_1.LegendaryItemNames) {
|
29
26
|
let itemKey;
|
30
|
-
for (itemKey in
|
31
|
-
const itemData =
|
27
|
+
for (itemKey in Item_1.Item.data) {
|
28
|
+
const itemData = Item_1.Item.data[itemKey];
|
32
29
|
if (itemData.name == itemName) {
|
33
30
|
itemKeys.legendary[itemData.name] = itemKey;
|
34
31
|
}
|
@@ -37,8 +34,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
37
34
|
// Add Boots
|
38
35
|
for (const itemName of BootsItemNames_1.BootsItemNames) {
|
39
36
|
let itemKey;
|
40
|
-
for (itemKey in
|
41
|
-
const itemData =
|
37
|
+
for (itemKey in Item_1.Item.data) {
|
38
|
+
const itemData = Item_1.Item.data[itemKey];
|
42
39
|
if (itemData.name == itemName) {
|
43
40
|
itemKeys.boots[itemData.name] = itemKey;
|
44
41
|
}
|
@@ -1,10 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
3
|
const BootsItemNames_1 = require("../Constants/BootsItemNames");
|
7
|
-
const
|
4
|
+
const Item_1 = require("../Constants/Item");
|
8
5
|
const LegendaryItemNames_1 = require("../Constants/LegendaryItemNames");
|
9
6
|
const MythicItemNames_1 = require("../Constants/MythicItemNames");
|
10
7
|
const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
@@ -17,8 +14,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
17
14
|
// Add Mythic Items
|
18
15
|
for (const mythicItemName of MythicItemNames_1.MythicItemNames) {
|
19
16
|
let itemKey;
|
20
|
-
for (itemKey in
|
21
|
-
const itemData =
|
17
|
+
for (itemKey in Item_1.Item.data) {
|
18
|
+
const itemData = Item_1.Item.data[itemKey];
|
22
19
|
if (itemData.name == mythicItemName) {
|
23
20
|
itemNames.mythic[itemKey] = itemData.name;
|
24
21
|
}
|
@@ -27,8 +24,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
27
24
|
// Add Legendary Items
|
28
25
|
for (const itemName of LegendaryItemNames_1.LegendaryItemNames) {
|
29
26
|
let itemKey;
|
30
|
-
for (itemKey in
|
31
|
-
const itemData =
|
27
|
+
for (itemKey in Item_1.Item.data) {
|
28
|
+
const itemData = Item_1.Item.data[itemKey];
|
32
29
|
if (itemData.name == itemName) {
|
33
30
|
itemNames.legendary[itemKey] = itemData.name;
|
34
31
|
}
|
@@ -37,8 +34,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
37
34
|
// Add Boots
|
38
35
|
for (const itemName of BootsItemNames_1.BootsItemNames) {
|
39
36
|
let itemKey;
|
40
|
-
for (itemKey in
|
41
|
-
const itemData =
|
37
|
+
for (itemKey in Item_1.Item.data) {
|
38
|
+
const itemData = Item_1.Item.data[itemKey];
|
42
39
|
if (itemData.name == itemName) {
|
43
40
|
itemNames.boots[itemKey] = itemData.name;
|
44
41
|
}
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Champion_1 = require("../Constants/Champion");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const championIds = {};
|
11
8
|
// Extract all Champion IDs
|
12
9
|
let championId;
|
13
|
-
for (championId in
|
14
|
-
const championData =
|
10
|
+
for (championId in Champion_1.Champion.data) {
|
11
|
+
const championData = Champion_1.Champion.data[championId];
|
15
12
|
championIds[championData.name] = championId;
|
16
13
|
}
|
17
14
|
// Write to tmp file
|
18
15
|
const constName = 'ChampionIdsByName';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championIds));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Champion_1 = require("../Constants/Champion");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const championIds = {};
|
11
8
|
// Extract all Champion IDs
|
12
9
|
let championId;
|
13
|
-
for (championId in
|
14
|
-
const championData =
|
10
|
+
for (championId in Champion_1.Champion.data) {
|
11
|
+
const championData = Champion_1.Champion.data[championId];
|
15
12
|
championIds[championData.key] = championId;
|
16
13
|
}
|
17
14
|
// Write to tmp file
|
18
15
|
const constName = 'ChampionIds';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championIds));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Champion_1 = require("../Constants/Champion");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const championKeys = {};
|
11
8
|
// Add all champions' data to each corresponding key value
|
12
9
|
let championId;
|
13
|
-
for (championId in
|
14
|
-
const championData =
|
10
|
+
for (championId in Champion_1.Champion.data) {
|
11
|
+
const championData = Champion_1.Champion.data[championId];
|
15
12
|
championKeys[championId] = championData.key;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'ChampionKeys';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championKeys));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Champion_1 = require("../Constants/Champion");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const championNames = {};
|
11
8
|
// Extract all champion names from `champion.json`
|
12
9
|
let championId;
|
13
|
-
for (championId in
|
14
|
-
const championData =
|
10
|
+
for (championId in Champion_1.Champion.data) {
|
11
|
+
const championData = Champion_1.Champion.data[championId];
|
15
12
|
championNames[championData.key] = championData.name;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'ChampionNames';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championNames));
|
20
17
|
})();
|
@@ -1,21 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Item_1 = require("../Constants/Item");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const itemKeys = {};
|
11
8
|
// Add all items' data to each corresponding name value
|
12
9
|
let itemKey;
|
13
|
-
for (itemKey in
|
14
|
-
const itemData =
|
10
|
+
for (itemKey in Item_1.Item.data) {
|
11
|
+
const itemData = Item_1.Item.data[itemKey];
|
15
12
|
let htmlEscapedName = itemData.name.replace(/<[^>]*>?/gm, '');
|
16
13
|
itemKeys[htmlEscapedName] = itemKey;
|
17
14
|
}
|
18
15
|
// Write to file
|
19
16
|
const constName = 'ItemKeys';
|
20
|
-
fs_1.
|
17
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, itemKeys));
|
21
18
|
})();
|
@@ -1,21 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Item_1 = require("../Constants/Item");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const itemNames = {};
|
11
8
|
// Add all items' data to each corresponding name value
|
12
9
|
let itemKey;
|
13
|
-
for (itemKey in
|
14
|
-
const itemData =
|
10
|
+
for (itemKey in Item_1.Item.data) {
|
11
|
+
const itemData = Item_1.Item.data[itemKey];
|
15
12
|
let htmlEscapedName = itemData.name.replace(/<[^>]*>?/gm, '');
|
16
13
|
itemNames[itemKey] = htmlEscapedName;
|
17
14
|
}
|
18
15
|
// Write to file
|
19
16
|
const constName = 'ItemNames';
|
20
|
-
fs_1.
|
17
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, itemNames));
|
21
18
|
})();
|
@@ -1,16 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
8
5
|
const StatRunes_1 = require("../Constants/StatRunes");
|
9
6
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
10
7
|
(async () => {
|
11
8
|
const runeIds = {};
|
12
9
|
// Construct the new data and assign it to product object
|
13
|
-
for (const runeTree of
|
10
|
+
for (const runeTree of RunesReforged_1.RunesReforged) {
|
14
11
|
for (const { runes } of runeTree.slots) {
|
15
12
|
for (const rune of runes) {
|
16
13
|
runeIds[rune.name] = String(rune.id);
|
@@ -25,5 +22,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
|
|
25
22
|
}
|
26
23
|
// Write to file
|
27
24
|
const constName = 'RuneIds';
|
28
|
-
fs_1.
|
25
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
|
29
26
|
})();
|
@@ -1,16 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
8
5
|
const StatRunes_1 = require("../Constants/StatRunes");
|
9
6
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
10
7
|
(async () => {
|
11
8
|
const runeNames = {};
|
12
9
|
// Construct the new data and assign it to product object
|
13
|
-
for (const runeTree of
|
10
|
+
for (const runeTree of RunesReforged_1.RunesReforged) {
|
14
11
|
for (const { runes } of runeTree.slots) {
|
15
12
|
for (const rune of runes) {
|
16
13
|
runeNames[rune.id] = rune.name;
|
@@ -25,5 +22,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
|
|
25
22
|
}
|
26
23
|
// Write to file
|
27
24
|
const constName = 'RuneNames';
|
28
|
-
fs_1.
|
25
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeNames));
|
29
26
|
})();
|
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const
|
3
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
7
4
|
const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
8
5
|
(async () => {
|
9
6
|
const constant = 'RunePickingRelationships';
|
@@ -13,7 +10,7 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
13
10
|
// It means that they are dependent on that rune
|
14
11
|
// for picking purposes.
|
15
12
|
// Only one rune can be picked per h-set.
|
16
|
-
for (const category of
|
13
|
+
for (const category of RunesReforged_1.RunesReforged) {
|
17
14
|
for (const { runes, } of category.slots) {
|
18
15
|
for (const { id: baseRuneId, } of runes) {
|
19
16
|
// Assign each of the neighboring runes to this rune's r-ship array.
|
@@ -1,10 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const
|
7
|
-
const
|
3
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
4
|
+
const StatRunesByRow_1 = require("../Constants/StatRunesByRow");
|
8
5
|
const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
9
6
|
(async () => {
|
10
7
|
const constant = 'RuneSetsByRuneNames';
|
@@ -18,7 +15,7 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
18
15
|
};
|
19
16
|
const keystoneHSetIdx = 0;
|
20
17
|
let totalRuneAmt = 0;
|
21
|
-
for (const runeTree of
|
18
|
+
for (const runeTree of RunesReforged_1.RunesReforged) {
|
22
19
|
const runeTreeName = runeTree.name;
|
23
20
|
const horizontalSets = runeTree.slots;
|
24
21
|
let currentHSetIdx = 0;
|
@@ -51,8 +48,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
51
48
|
++currentHSetIdx;
|
52
49
|
}
|
53
50
|
}
|
54
|
-
for (let hSetIdx in
|
55
|
-
const hSetRunes =
|
51
|
+
for (let hSetIdx in StatRunesByRow_1.StatRunesByRow) {
|
52
|
+
const hSetRunes = StatRunesByRow_1.StatRunesByRow[hSetIdx];
|
56
53
|
for (let [statRuneId, statRuneName] of Object.entries(hSetRunes)) {
|
57
54
|
// Keep track
|
58
55
|
totalRuneAmt += 1;
|
@@ -1,10 +1,7 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const
|
7
|
-
const
|
3
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
4
|
+
const StatRunesByRow_1 = require("../Constants/StatRunesByRow");
|
8
5
|
const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
9
6
|
(async () => {
|
10
7
|
const constant = 'RuneSets';
|
@@ -18,7 +15,7 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
18
15
|
};
|
19
16
|
const keystoneHSetIdx = 0;
|
20
17
|
let totalRuneAmt = 0;
|
21
|
-
for (const runeTree of
|
18
|
+
for (const runeTree of RunesReforged_1.RunesReforged) {
|
22
19
|
const runeTreeName = runeTree.name;
|
23
20
|
const horizontalSets = runeTree.slots;
|
24
21
|
let currentHSetIdx = 0;
|
@@ -51,8 +48,8 @@ const writeToTmpFile_1 = require("./Helpers/writeToTmpFile");
|
|
51
48
|
++currentHSetIdx;
|
52
49
|
}
|
53
50
|
}
|
54
|
-
for (let hSetIdx in
|
55
|
-
const hSetRunes =
|
51
|
+
for (let hSetIdx in StatRunesByRow_1.StatRunesByRow) {
|
52
|
+
const hSetRunes = StatRunesByRow_1.StatRunesByRow[hSetIdx];
|
56
53
|
for (let [statRuneId, statRuneName] of Object.entries(hSetRunes)) {
|
57
54
|
// Keep track
|
58
55
|
totalRuneAmt += 1;
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Summoner_1 = require("../Constants/Summoner");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const spellIds = {};
|
11
8
|
// Add all summoners spell data to each corresponding key value
|
12
9
|
let spellId;
|
13
|
-
for (spellId in
|
14
|
-
const spellData =
|
10
|
+
for (spellId in Summoner_1.Summoner.data) {
|
11
|
+
const spellData = Summoner_1.Summoner.data[spellId];
|
15
12
|
spellIds[spellData.name] = spellId;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'SpellIdsByName';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellIds));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Summoner_1 = require("../Constants/Summoner");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const spellIds = {};
|
11
8
|
// Add all summoners spell data to each corresponding key value
|
12
9
|
let spellId;
|
13
|
-
for (spellId in
|
14
|
-
const spellData =
|
10
|
+
for (spellId in Summoner_1.Summoner.data) {
|
11
|
+
const spellData = Summoner_1.Summoner.data[spellId];
|
15
12
|
spellIds[spellData.key] = spellId;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'SpellIds';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellIds));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Summoner_1 = require("../Constants/Summoner");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const spellKeys = {};
|
11
8
|
// Add all summoners spell data to each corresponding key value
|
12
9
|
let spellId;
|
13
|
-
for (spellId in
|
14
|
-
const spellData =
|
10
|
+
for (spellId in Summoner_1.Summoner.data) {
|
11
|
+
const spellData = Summoner_1.Summoner.data[spellId];
|
15
12
|
spellKeys[spellId] = spellData.key;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'SpellKeys';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellKeys));
|
20
17
|
})();
|
@@ -1,20 +1,17 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const Summoner_1 = require("../Constants/Summoner");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const spellNames = {};
|
11
8
|
// Add all summoners spell data to each corresponding key value
|
12
9
|
let spellId;
|
13
|
-
for (spellId in
|
14
|
-
const spellData =
|
10
|
+
for (spellId in Summoner_1.Summoner.data) {
|
11
|
+
const spellData = Summoner_1.Summoner.data[spellId];
|
15
12
|
spellNames[spellData.key] = spellData.name;
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'SpellNames';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellNames));
|
20
17
|
})();
|
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
3
|
+
const fs_1 = require("fs");
|
7
4
|
const StatRunes_1 = require("../Constants/StatRunes");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
@@ -16,5 +13,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
|
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'StatRuneIds';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
|
20
17
|
})();
|
@@ -1,9 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
3
|
+
const fs_1 = require("fs");
|
7
4
|
const StatRunes_1 = require("../Constants/StatRunes");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
@@ -16,5 +13,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
|
|
16
13
|
}
|
17
14
|
// Write to file
|
18
15
|
const constName = 'StatRuneNames';
|
19
|
-
fs_1.
|
16
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
|
20
17
|
})();
|
@@ -1,15 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const fs_1 =
|
7
|
-
const
|
3
|
+
const fs_1 = require("fs");
|
4
|
+
const RunesReforged_1 = require("../Constants/RunesReforged");
|
8
5
|
const getExportStatement_1 = require("./Helpers/getExportStatement");
|
9
6
|
(async () => {
|
10
7
|
const runeIds = {};
|
11
8
|
// Construct the new data and assign it to product object
|
12
|
-
for (const runeTree of
|
9
|
+
for (const runeTree of RunesReforged_1.RunesReforged) {
|
13
10
|
for (const { runes } of runeTree.slots) {
|
14
11
|
for (const rune of runes) {
|
15
12
|
runeIds[rune.name] = String(rune.id);
|
@@ -18,5 +15,5 @@ const getExportStatement_1 = require("./Helpers/getExportStatement");
|
|
18
15
|
}
|
19
16
|
// Write to file
|
20
17
|
const constName = 'TreeRuneIds';
|
21
|
-
fs_1.
|
18
|
+
(0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
|
22
19
|
})();
|