lol-constants 1.10.1 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. package/assets/Constants/BootsItemNames.d.ts +1 -1
  2. package/assets/Constants/BootsItemNames.js +1 -1
  3. package/assets/Constants/Champion.d.ts +7621 -0
  4. package/assets/Constants/Champion.js +4 -0
  5. package/assets/Constants/Item.d.ts +10004 -0
  6. package/assets/Constants/Item.js +4 -0
  7. package/assets/Constants/LegendaryItemNames.d.ts +2 -2
  8. package/assets/Constants/LegendaryItemNames.js +3 -1
  9. package/assets/Constants/MythicItemNames.d.ts +2 -2
  10. package/assets/Constants/MythicItemNames.js +6 -3
  11. package/assets/Constants/RunesReforged.d.ts +512 -0
  12. package/assets/Constants/RunesReforged.js +4 -0
  13. package/assets/Constants/StatRunes.d.ts +1 -1
  14. package/assets/Constants/StatRunes.js +1 -1
  15. package/assets/Constants/{StatRunesV2.d.ts → StatRunesByRow.d.ts} +2 -2
  16. package/assets/Constants/{StatRunesV2.js → StatRunesByRow.js} +3 -3
  17. package/assets/Constants/Summoner.d.ts +518 -0
  18. package/assets/Constants/Summoner.js +4 -0
  19. package/assets/index.d.ts +9 -4
  20. package/assets/index.js +22 -13
  21. package/assets/scripts/generate-all.js +0 -8
  22. package/assets/scripts/generate-categorized-item-keys.js +7 -10
  23. package/assets/scripts/generate-categorized-item-names.js +7 -10
  24. package/assets/scripts/generate-champion-ids-by-name.js +5 -8
  25. package/assets/scripts/generate-champion-ids.js +5 -8
  26. package/assets/scripts/generate-champion-keys.js +5 -8
  27. package/assets/scripts/generate-champion-names.js +5 -8
  28. package/assets/scripts/generate-item-keys.js +5 -8
  29. package/assets/scripts/generate-item-names.js +5 -8
  30. package/assets/scripts/generate-rune-ids.js +4 -7
  31. package/assets/scripts/generate-rune-names.js +4 -7
  32. package/assets/scripts/generate-rune-picking-relationships.js +2 -5
  33. package/assets/scripts/generate-rune-sets-by-rune-names.js +5 -8
  34. package/assets/scripts/generate-rune-sets.js +5 -8
  35. package/assets/scripts/generate-spell-ids-by-name.js +5 -8
  36. package/assets/scripts/generate-spell-ids.js +5 -8
  37. package/assets/scripts/generate-spell-keys.js +5 -8
  38. package/assets/scripts/generate-spell-names.js +5 -8
  39. package/assets/scripts/generate-stat-rune-ids.js +2 -5
  40. package/assets/scripts/generate-stat-rune-names.js +2 -5
  41. package/assets/scripts/generate-tree-rune-ids.js +4 -7
  42. package/assets/scripts/generate-tree-rune-names.js +4 -7
  43. package/{dist → core}/Constants/Champions/ChampionIds.d.ts +1 -0
  44. package/{dist → core}/Constants/Champions/ChampionIds.js +1 -1
  45. package/{dist → core}/Constants/Champions/ChampionIdsByName.d.ts +1 -0
  46. package/core/Constants/Champions/ChampionIdsByName.js +4 -0
  47. package/{dist → core}/Constants/Champions/ChampionKeys.d.ts +1 -0
  48. package/core/Constants/Champions/ChampionKeys.js +4 -0
  49. package/{dist → core}/Constants/Champions/ChampionNames.d.ts +1 -0
  50. package/{dist → core}/Constants/Champions/ChampionNames.js +1 -1
  51. package/{dist → core}/Constants/DDPaths.d.ts +0 -0
  52. package/{dist → core}/Constants/DDPaths.js +2 -2
  53. package/{dist → core}/Constants/Items/BootsItemKeys.d.ts +0 -0
  54. package/{dist → core}/Constants/Items/BootsItemKeys.js +0 -0
  55. package/{dist → core}/Constants/Items/BootsItemNames.d.ts +0 -0
  56. package/{dist → core}/Constants/Items/BootsItemNames.js +0 -0
  57. package/{dist → core}/Constants/Items/ItemKeys.d.ts +17 -5
  58. package/core/Constants/Items/ItemKeys.js +4 -0
  59. package/{dist → core}/Constants/Items/ItemNames.d.ts +17 -4
  60. package/core/Constants/Items/ItemNames.js +4 -0
  61. package/{dist → core}/Constants/Items/ItemTypes.d.ts +0 -0
  62. package/{dist → core}/Constants/Items/ItemTypes.js +0 -0
  63. package/{dist → core}/Constants/Items/LegendaryItemKeys.d.ts +2 -0
  64. package/{dist → core}/Constants/Items/LegendaryItemKeys.js +1 -1
  65. package/{dist → core}/Constants/Items/LegendaryItemNames.d.ts +2 -0
  66. package/core/Constants/Items/LegendaryItemNames.js +4 -0
  67. package/{dist → core}/Constants/Items/MythicItemKeys.d.ts +5 -2
  68. package/core/Constants/Items/MythicItemKeys.js +4 -0
  69. package/{dist → core}/Constants/Items/MythicItemNames.d.ts +5 -2
  70. package/core/Constants/Items/MythicItemNames.js +4 -0
  71. package/{dist → core}/Constants/Lanes.d.ts +0 -0
  72. package/{dist → core}/Constants/Lanes.js +0 -0
  73. package/{dist → core}/Constants/Levels.d.ts +0 -0
  74. package/{dist → core}/Constants/Levels.js +0 -0
  75. package/{dist → core}/Constants/Meta/ChampionRelationTypes.d.ts +0 -0
  76. package/{dist → core}/Constants/Meta/ChampionRelationTypes.js +0 -0
  77. package/{dist → core}/Constants/Positions.d.ts +0 -0
  78. package/{dist → core}/Constants/Positions.js +0 -0
  79. package/{dist → core}/Constants/Runes/RuneIconFileNames.d.ts +0 -0
  80. package/{dist → core}/Constants/Runes/RuneIconFileNames.js +0 -0
  81. package/{dist → core}/Constants/Runes/RunePickingRelationships.d.ts +0 -0
  82. package/{dist → core}/Constants/Runes/RunePickingRelationships.js +0 -0
  83. package/{dist → core}/Constants/Runes/RuneSets.d.ts +0 -0
  84. package/{dist → core}/Constants/Runes/RuneSets.js +0 -0
  85. package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.d.ts +0 -0
  86. package/{dist → core}/Constants/Runes/RuneSetsByRuneNames.js +0 -0
  87. package/{dist → core}/Constants/Runes/RuneTreeIds.d.ts +0 -0
  88. package/{dist → core}/Constants/Runes/RuneTreeIds.js +0 -0
  89. package/{dist → core}/Constants/Runes/RuneTreeNames.d.ts +0 -0
  90. package/{dist → core}/Constants/Runes/RuneTreeNames.js +0 -0
  91. package/{dist → core}/Constants/Runes/RuneTreeTypes.d.ts +0 -0
  92. package/{dist → core}/Constants/Runes/RuneTreeTypes.js +0 -0
  93. package/{dist → core}/Constants/Runes/TreeRuneIds.d.ts +0 -0
  94. package/{dist → core}/Constants/Runes/TreeRuneIds.js +0 -0
  95. package/{dist → core}/Constants/Runes/TreeRuneNames.d.ts +0 -0
  96. package/{dist → core}/Constants/Runes/TreeRuneNames.js +0 -0
  97. package/{dist → core}/Constants/Skills.d.ts +0 -0
  98. package/{dist → core}/Constants/Skills.js +0 -0
  99. package/{dist → core}/Constants/Spells/SpellIds.d.ts +0 -0
  100. package/{dist → core}/Constants/Spells/SpellIds.js +0 -0
  101. package/{dist → core}/Constants/Spells/SpellIdsByName.d.ts +0 -0
  102. package/{dist → core}/Constants/Spells/SpellIdsByName.js +0 -0
  103. package/{dist → core}/Constants/Spells/SpellKeys.d.ts +0 -0
  104. package/{dist → core}/Constants/Spells/SpellKeys.js +0 -0
  105. package/{dist → core}/Constants/Spells/SpellNames.d.ts +0 -0
  106. package/{dist → core}/Constants/Spells/SpellNames.js +0 -0
  107. package/{dist → core}/Helpers/Champions/getChampionIdByKey.d.ts +0 -0
  108. package/{dist → core}/Helpers/Champions/getChampionIdByKey.js +0 -0
  109. package/{dist → core}/Helpers/Champions/getChampionIdByName.d.ts +0 -0
  110. package/{dist → core}/Helpers/Champions/getChampionIdByName.js +0 -0
  111. package/{dist → core}/Helpers/Champions/getChampionKeyById.d.ts +0 -0
  112. package/{dist → core}/Helpers/Champions/getChampionKeyById.js +0 -0
  113. package/{dist → core}/Helpers/Champions/getChampionKeyByName.d.ts +0 -0
  114. package/{dist → core}/Helpers/Champions/getChampionKeyByName.js +0 -0
  115. package/{dist → core}/Helpers/Champions/getChampionNameById.d.ts +0 -0
  116. package/{dist → core}/Helpers/Champions/getChampionNameById.js +0 -0
  117. package/{dist → core}/Helpers/Champions/getChampionNameByKey.d.ts +0 -0
  118. package/{dist → core}/Helpers/Champions/getChampionNameByKey.js +0 -0
  119. package/{dist → core}/Helpers/Champions/isChampionId.d.ts +0 -0
  120. package/{dist → core}/Helpers/Champions/isChampionId.js +0 -0
  121. package/{dist → core}/Helpers/Champions/isChampionKey.d.ts +0 -0
  122. package/{dist → core}/Helpers/Champions/isChampionKey.js +0 -0
  123. package/{dist → core}/Helpers/Champions/isChampionName.d.ts +0 -0
  124. package/{dist → core}/Helpers/Champions/isChampionName.js +0 -0
  125. package/{dist → core}/Helpers/Icons/getPositionImageURL.d.ts +0 -0
  126. package/{dist → core}/Helpers/Icons/getPositionImageURL.js +0 -0
  127. package/{dist → core}/Helpers/Items/getItemKeyByName.d.ts +0 -0
  128. package/{dist → core}/Helpers/Items/getItemKeyByName.js +0 -0
  129. package/{dist → core}/Helpers/Items/getItemNameByKey.d.ts +0 -0
  130. package/{dist → core}/Helpers/Items/getItemNameByKey.js +0 -0
  131. package/{dist → core}/Helpers/Items/isBootsItemKey.d.ts +0 -0
  132. package/{dist → core}/Helpers/Items/isBootsItemKey.js +0 -0
  133. package/{dist → core}/Helpers/Items/isBootsItemName.d.ts +0 -0
  134. package/{dist → core}/Helpers/Items/isBootsItemName.js +0 -0
  135. package/{dist → core}/Helpers/Items/isItemKey.d.ts +0 -0
  136. package/{dist → core}/Helpers/Items/isItemKey.js +0 -0
  137. package/{dist → core}/Helpers/Items/isItemName.d.ts +0 -0
  138. package/{dist → core}/Helpers/Items/isItemName.js +0 -0
  139. package/{dist → core}/Helpers/Items/isItemType.d.ts +0 -0
  140. package/{dist → core}/Helpers/Items/isItemType.js +0 -0
  141. package/{dist → core}/Helpers/Items/isLegendaryItemKey.d.ts +0 -0
  142. package/{dist → core}/Helpers/Items/isLegendaryItemKey.js +0 -0
  143. package/{dist → core}/Helpers/Items/isLegendaryItemName.d.ts +0 -0
  144. package/{dist → core}/Helpers/Items/isLegendaryItemName.js +0 -0
  145. package/{dist → core}/Helpers/Items/isMythicItemKey.d.ts +0 -0
  146. package/{dist → core}/Helpers/Items/isMythicItemKey.js +0 -0
  147. package/{dist → core}/Helpers/Items/isMythicItemName.d.ts +0 -0
  148. package/{dist → core}/Helpers/Items/isMythicItemName.js +0 -0
  149. package/{dist → core}/Helpers/Meta/isChampionRelationType.d.ts +0 -0
  150. package/{dist → core}/Helpers/Meta/isChampionRelationType.js +0 -0
  151. package/{dist → core}/Helpers/Runes/getRuneCDNURL.d.ts +0 -0
  152. package/{dist → core}/Helpers/Runes/getRuneCDNURL.js +0 -0
  153. package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.d.ts +0 -0
  154. package/{dist → core}/Helpers/Runes/getRuneCategoryByRuneName.js +0 -0
  155. package/{dist → core}/Helpers/Runes/getRuneIdByName.d.ts +0 -0
  156. package/{dist → core}/Helpers/Runes/getRuneIdByName.js +0 -0
  157. package/{dist → core}/Helpers/Runes/getRuneNameById.d.ts +0 -0
  158. package/{dist → core}/Helpers/Runes/getRuneNameById.js +0 -0
  159. package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.d.ts +0 -0
  160. package/{dist → core}/Helpers/Runes/getRuneTreeIdByName.js +0 -0
  161. package/{dist → core}/Helpers/Runes/getRuneTreeNameById.d.ts +0 -0
  162. package/{dist → core}/Helpers/Runes/getRuneTreeNameById.js +0 -0
  163. package/{dist → core}/Helpers/Runes/getStatRuneIdByName.d.ts +0 -0
  164. package/{dist → core}/Helpers/Runes/getStatRuneIdByName.js +0 -0
  165. package/{dist → core}/Helpers/Runes/getStatRuneNameById.d.ts +0 -0
  166. package/{dist → core}/Helpers/Runes/getStatRuneNameById.js +0 -0
  167. package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.d.ts +0 -0
  168. package/{dist → core}/Helpers/Runes/getTreeRuneIdByName.js +0 -0
  169. package/{dist → core}/Helpers/Runes/getTreeRuneNameById.d.ts +0 -0
  170. package/{dist → core}/Helpers/Runes/getTreeRuneNameById.js +0 -0
  171. package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.d.ts +0 -0
  172. package/{dist → core}/Helpers/Runes/isDominationTreeRuneId.js +0 -0
  173. package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.d.ts +0 -0
  174. package/{dist → core}/Helpers/Runes/isInspirationTreeRuneId.js +0 -0
  175. package/{dist → core}/Helpers/Runes/isKeystoneRuneId.d.ts +0 -0
  176. package/{dist → core}/Helpers/Runes/isKeystoneRuneId.js +0 -0
  177. package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.d.ts +0 -0
  178. package/{dist → core}/Helpers/Runes/isPrecisionTreeRuneId.js +0 -0
  179. package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.d.ts +0 -0
  180. package/{dist → core}/Helpers/Runes/isResolveTreeRuneId.js +0 -0
  181. package/{dist → core}/Helpers/Runes/isRuneId.d.ts +0 -0
  182. package/{dist → core}/Helpers/Runes/isRuneId.js +0 -0
  183. package/{dist → core}/Helpers/Runes/isRuneName.d.ts +0 -0
  184. package/{dist → core}/Helpers/Runes/isRuneName.js +0 -0
  185. package/{dist → core}/Helpers/Runes/isRuneTreeId.d.ts +0 -0
  186. package/{dist → core}/Helpers/Runes/isRuneTreeId.js +0 -0
  187. package/{dist → core}/Helpers/Runes/isRuneTreeName.d.ts +0 -0
  188. package/{dist → core}/Helpers/Runes/isRuneTreeName.js +0 -0
  189. package/{dist → core}/Helpers/Runes/isRuneTreeType.d.ts +0 -0
  190. package/{dist → core}/Helpers/Runes/isRuneTreeType.js +0 -0
  191. package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.d.ts +0 -0
  192. package/{dist → core}/Helpers/Runes/isSorceryTreeRuneId.js +0 -0
  193. package/{dist → core}/Helpers/Runes/isStatRuneId.d.ts +0 -0
  194. package/{dist → core}/Helpers/Runes/isStatRuneId.js +0 -0
  195. package/{dist → core}/Helpers/Runes/isStatRuneName.d.ts +0 -0
  196. package/{dist → core}/Helpers/Runes/isStatRuneName.js +0 -0
  197. package/{dist → core}/Helpers/Runes/isTreeRuneId.d.ts +0 -0
  198. package/{dist → core}/Helpers/Runes/isTreeRuneId.js +0 -0
  199. package/{dist → core}/Helpers/Runes/isTreeRuneName.d.ts +0 -0
  200. package/{dist → core}/Helpers/Runes/isTreeRuneName.js +0 -0
  201. package/{dist → core}/Helpers/Spells/getSpellIdByKey.d.ts +0 -0
  202. package/{dist → core}/Helpers/Spells/getSpellIdByKey.js +0 -0
  203. package/{dist → core}/Helpers/Spells/getSpellIdByName.d.ts +0 -0
  204. package/{dist → core}/Helpers/Spells/getSpellIdByName.js +0 -0
  205. package/{dist → core}/Helpers/Spells/getSpellKeyById.d.ts +0 -0
  206. package/{dist → core}/Helpers/Spells/getSpellKeyById.js +0 -0
  207. package/{dist → core}/Helpers/Spells/getSpellKeyByName.d.ts +0 -0
  208. package/{dist → core}/Helpers/Spells/getSpellKeyByName.js +0 -0
  209. package/{dist → core}/Helpers/Spells/getSpellNameById.d.ts +0 -0
  210. package/{dist → core}/Helpers/Spells/getSpellNameById.js +0 -0
  211. package/{dist → core}/Helpers/Spells/getSpellNameByKey.d.ts +0 -0
  212. package/{dist → core}/Helpers/Spells/getSpellNameByKey.js +0 -0
  213. package/{dist → core}/Helpers/Spells/isSpellId.d.ts +0 -0
  214. package/{dist → core}/Helpers/Spells/isSpellId.js +0 -0
  215. package/{dist → core}/Helpers/Spells/isSpellKey.d.ts +0 -0
  216. package/{dist → core}/Helpers/Spells/isSpellKey.js +0 -0
  217. package/{dist → core}/Helpers/Spells/isSpellName.d.ts +0 -0
  218. package/{dist → core}/Helpers/Spells/isSpellName.js +0 -0
  219. package/{dist → core}/Helpers/isLane.d.ts +0 -0
  220. package/{dist → core}/Helpers/isLane.js +0 -0
  221. package/{dist → core}/Helpers/isLevel.d.ts +0 -0
  222. package/{dist → core}/Helpers/isLevel.js +0 -0
  223. package/{dist → core}/Helpers/isPosition.d.ts +0 -0
  224. package/{dist → core}/Helpers/isPosition.js +0 -0
  225. package/{dist → core}/Helpers/isSkill.d.ts +0 -0
  226. package/{dist → core}/Helpers/isSkill.js +0 -0
  227. package/{dist → core}/index.d.ts +0 -0
  228. package/{dist → core}/index.js +0 -2
  229. package/{dist → core}/types/Meta.d.ts +0 -0
  230. package/{dist → core}/types/Meta.js +0 -0
  231. package/{dist → core}/types/index.d.ts +0 -0
  232. package/{dist → core}/types/index.js +0 -0
  233. package/package.json +6 -6
  234. package/assets/Constants/champion.json +0 -1
  235. package/assets/Constants/item.json +0 -1
  236. package/assets/Constants/runesReforged.json +0 -1
  237. package/assets/Constants/summoner.json +0 -1
  238. package/dist/Constants/Champions/ChampionIdsByName.js +0 -4
  239. package/dist/Constants/Champions/ChampionKeys.js +0 -4
  240. package/dist/Constants/Items/ItemKeys.js +0 -4
  241. package/dist/Constants/Items/ItemNames.js +0 -4
  242. package/dist/Constants/Items/LegendaryItemNames.js +0 -4
  243. package/dist/Constants/Items/MythicItemKeys.js +0 -4
  244. package/dist/Constants/Items/MythicItemNames.js +0 -4
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.summoner = exports.runesReforged = exports.item = exports.champion = void 0;
7
- // #
8
- var champion_json_1 = require("./Constants/champion.json");
9
- Object.defineProperty(exports, "champion", { enumerable: true, get: function () { return __importDefault(champion_json_1).default; } });
10
- var item_json_1 = require("./Constants/item.json");
11
- Object.defineProperty(exports, "item", { enumerable: true, get: function () { return __importDefault(item_json_1).default; } });
12
- var runesReforged_json_1 = require("./Constants/runesReforged.json");
13
- Object.defineProperty(exports, "runesReforged", { enumerable: true, get: function () { return __importDefault(runesReforged_json_1).default; } });
14
- var summoner_json_1 = require("./Constants/summoner.json");
15
- Object.defineProperty(exports, "summoner", { enumerable: true, get: function () { return __importDefault(summoner_json_1).default; } });
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 item_json_1 = __importDefault(require("../Constants/item.json"));
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 item_json_1.default.data) {
21
- const itemData = item_json_1.default.data[itemKey];
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 item_json_1.default.data) {
31
- const itemData = item_json_1.default.data[itemKey];
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 item_json_1.default.data) {
41
- const itemData = item_json_1.default.data[itemKey];
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 item_json_1 = __importDefault(require("../Constants/item.json"));
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 item_json_1.default.data) {
21
- const itemData = item_json_1.default.data[itemKey];
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 item_json_1.default.data) {
31
- const itemData = item_json_1.default.data[itemKey];
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 item_json_1.default.data) {
41
- const itemData = item_json_1.default.data[itemKey];
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 = __importDefault(require("fs"));
7
- const champion_json_1 = __importDefault(require("../Constants/champion.json"));
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 champion_json_1.default.data) {
14
- const championData = champion_json_1.default.data[championId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championIds));
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 = __importDefault(require("fs"));
7
- const champion_json_1 = __importDefault(require("../Constants/champion.json"));
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 champion_json_1.default.data) {
14
- const championData = champion_json_1.default.data[championId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championIds));
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 = __importDefault(require("fs"));
7
- const champion_json_1 = __importDefault(require("../Constants/champion.json"));
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 champion_json_1.default.data) {
14
- const championData = champion_json_1.default.data[championId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championKeys));
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 = __importDefault(require("fs"));
7
- const champion_json_1 = __importDefault(require("../Constants/champion.json"));
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 champion_json_1.default.data) {
14
- const championData = champion_json_1.default.data[championId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, championNames));
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 = __importDefault(require("fs"));
7
- const item_json_1 = __importDefault(require("../Constants/item.json"));
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 item_json_1.default.data) {
14
- const itemData = item_json_1.default.data[itemKey];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, itemKeys));
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 = __importDefault(require("fs"));
7
- const item_json_1 = __importDefault(require("../Constants/item.json"));
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 item_json_1.default.data) {
14
- const itemData = item_json_1.default.data[itemKey];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, itemNames));
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 = __importDefault(require("fs"));
7
- const runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
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 runesReforged_json_1.default) {
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
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 = __importDefault(require("fs"));
7
- const runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
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 runesReforged_json_1.default) {
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeNames));
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 runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
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 runesReforged_json_1.default) {
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 runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
7
- const StatRunesV2_1 = require("../Constants/StatRunesV2");
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 runesReforged_json_1.default) {
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 StatRunesV2_1.StatRunesV2) {
55
- const hSetRunes = StatRunesV2_1.StatRunesV2[hSetIdx];
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 runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
7
- const StatRunesV2_1 = require("../Constants/StatRunesV2");
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 runesReforged_json_1.default) {
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 StatRunesV2_1.StatRunesV2) {
55
- const hSetRunes = StatRunesV2_1.StatRunesV2[hSetIdx];
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 = __importDefault(require("fs"));
7
- const summoner_json_1 = __importDefault(require("../Constants/summoner.json"));
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 summoner_json_1.default.data) {
14
- const spellData = summoner_json_1.default.data[spellId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellIds));
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 = __importDefault(require("fs"));
7
- const summoner_json_1 = __importDefault(require("../Constants/summoner.json"));
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 summoner_json_1.default.data) {
14
- const spellData = summoner_json_1.default.data[spellId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellIds));
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 = __importDefault(require("fs"));
7
- const summoner_json_1 = __importDefault(require("../Constants/summoner.json"));
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 summoner_json_1.default.data) {
14
- const spellData = summoner_json_1.default.data[spellId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellKeys));
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 = __importDefault(require("fs"));
7
- const summoner_json_1 = __importDefault(require("../Constants/summoner.json"));
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 summoner_json_1.default.data) {
14
- const spellData = summoner_json_1.default.data[spellId];
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, spellNames));
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 = __importDefault(require("fs"));
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
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 = __importDefault(require("fs"));
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
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 = __importDefault(require("fs"));
7
- const runesReforged_json_1 = __importDefault(require("../Constants/runesReforged.json"));
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 runesReforged_json_1.default) {
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.default.writeFileSync(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
18
+ (0, fs_1.writeFileSync)(`tmp/${constName}.ts`, (0, getExportStatement_1.getExportStatement)(constName, runeIds));
22
19
  })();