lol-constants 2.25.0 → 3.0.0-rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (427) hide show
  1. package/README.md +130 -28
  2. package/dist/Locale.d.ts +2 -0
  3. package/dist/Locale.js +1 -0
  4. package/dist/Patch.d.ts +3 -0
  5. package/dist/Patch.js +3 -0
  6. package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
  7. package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
  8. package/dist/constants/events.d.ts +49 -0
  9. package/dist/constants/events.js +55 -0
  10. package/dist/constants/history.d.ts +26 -0
  11. package/dist/constants/history.js +29 -0
  12. package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
  13. package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
  14. package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
  15. package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
  16. package/dist/constants/participants.d.ts +38 -0
  17. package/dist/constants/participants.js +43 -0
  18. package/dist/enums/ItemSrTypes.d.ts +11 -0
  19. package/dist/enums/ItemSrTypes.js +10 -0
  20. package/dist/enums/StatRuneSlots.d.ts +6 -0
  21. package/dist/enums/StatRuneSlots.js +5 -0
  22. package/dist/helpers/champion.d.ts +678 -0
  23. package/dist/helpers/champion.js +18 -0
  24. package/dist/helpers/item.d.ts +39 -0
  25. package/dist/helpers/item.js +113 -0
  26. package/dist/helpers/riotId.d.ts +16 -0
  27. package/dist/helpers/riotId.js +33 -0
  28. package/dist/helpers/rune.d.ts +36 -0
  29. package/dist/helpers/rune.js +70 -0
  30. package/dist/helpers/spell.d.ts +6 -0
  31. package/dist/helpers/spell.js +18 -0
  32. package/dist/helpers/type.d.ts +3 -0
  33. package/dist/index.d.ts +30 -0
  34. package/dist/index.js +27 -0
  35. package/dist/lol.d.ts +4029 -0
  36. package/dist/lol.js +182 -0
  37. package/dist/objects/Maps.d.ts +113 -0
  38. package/dist/objects/Maps.js +69 -0
  39. package/dist/objects/Queues.d.ts +192 -0
  40. package/dist/objects/Queues.js +71 -0
  41. package/dist/objects/Regions.d.ts +132 -0
  42. package/dist/objects/Regions.js +55 -0
  43. package/dist/objects/generated/Champions.d.ts +1858 -0
  44. package/dist/objects/generated/Champions.js +4 -0
  45. package/dist/objects/generated/Items.d.ts +5108 -0
  46. package/dist/objects/generated/Items.js +4 -0
  47. package/dist/objects/generated/Runes.d.ts +1477 -0
  48. package/dist/objects/generated/Runes.js +13 -0
  49. package/dist/objects/generated/Spells.d.ts +208 -0
  50. package/dist/objects/generated/Spells.js +4 -0
  51. package/package.json +17 -15
  52. package/assets/constants/BootsItemNames.d.ts +0 -1
  53. package/assets/constants/BootsItemNames.js +0 -13
  54. package/assets/constants/Champion.d.ts +0 -7903
  55. package/assets/constants/Champion.js +0 -1
  56. package/assets/constants/Item.d.ts +0 -20779
  57. package/assets/constants/Item.js +0 -1
  58. package/assets/constants/LegendaryItemNames.d.ts +0 -4
  59. package/assets/constants/LegendaryItemNames.js +0 -125
  60. package/assets/constants/RunesReforged.d.ts +0 -491
  61. package/assets/constants/RunesReforged.js +0 -1
  62. package/assets/constants/StatRunes.d.ts +0 -28
  63. package/assets/constants/StatRunes.js +0 -11
  64. package/assets/constants/StatRunesByRow.d.ts +0 -17
  65. package/assets/constants/StatRunesByRow.js +0 -17
  66. package/assets/constants/Summoner.d.ts +0 -582
  67. package/assets/constants/Summoner.js +0 -1
  68. package/assets/index.d.ts +0 -4
  69. package/assets/index.js +0 -11
  70. package/assets/scripts/asset-scripts/champion.js +0 -9
  71. package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
  72. package/assets/scripts/asset-scripts/generate-all.js +0 -4
  73. package/assets/scripts/asset-scripts/item.d.ts +0 -1
  74. package/assets/scripts/asset-scripts/item.js +0 -9
  75. package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
  76. package/assets/scripts/asset-scripts/runes-reforged.js +0 -9
  77. package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
  78. package/assets/scripts/asset-scripts/summoner.js +0 -9
  79. package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
  80. package/assets/scripts/constants/RuneIdComment.js +0 -24
  81. package/assets/scripts/generate-all.d.ts +0 -23
  82. package/assets/scripts/generate-all.js +0 -27
  83. package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
  84. package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
  85. package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
  86. package/assets/scripts/generate-categorized-item-keys.js +0 -59
  87. package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
  88. package/assets/scripts/generate-categorized-item-names.js +0 -56
  89. package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
  90. package/assets/scripts/generate-champion-ids-by-name.js +0 -17
  91. package/assets/scripts/generate-champion-ids.d.ts +0 -1
  92. package/assets/scripts/generate-champion-ids.js +0 -18
  93. package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
  94. package/assets/scripts/generate-champion-keys-num.js +0 -20
  95. package/assets/scripts/generate-champion-keys.d.ts +0 -1
  96. package/assets/scripts/generate-champion-keys.js +0 -18
  97. package/assets/scripts/generate-champion-names.d.ts +0 -1
  98. package/assets/scripts/generate-champion-names.js +0 -18
  99. package/assets/scripts/generate-item-keys-num.d.ts +0 -1
  100. package/assets/scripts/generate-item-keys-num.js +0 -24
  101. package/assets/scripts/generate-item-keys.d.ts +0 -1
  102. package/assets/scripts/generate-item-keys.js +0 -22
  103. package/assets/scripts/generate-item-names.d.ts +0 -1
  104. package/assets/scripts/generate-item-names.js +0 -22
  105. package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
  106. package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
  107. package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
  108. package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
  109. package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
  110. package/assets/scripts/generate-non-stat-rune-names.js +0 -20
  111. package/assets/scripts/generate-rune-ids.d.ts +0 -1
  112. package/assets/scripts/generate-rune-ids.js +0 -27
  113. package/assets/scripts/generate-rune-names.d.ts +0 -1
  114. package/assets/scripts/generate-rune-names.js +0 -25
  115. package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
  116. package/assets/scripts/generate-rune-picking-relationships.js +0 -52
  117. package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
  118. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
  119. package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
  120. package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
  121. package/assets/scripts/generate-rune-sets.d.ts +0 -1
  122. package/assets/scripts/generate-rune-sets.js +0 -116
  123. package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
  124. package/assets/scripts/generate-spell-ids-by-name.js +0 -17
  125. package/assets/scripts/generate-spell-ids.d.ts +0 -1
  126. package/assets/scripts/generate-spell-ids.js +0 -18
  127. package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
  128. package/assets/scripts/generate-spell-keys-num.js +0 -20
  129. package/assets/scripts/generate-spell-keys.d.ts +0 -1
  130. package/assets/scripts/generate-spell-keys.js +0 -18
  131. package/assets/scripts/generate-spell-names.d.ts +0 -1
  132. package/assets/scripts/generate-spell-names.js +0 -18
  133. package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
  134. package/assets/scripts/generate-stat-rune-ids.js +0 -18
  135. package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
  136. package/assets/scripts/generate-stat-rune-names.js +0 -16
  137. package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
  138. package/assets/scripts/helpers/enableEscapedValues.js +0 -34
  139. package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
  140. package/assets/scripts/helpers/generateIndexFile.js +0 -3
  141. package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
  142. package/assets/scripts/helpers/getExportStatement.js +0 -37
  143. package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
  144. package/assets/scripts/helpers/getFmtdComment.js +0 -11
  145. package/assets/scripts/helpers/validateNumber.d.ts +0 -1
  146. package/assets/scripts/helpers/validateNumber.js +0 -6
  147. package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
  148. package/assets/scripts/helpers/writeToTmpFile.js +0 -18
  149. package/assets/scripts/print-file-names.d.ts +0 -1
  150. package/assets/scripts/print-file-names.js +0 -89
  151. package/core/constants/Abilities.d.ts +0 -17
  152. package/core/constants/Abilities.js +0 -19
  153. package/core/constants/BuildingTypes.d.ts +0 -6
  154. package/core/constants/BuildingTypes.js +0 -7
  155. package/core/constants/Champions/ChampionIds.d.ts +0 -171
  156. package/core/constants/Champions/ChampionIds.js +0 -1
  157. package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
  158. package/core/constants/Champions/ChampionIdsByName.js +0 -1
  159. package/core/constants/Champions/ChampionKeys.d.ts +0 -171
  160. package/core/constants/Champions/ChampionKeys.js +0 -1
  161. package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
  162. package/core/constants/Champions/ChampionKeysNum.js +0 -1
  163. package/core/constants/Champions/ChampionNames.d.ts +0 -171
  164. package/core/constants/Champions/ChampionNames.js +0 -1
  165. package/core/constants/Continents.d.ts +0 -8
  166. package/core/constants/Continents.js +0 -9
  167. package/core/constants/DataDragonUrls.d.ts +0 -52
  168. package/core/constants/DataDragonUrls.js +0 -56
  169. package/core/constants/DragonTypes.d.ts +0 -11
  170. package/core/constants/DragonTypes.js +0 -12
  171. package/core/constants/GameModes.d.ts +0 -12
  172. package/core/constants/GameModes.js +0 -13
  173. package/core/constants/GameTypes.d.ts +0 -7
  174. package/core/constants/GameTypes.js +0 -8
  175. package/core/constants/Items/BootsItemKeys.d.ts +0 -14
  176. package/core/constants/Items/BootsItemKeys.js +0 -1
  177. package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
  178. package/core/constants/Items/BootsItemKeysNum.js +0 -1
  179. package/core/constants/Items/BootsItemNames.d.ts +0 -14
  180. package/core/constants/Items/BootsItemNames.js +0 -1
  181. package/core/constants/Items/ItemKeys.d.ts +0 -238
  182. package/core/constants/Items/ItemKeys.js +0 -1
  183. package/core/constants/Items/ItemKeysNum.d.ts +0 -238
  184. package/core/constants/Items/ItemKeysNum.js +0 -1
  185. package/core/constants/Items/ItemNames.d.ts +0 -244
  186. package/core/constants/Items/ItemNames.js +0 -1
  187. package/core/constants/Items/ItemTypes.d.ts +0 -7
  188. package/core/constants/Items/ItemTypes.js +0 -8
  189. package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
  190. package/core/constants/Items/LegendaryItemKeys.js +0 -1
  191. package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
  192. package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
  193. package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
  194. package/core/constants/Items/LegendaryItemNames.js +0 -1
  195. package/core/constants/KillTypes.d.ts +0 -7
  196. package/core/constants/KillTypes.js +0 -8
  197. package/core/constants/LaneTypes.d.ts +0 -7
  198. package/core/constants/LaneTypes.js +0 -8
  199. package/core/constants/Lanes.d.ts +0 -8
  200. package/core/constants/Lanes.js +0 -9
  201. package/core/constants/LeagueTexts.d.ts +0 -49
  202. package/core/constants/LeagueTexts.js +0 -54
  203. package/core/constants/Levels.d.ts +0 -22
  204. package/core/constants/Levels.js +0 -23
  205. package/core/constants/MapIds.d.ts +0 -17
  206. package/core/constants/MapIds.js +0 -18
  207. package/core/constants/MonsterTypes.d.ts +0 -8
  208. package/core/constants/MonsterTypes.js +0 -9
  209. package/core/constants/ParticipantIds.d.ts +0 -14
  210. package/core/constants/ParticipantIds.js +0 -15
  211. package/core/constants/PlatformApiUris.d.ts +0 -20
  212. package/core/constants/PlatformApiUris.js +0 -21
  213. package/core/constants/PlatformIds.d.ts +0 -23
  214. package/core/constants/PlatformIds.js +0 -26
  215. package/core/constants/Positions.d.ts +0 -9
  216. package/core/constants/Positions.js +0 -10
  217. package/core/constants/QueueIds.d.ts +0 -114
  218. package/core/constants/QueueIds.js +0 -140
  219. package/core/constants/QueueTypes.d.ts +0 -7
  220. package/core/constants/QueueTypes.js +0 -8
  221. package/core/constants/RankedRanks.d.ts +0 -8
  222. package/core/constants/RankedRanks.js +0 -9
  223. package/core/constants/RegionalApiUris.d.ts +0 -8
  224. package/core/constants/RegionalApiUris.js +0 -9
  225. package/core/constants/Regions.d.ts +0 -23
  226. package/core/constants/Regions.js +0 -26
  227. package/core/constants/RelativeTeams.d.ts +0 -6
  228. package/core/constants/RelativeTeams.js +0 -7
  229. package/core/constants/Roles.d.ts +0 -8
  230. package/core/constants/Roles.js +0 -9
  231. package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
  232. package/core/constants/Runes/NonStatRuneIds.js +0 -1
  233. package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
  234. package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
  235. package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
  236. package/core/constants/Runes/NonStatRuneNames.js +0 -1
  237. package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
  238. package/core/constants/Runes/RuneIconFileNames.js +0 -97
  239. package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
  240. package/core/constants/Runes/RunePickingRelationships.js +0 -4
  241. package/core/constants/Runes/RuneSets.d.ts +0 -721
  242. package/core/constants/Runes/RuneSets.js +0 -11
  243. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
  244. package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
  245. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
  246. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
  247. package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
  248. package/core/constants/Runes/RuneTreeIds.js +0 -14
  249. package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
  250. package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
  251. package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
  252. package/core/constants/Runes/RuneTreeNames.js +0 -14
  253. package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
  254. package/core/constants/Runes/RuneTreeTypes.js +0 -7
  255. package/core/constants/SkillSlots.d.ts +0 -8
  256. package/core/constants/SkillSlots.js +0 -9
  257. package/core/constants/Skills.d.ts +0 -8
  258. package/core/constants/Skills.js +0 -9
  259. package/core/constants/Spells/SpellIds.d.ts +0 -21
  260. package/core/constants/Spells/SpellIds.js +0 -1
  261. package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
  262. package/core/constants/Spells/SpellIdsByName.js +0 -1
  263. package/core/constants/Spells/SpellKeys.d.ts +0 -21
  264. package/core/constants/Spells/SpellKeys.js +0 -1
  265. package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
  266. package/core/constants/Spells/SpellKeysNum.js +0 -1
  267. package/core/constants/Spells/SpellNames.d.ts +0 -21
  268. package/core/constants/Spells/SpellNames.js +0 -1
  269. package/core/constants/TeamIds.d.ts +0 -6
  270. package/core/constants/TeamIds.js +0 -7
  271. package/core/constants/TowerTypes.d.ts +0 -8
  272. package/core/constants/TowerTypes.js +0 -9
  273. package/core/constants/WardTypes.d.ts +0 -9
  274. package/core/constants/WardTypes.js +0 -10
  275. package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
  276. package/core/helpers/Champions/getChampionIdByKey.js +0 -4
  277. package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
  278. package/core/helpers/Champions/getChampionIdByName.js +0 -4
  279. package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
  280. package/core/helpers/Champions/getChampionKeyById.js +0 -4
  281. package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
  282. package/core/helpers/Champions/getChampionKeyByName.js +0 -5
  283. package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
  284. package/core/helpers/Champions/getChampionNameById.js +0 -5
  285. package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
  286. package/core/helpers/Champions/getChampionNameByKey.js +0 -4
  287. package/core/helpers/Champions/isChampionId.d.ts +0 -2
  288. package/core/helpers/Champions/isChampionId.js +0 -4
  289. package/core/helpers/Champions/isChampionKey.d.ts +0 -2
  290. package/core/helpers/Champions/isChampionKey.js +0 -4
  291. package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
  292. package/core/helpers/Champions/isChampionKeyNum.js +0 -4
  293. package/core/helpers/Champions/isChampionName.d.ts +0 -2
  294. package/core/helpers/Champions/isChampionName.js +0 -4
  295. package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
  296. package/core/helpers/Items/getItemKeyByName.js +0 -4
  297. package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
  298. package/core/helpers/Items/getItemKeyNumByName.js +0 -4
  299. package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
  300. package/core/helpers/Items/getItemNameByKey.js +0 -4
  301. package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
  302. package/core/helpers/Items/isBootsItemKey.js +0 -4
  303. package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
  304. package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
  305. package/core/helpers/Items/isBootsItemName.d.ts +0 -2
  306. package/core/helpers/Items/isBootsItemName.js +0 -4
  307. package/core/helpers/Items/isItemKey.d.ts +0 -2
  308. package/core/helpers/Items/isItemKey.js +0 -4
  309. package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
  310. package/core/helpers/Items/isItemKeyNum.js +0 -4
  311. package/core/helpers/Items/isItemName.d.ts +0 -2
  312. package/core/helpers/Items/isItemName.js +0 -4
  313. package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
  314. package/core/helpers/Items/isLegendaryItemKey.js +0 -4
  315. package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
  316. package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
  317. package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
  318. package/core/helpers/Items/isLegendaryItemName.js +0 -4
  319. package/core/helpers/Items/isTier2Boots.d.ts +0 -3
  320. package/core/helpers/Items/isTier2Boots.js +0 -9
  321. package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
  322. package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
  323. package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
  324. package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
  325. package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
  326. package/core/helpers/Runes/getRuneCategoryName.js +0 -16
  327. package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
  328. package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
  329. package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
  330. package/core/helpers/Runes/getRuneIdByName.js +0 -4
  331. package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
  332. package/core/helpers/Runes/getRuneNameById.js +0 -4
  333. package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
  334. package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
  335. package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
  336. package/core/helpers/Runes/getStatRuneNameById.js +0 -4
  337. package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
  338. package/core/helpers/Runes/isDominationRuneId.js +0 -4
  339. package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
  340. package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
  341. package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
  342. package/core/helpers/Runes/isDominationRuneName.js +0 -4
  343. package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
  344. package/core/helpers/Runes/isInspirationRuneId.js +0 -4
  345. package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
  346. package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
  347. package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
  348. package/core/helpers/Runes/isInspirationRuneName.js +0 -4
  349. package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
  350. package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
  351. package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
  352. package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
  353. package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
  354. package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
  355. package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
  356. package/core/helpers/Runes/isNonStatRuneId.js +0 -4
  357. package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
  358. package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
  359. package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
  360. package/core/helpers/Runes/isNonStatRuneName.js +0 -4
  361. package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
  362. package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
  363. package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
  364. package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
  365. package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
  366. package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
  367. package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
  368. package/core/helpers/Runes/isResolveRuneId.js +0 -4
  369. package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
  370. package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
  371. package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
  372. package/core/helpers/Runes/isResolveRuneName.js +0 -4
  373. package/core/helpers/Runes/isRuneId.d.ts +0 -2
  374. package/core/helpers/Runes/isRuneId.js +0 -4
  375. package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
  376. package/core/helpers/Runes/isRuneIdNum.js +0 -4
  377. package/core/helpers/Runes/isRuneName.d.ts +0 -2
  378. package/core/helpers/Runes/isRuneName.js +0 -4
  379. package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
  380. package/core/helpers/Runes/isSorceryRuneId.js +0 -4
  381. package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
  382. package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
  383. package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
  384. package/core/helpers/Runes/isSorceryRuneName.js +0 -4
  385. package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
  386. package/core/helpers/Runes/isStatRuneId.js +0 -4
  387. package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
  388. package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
  389. package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
  390. package/core/helpers/Runes/isStatRuneName.js +0 -4
  391. package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
  392. package/core/helpers/Spells/getSpellIdByKey.js +0 -4
  393. package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
  394. package/core/helpers/Spells/getSpellIdByName.js +0 -4
  395. package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
  396. package/core/helpers/Spells/getSpellKeyById.js +0 -4
  397. package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
  398. package/core/helpers/Spells/getSpellKeyByName.js +0 -5
  399. package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
  400. package/core/helpers/Spells/getSpellNameById.js +0 -5
  401. package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
  402. package/core/helpers/Spells/getSpellNameByKey.js +0 -4
  403. package/core/helpers/Spells/isSpellId.d.ts +0 -2
  404. package/core/helpers/Spells/isSpellId.js +0 -4
  405. package/core/helpers/Spells/isSpellKey.d.ts +0 -2
  406. package/core/helpers/Spells/isSpellKey.js +0 -4
  407. package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
  408. package/core/helpers/Spells/isSpellKeyNum.js +0 -4
  409. package/core/helpers/Spells/isSpellName.d.ts +0 -2
  410. package/core/helpers/Spells/isSpellName.js +0 -4
  411. package/core/helpers/getPositionImageUrl.d.ts +0 -2
  412. package/core/helpers/getPositionImageUrl.js +0 -11
  413. package/core/helpers/isRiotId.d.ts +0 -5
  414. package/core/helpers/isRiotId.js +0 -15
  415. package/core/helpers/makeRiotId.d.ts +0 -4
  416. package/core/helpers/makeRiotId.js +0 -5
  417. package/core/helpers/splitRiotId.d.ts +0 -10
  418. package/core/helpers/splitRiotId.js +0 -16
  419. package/core/index.d.ts +0 -139
  420. package/core/index.js +0 -150
  421. package/core/types/championJson.d.ts +0 -85
  422. package/core/types/championJson.js +0 -1
  423. package/core/types/interfaces.d.ts +0 -22
  424. package/core/types/interfaces.js +0 -1
  425. package/core/types/types.d.ts +0 -268
  426. package/core/types/types.js +0 -1
  427. /package/{assets/scripts/asset-scripts/champion.d.ts → dist/helpers/type.js} +0 -0
@@ -0,0 +1,13 @@
1
+ export const Runes = { 8005: { id: 8005, key: "PressTheAttack", name: "Press the Attack", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8008, 8021, 8010] }, 8008: { id: 8008, key: "LethalTempo", name: "Lethal Tempo", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8021, 8010] }, 8009: { id: 8009, key: "PresenceOfMind", name: "Presence of Mind", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9101, 9111] }, 8010: { id: 8010, key: "Conqueror", name: "Conqueror", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8008, 8021] }, 8014: { id: 8014, key: "CoupDeGrace", name: "Coup de Grace", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8017, 8299] }, 8017: { id: 8017, key: "CutDown", name: "Cut Down", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8014, 8299] }, 8021: { id: 8021, key: "FleetFootwork", name: "Fleet Footwork", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8008, 8010] }, 8105: { id: 8105, key: "RelentlessHunter", name: "Relentless Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8135, 8106] }, 8106: { id: 8106, key: "UltimateHunter", name: "Ultimate Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8135, 8105] }, 8112: { id: 8112, key: "Electrocute", name: "Electrocute", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8128, 9923] }, 8120: { id: 8120, key: "GhostPoro", name: "Ghost Poro", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8136, 8138] }, 8126: { id: 8126, key: "CheapShot", name: "Cheap Shot", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8139, 8143] }, 8128: { id: 8128, key: "DarkHarvest", name: "Dark Harvest", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8112, 9923] }, 8135: { id: 8135, key: "TreasureHunter", name: "Treasure Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8105, 8106] }, 8136: { id: 8136, key: "ZombieWard", name: "Zombie Ward", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8120, 8138] }, 8138: { id: 8138, key: "EyeballCollection", name: "Eyeball Collection", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8136, 8120] }, 8139: { id: 8139, key: "TasteOfBlood", name: "Taste of Blood", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8126, 8143] }, 8143: { id: 8143, key: "SuddenImpact", name: "Sudden Impact", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8126, 8139] }, 8210: { id: 8210, key: "Transcendence", name: "Transcendence", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8234, 8233] }, 8214: { id: 8214, key: "SummonAery", name: "Summon Aery", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8229, 8230] }, 8224: { id: 8224, key: "NullifyingOrb", name: "Nullifying Orb", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8226, 8275] }, 8226: { id: 8226, key: "ManaflowBand", name: "Manaflow Band", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8224, 8275] }, 8229: { id: 8229, key: "ArcaneComet", name: "Arcane Comet", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8214, 8230] }, 8230: { id: 8230, key: "PhaseRush", name: "Phase Rush", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8214, 8229] }, 8232: { id: 8232, key: "Waterwalking", name: "Waterwalking", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8237, 8236] }, 8233: { id: 8233, key: "AbsoluteFocus", name: "Absolute Focus", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8210, 8234] }, 8234: { id: 8234, key: "Celerity", name: "Celerity", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8210, 8233] }, 8236: { id: 8236, key: "GatheringStorm", name: "Gathering Storm", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8237, 8232] }, 8237: { id: 8237, key: "Scorch", name: "Scorch", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8232, 8236] }, 8242: { id: 8242, key: "Unflinching", name: "Unflinching", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8451, 8453] }, 8275: { id: 8275, key: "NimbusCloak", name: "Nimbus Cloak", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8224, 8226] }, 8299: { id: 8299, key: "LastStand", name: "Last Stand", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8014, 8017] }, 8304: { id: 8304, key: "MagicalFootwear", name: "Magical Footwear", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8306, 8321] }, 8306: { id: 8306, key: "HextechFlashtraption", name: "Hextech Flashtraption", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8304, 8321] }, 8313: { id: 8313, key: "PerfectTiming", name: "Triple Tonic", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8352, 8345] }, 8316: { id: 8316, key: "JackOfAllTrades", name: "Jack Of All Trades", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8347, 8410] }, 8321: { id: 8321, key: "CashBack", name: "Cash Back", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8306, 8304] }, 8345: { id: 8345, key: "BiscuitDelivery", name: "Biscuit Delivery", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8313, 8352] }, 8347: { id: 8347, key: "CosmicInsight", name: "Cosmic Insight", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8410, 8316] }, 8351: { id: 8351, key: "GlacialAugment", name: "Glacial Augment", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8360, 8369] }, 8352: { id: 8352, key: "TimeWarpTonic", name: "Time Warp Tonic", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8313, 8345] }, 8360: { id: 8360, key: "UnsealedSpellbook", name: "Unsealed Spellbook", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8351, 8369] }, 8369: { id: 8369, key: "FirstStrike", name: "First Strike", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8351, 8360] }, 8401: { id: 8401, key: "ShieldBash", name: "Shield Bash", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8446, 8463] }, 8410: { id: 8410, key: "ApproachVelocity", name: "Approach Velocity", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8347, 8316] }, 8429: { id: 8429, key: "Conditioning", name: "Conditioning", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8444, 8473] }, 8437: { id: 8437, key: "GraspOfTheUndying", name: "Grasp of the Undying", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8439, 8465] }, 8439: { id: 8439, key: "Aftershock", name: "Aftershock", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8437, 8465] }, 8444: { id: 8444, key: "SecondWind", name: "Second Wind", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8429, 8473] }, 8446: { id: 8446, key: "Demolish", name: "Demolish", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8463, 8401] }, 8451: { id: 8451, key: "Overgrowth", name: "Overgrowth", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8453, 8242] }, 8453: { id: 8453, key: "Revitalize", name: "Revitalize", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8451, 8242] }, 8463: { id: 8463, key: "FontOfLife", name: "Font of Life", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8446, 8401] }, 8465: { id: 8465, key: "Guardian", name: "Guardian", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8437, 8439] }, 8473: { id: 8473, key: "BonePlating", name: "Bone Plating", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8429, 8444] }, 9101: { id: 9101, key: "AbsorbLife", name: "Absorb Life", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9111, 8009] }, 9103: { id: 9103, key: "LegendBloodline", name: "Legend: Bloodline", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9104, 9105] }, 9104: { id: 9104, key: "LegendAlacrity", name: "Legend: Alacrity", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9105, 9103] }, 9105: { id: 9105, key: "LegendHaste", name: "Legend: Haste", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9104, 9103] }, 9111: { id: 9111, key: "Triumph", name: "Triumph", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9101, 8009] }, 9923: { id: 9923, key: "HailOfBlades", name: "Hail of Blades", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8112, 8128] } };
2
+ export const runeKeys = { Electrocute: 8112, DarkHarvest: 8128, HailOfBlades: 9923, CheapShot: 8126, TasteOfBlood: 8139, SuddenImpact: 8143, ZombieWard: 8136, GhostPoro: 8120, EyeballCollection: 8138, TreasureHunter: 8135, RelentlessHunter: 8105, UltimateHunter: 8106, GlacialAugment: 8351, UnsealedSpellbook: 8360, FirstStrike: 8369, HextechFlashtraption: 8306, MagicalFootwear: 8304, CashBack: 8321, PerfectTiming: 8313, TimeWarpTonic: 8352, BiscuitDelivery: 8345, CosmicInsight: 8347, ApproachVelocity: 8410, JackOfAllTrades: 8316, PressTheAttack: 8005, LethalTempo: 8008, FleetFootwork: 8021, Conqueror: 8010, AbsorbLife: 9101, Triumph: 9111, PresenceOfMind: 8009, LegendAlacrity: 9104, LegendHaste: 9105, LegendBloodline: 9103, CoupDeGrace: 8014, CutDown: 8017, LastStand: 8299, GraspOfTheUndying: 8437, Aftershock: 8439, Guardian: 8465, Demolish: 8446, FontOfLife: 8463, ShieldBash: 8401, Conditioning: 8429, SecondWind: 8444, BonePlating: 8473, Overgrowth: 8451, Revitalize: 8453, Unflinching: 8242, SummonAery: 8214, ArcaneComet: 8229, PhaseRush: 8230, NullifyingOrb: 8224, ManaflowBand: 8226, NimbusCloak: 8275, Transcendence: 8210, Celerity: 8234, AbsoluteFocus: 8233, Scorch: 8237, Waterwalking: 8232, GatheringStorm: 8236 };
3
+ export const runeNames = { Electrocute: 8112, "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, "Relentless Hunter": 8105, "Ultimate Hunter": 8106, "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321, "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345, "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316, "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, Conqueror: 8010, "Absorb Life": 9101, Triumph: 9111, "Presence of Mind": 8009, "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103, "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299, "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, "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 };
4
+ export const RunesArr = Object.values(Runes);
5
+ export const StatRunes = { 5001: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0 }, 5005: { id: 5005, name: "Attack Speed", description: "+10% Attack Speed", value: 0.1 }, 5007: { id: 5007, name: "Ability Haste", description: "+8 Ability Haste", value: 8 }, 5008: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9 }, 5010: { id: 5010, name: "Move Speed", description: "+2% Move Speed", value: 0.02 }, 5011: { id: 5011, name: "Health", description: "+65 Health", value: 65 }, 5013: { id: 5013, name: "Tenacity and Slow Resist", description: "+10% Tenacity and Slow Resist", value: 0.1 } };
6
+ export const StatRunesInSlot = { 5001: { 1: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0, slot: 1, horizontal: [5008, 5010] }, 2: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0, slot: 2, horizontal: [5011, 5013] } }, 5005: { 0: { id: 5005, name: "Attack Speed", description: "+10% Attack Speed", value: 0.1, slot: 0, horizontal: [5008, 5007] } }, 5007: { 0: { id: 5007, name: "Ability Haste", description: "+8 Ability Haste", value: 8, slot: 0, horizontal: [5008, 5005] } }, 5008: { 0: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9, slot: 0, horizontal: [5005, 5007] }, 1: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9, slot: 1, horizontal: [5010, 5001] } }, 5010: { 1: { id: 5010, name: "Move Speed", description: "+2% Move Speed", value: 0.02, slot: 1, horizontal: [5008, 5001] } }, 5011: { 2: { id: 5011, name: "Health", description: "+65 Health", value: 65, slot: 2, horizontal: [5001, 5013] } }, 5013: { 2: { id: 5013, name: "Tenacity and Slow Resist", description: "+10% Tenacity and Slow Resist", value: 0.1, slot: 2, horizontal: [5001, 5011] } } };
7
+ export const StatRunesInSlotArr = [StatRunesInSlot[5008][0], StatRunesInSlot[5008][1], StatRunesInSlot[5005][0], StatRunesInSlot[5007][0], StatRunesInSlot[5010][1], StatRunesInSlot[5001][1], StatRunesInSlot[5001][2], StatRunesInSlot[5011][2], StatRunesInSlot[5013][2],];
8
+ export const statRuneNames = { "Adaptive Force": 5008, "Attack Speed": 5005, "Ability Haste": 5007, "Move Speed": 5010, "Health Scaling": 5001, Health: 5011, "Tenacity and Slow Resist": 5013 };
9
+ export const StatRunesArr = Object.values(StatRunes);
10
+ export const RuneTrees = { 8000: { id: 8000, key: "Precision", name: "Precision" }, 8100: { id: 8100, key: "Domination", name: "Domination" }, 8200: { id: 8200, key: "Sorcery", name: "Sorcery" }, 8300: { id: 8300, key: "Inspiration", name: "Inspiration" }, 8400: { id: 8400, key: "Resolve", name: "Resolve" } };
11
+ export const runeTreeKeys = { Domination: 8100, Inspiration: 8300, Precision: 8000, Resolve: 8400, Sorcery: 8200 };
12
+ export const runeTreeNames = { Domination: 8100, Inspiration: 8300, Precision: 8000, Resolve: 8400, Sorcery: 8200 };
13
+ export const RuneTreesArr = Object.values(RuneTrees);
@@ -0,0 +1,208 @@
1
+ export declare const Spells: {
2
+ readonly 1: {
3
+ readonly id: 1;
4
+ readonly key: "SummonerBoost";
5
+ readonly name: "Cleanse";
6
+ };
7
+ readonly 3: {
8
+ readonly id: 3;
9
+ readonly key: "SummonerExhaust";
10
+ readonly name: "Exhaust";
11
+ };
12
+ readonly 4: {
13
+ readonly id: 4;
14
+ readonly key: "SummonerFlash";
15
+ readonly name: "Flash";
16
+ };
17
+ readonly 6: {
18
+ readonly id: 6;
19
+ readonly key: "SummonerHaste";
20
+ readonly name: "Ghost";
21
+ };
22
+ readonly 7: {
23
+ readonly id: 7;
24
+ readonly key: "SummonerHeal";
25
+ readonly name: "Heal";
26
+ };
27
+ readonly 11: {
28
+ readonly id: 11;
29
+ readonly key: "SummonerSmite";
30
+ readonly name: "Smite";
31
+ };
32
+ readonly 12: {
33
+ readonly id: 12;
34
+ readonly key: "SummonerTeleport";
35
+ readonly name: "Teleport";
36
+ };
37
+ readonly 13: {
38
+ readonly id: 13;
39
+ readonly key: "SummonerMana";
40
+ readonly name: "Clarity";
41
+ };
42
+ readonly 14: {
43
+ readonly id: 14;
44
+ readonly key: "SummonerDot";
45
+ readonly name: "Ignite";
46
+ };
47
+ readonly 21: {
48
+ readonly id: 21;
49
+ readonly key: "SummonerBarrier";
50
+ readonly name: "Barrier";
51
+ };
52
+ readonly 30: {
53
+ readonly id: 30;
54
+ readonly key: "SummonerPoroRecall";
55
+ readonly name: "To the King!";
56
+ };
57
+ readonly 31: {
58
+ readonly id: 31;
59
+ readonly key: "SummonerPoroThrow";
60
+ readonly name: "Poro Toss";
61
+ };
62
+ readonly 32: {
63
+ readonly id: 32;
64
+ readonly key: "SummonerSnowball";
65
+ readonly name: "Mark";
66
+ };
67
+ readonly 39: {
68
+ readonly id: 39;
69
+ readonly key: "SummonerSnowURFSnowball_Mark";
70
+ readonly name: "Mark (Snow URF)";
71
+ };
72
+ readonly 54: {
73
+ readonly id: 54;
74
+ readonly key: "Summoner_UltBookPlaceholder";
75
+ readonly name: "Placeholder";
76
+ };
77
+ readonly 55: {
78
+ readonly id: 55;
79
+ readonly key: "Summoner_UltBookSmitePlaceholder";
80
+ readonly name: "Placeholder and Attack-Smite";
81
+ };
82
+ readonly 2201: {
83
+ readonly id: 2201;
84
+ readonly key: "SummonerCherryHold";
85
+ readonly name: "Flee";
86
+ };
87
+ readonly 2202: {
88
+ readonly id: 2202;
89
+ readonly key: "SummonerCherryFlash";
90
+ readonly name: "Flash (Arena)";
91
+ };
92
+ };
93
+ export declare const spellKeys: {
94
+ readonly SummonerBarrier: 21;
95
+ readonly SummonerBoost: 1;
96
+ readonly SummonerCherryFlash: 2202;
97
+ readonly SummonerCherryHold: 2201;
98
+ readonly SummonerDot: 14;
99
+ readonly SummonerExhaust: 3;
100
+ readonly SummonerFlash: 4;
101
+ readonly SummonerHaste: 6;
102
+ readonly SummonerHeal: 7;
103
+ readonly SummonerMana: 13;
104
+ readonly SummonerPoroRecall: 30;
105
+ readonly SummonerPoroThrow: 31;
106
+ readonly SummonerSmite: 11;
107
+ readonly SummonerSnowURFSnowball_Mark: 39;
108
+ readonly SummonerSnowball: 32;
109
+ readonly SummonerTeleport: 12;
110
+ readonly Summoner_UltBookPlaceholder: 54;
111
+ readonly Summoner_UltBookSmitePlaceholder: 55;
112
+ };
113
+ export declare const spellNames: {
114
+ readonly Barrier: 21;
115
+ readonly Cleanse: 1;
116
+ readonly "Flash (Arena)": 2202;
117
+ readonly Flee: 2201;
118
+ readonly Ignite: 14;
119
+ readonly Exhaust: 3;
120
+ readonly Flash: 4;
121
+ readonly Ghost: 6;
122
+ readonly Heal: 7;
123
+ readonly Clarity: 13;
124
+ readonly "To the King!": 30;
125
+ readonly "Poro Toss": 31;
126
+ readonly Smite: 11;
127
+ readonly "Mark (Snow URF)": 39;
128
+ readonly Mark: 32;
129
+ readonly Teleport: 12;
130
+ readonly Placeholder: 54;
131
+ readonly "Placeholder and Attack-Smite": 55;
132
+ };
133
+ export declare const SpellsArr: ({
134
+ readonly id: 1;
135
+ readonly key: "SummonerBoost";
136
+ readonly name: "Cleanse";
137
+ } | {
138
+ readonly id: 3;
139
+ readonly key: "SummonerExhaust";
140
+ readonly name: "Exhaust";
141
+ } | {
142
+ readonly id: 4;
143
+ readonly key: "SummonerFlash";
144
+ readonly name: "Flash";
145
+ } | {
146
+ readonly id: 6;
147
+ readonly key: "SummonerHaste";
148
+ readonly name: "Ghost";
149
+ } | {
150
+ readonly id: 7;
151
+ readonly key: "SummonerHeal";
152
+ readonly name: "Heal";
153
+ } | {
154
+ readonly id: 11;
155
+ readonly key: "SummonerSmite";
156
+ readonly name: "Smite";
157
+ } | {
158
+ readonly id: 12;
159
+ readonly key: "SummonerTeleport";
160
+ readonly name: "Teleport";
161
+ } | {
162
+ readonly id: 13;
163
+ readonly key: "SummonerMana";
164
+ readonly name: "Clarity";
165
+ } | {
166
+ readonly id: 14;
167
+ readonly key: "SummonerDot";
168
+ readonly name: "Ignite";
169
+ } | {
170
+ readonly id: 21;
171
+ readonly key: "SummonerBarrier";
172
+ readonly name: "Barrier";
173
+ } | {
174
+ readonly id: 30;
175
+ readonly key: "SummonerPoroRecall";
176
+ readonly name: "To the King!";
177
+ } | {
178
+ readonly id: 31;
179
+ readonly key: "SummonerPoroThrow";
180
+ readonly name: "Poro Toss";
181
+ } | {
182
+ readonly id: 32;
183
+ readonly key: "SummonerSnowball";
184
+ readonly name: "Mark";
185
+ } | {
186
+ readonly id: 39;
187
+ readonly key: "SummonerSnowURFSnowball_Mark";
188
+ readonly name: "Mark (Snow URF)";
189
+ } | {
190
+ readonly id: 54;
191
+ readonly key: "Summoner_UltBookPlaceholder";
192
+ readonly name: "Placeholder";
193
+ } | {
194
+ readonly id: 55;
195
+ readonly key: "Summoner_UltBookSmitePlaceholder";
196
+ readonly name: "Placeholder and Attack-Smite";
197
+ } | {
198
+ readonly id: 2201;
199
+ readonly key: "SummonerCherryHold";
200
+ readonly name: "Flee";
201
+ } | {
202
+ readonly id: 2202;
203
+ readonly key: "SummonerCherryFlash";
204
+ readonly name: "Flash (Arena)";
205
+ })[];
206
+ export type SpellId = typeof SpellsArr[number]['id'];
207
+ export type SpellKey = typeof SpellsArr[number]['key'];
208
+ export type SpellName = typeof SpellsArr[number]['name'];
@@ -0,0 +1,4 @@
1
+ export const Spells = { 1: { id: 1, key: "SummonerBoost", name: "Cleanse" }, 3: { id: 3, key: "SummonerExhaust", name: "Exhaust" }, 4: { id: 4, key: "SummonerFlash", name: "Flash" }, 6: { id: 6, key: "SummonerHaste", name: "Ghost" }, 7: { id: 7, key: "SummonerHeal", name: "Heal" }, 11: { id: 11, key: "SummonerSmite", name: "Smite" }, 12: { id: 12, key: "SummonerTeleport", name: "Teleport" }, 13: { id: 13, key: "SummonerMana", name: "Clarity" }, 14: { id: 14, key: "SummonerDot", name: "Ignite" }, 21: { id: 21, key: "SummonerBarrier", name: "Barrier" }, 30: { id: 30, key: "SummonerPoroRecall", name: "To the King!" }, 31: { id: 31, key: "SummonerPoroThrow", name: "Poro Toss" }, 32: { id: 32, key: "SummonerSnowball", name: "Mark" }, 39: { id: 39, key: "SummonerSnowURFSnowball_Mark", name: "Mark (Snow URF)" }, 54: { id: 54, key: "Summoner_UltBookPlaceholder", name: "Placeholder" }, 55: { id: 55, key: "Summoner_UltBookSmitePlaceholder", name: "Placeholder and Attack-Smite" }, 2201: { id: 2201, key: "SummonerCherryHold", name: "Flee" }, 2202: { id: 2202, key: "SummonerCherryFlash", name: "Flash (Arena)" } };
2
+ export const spellKeys = { SummonerBarrier: 21, SummonerBoost: 1, SummonerCherryFlash: 2202, SummonerCherryHold: 2201, SummonerDot: 14, SummonerExhaust: 3, SummonerFlash: 4, SummonerHaste: 6, SummonerHeal: 7, SummonerMana: 13, SummonerPoroRecall: 30, SummonerPoroThrow: 31, SummonerSmite: 11, SummonerSnowURFSnowball_Mark: 39, SummonerSnowball: 32, SummonerTeleport: 12, Summoner_UltBookPlaceholder: 54, Summoner_UltBookSmitePlaceholder: 55 };
3
+ export const spellNames = { Barrier: 21, Cleanse: 1, "Flash (Arena)": 2202, Flee: 2201, Ignite: 14, Exhaust: 3, Flash: 4, Ghost: 6, Heal: 7, Clarity: 13, "To the King!": 30, "Poro Toss": 31, Smite: 11, "Mark (Snow URF)": 39, Mark: 32, Teleport: 12, Placeholder: 54, "Placeholder and Attack-Smite": 55 };
4
+ export const SpellsArr = Object.values(Spells);
package/package.json CHANGED
@@ -1,32 +1,34 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.25.0",
4
- "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells. Provides a plathera of functions to easily convert between ID, Name, and Key for champions and other game constants.",
5
- "main": "core/index.js",
6
- "types": "core/index.d.ts",
3
+ "version": "3.0.0-rc.0",
4
+ "description": "League of Legends constants, functions, and types. Provides a plathera of functions to easily convert between ID, Name, and Key for champions, items, summoner spells, and runes.",
7
5
  "license": "MIT",
8
6
  "type": "module",
7
+ "sideEffects": false,
8
+ "main": "dist/index.js",
9
+ "types": "dist/index.d.ts",
9
10
  "files": [
10
- "/core",
11
- "/assets"
11
+ "dist"
12
12
  ],
13
13
  "devDependencies": {
14
- "@types/node": "^20.14.9",
15
- "@types/node-fetch": "^2.6.11",
16
- "node-fetch": "2.6.7",
14
+ "@types/jsdom": "^21.1.7",
15
+ "@types/node": "^22.5.5",
16
+ "jsdom": "^25.0.0",
17
17
  "ts-node": "^10.9.2",
18
- "typescript": "^5.5.3",
19
- "vite": "^5.3.3"
18
+ "typescript": "^5.6.2",
19
+ "vite": "^5.4.7"
20
20
  },
21
21
  "repository": {
22
22
  "type": "git",
23
23
  "url": "git+https://github.com/kd0010/lol-constants.git"
24
24
  },
25
25
  "scripts": {
26
- "build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
27
- "assets:pull": "node --no-warnings --loader ts-node/esm src/assets/scripts/asset-scripts/generate-all",
28
- "generate": "node --no-warnings --loader ts-node/esm src/assets/scripts/generate-all",
29
- "print-file-names": "node assets/scripts/print-file-names",
26
+ "patch:update": "pnpm run scripts:pull && pnpm run scripts:generate && pnpm run build",
27
+ "temp": "node --no-warnings --loader ts-node/esm dev/scripts/temp",
28
+ "scripts:pull": "node --no-warnings --loader ts-node/esm dev/scripts/pull-all-external-data",
29
+ "scripts:generate": "node --no-warnings --loader ts-node/esm dev/scripts/generate-all-const",
30
+ "build": "tsc",
31
+ "build:clean": "rmdir /s /q dist && pnpm run build",
30
32
  "dev": "vite"
31
33
  }
32
34
  }
@@ -1 +0,0 @@
1
- export declare const BootsItemNames: readonly ["Boots", "Berserker's Greaves", "Boots of Swiftness", "Ionian Boots of Lucidity", "Mercury's Treads", "Plated Steelcaps", "Sorcerer's Shoes", "Slightly Magical Footwear", "Symbiotic Soles", "Synchronized Souls", "Zephyr"];
@@ -1,13 +0,0 @@
1
- export const BootsItemNames = [
2
- "Boots",
3
- "Berserker's Greaves",
4
- "Boots of Swiftness",
5
- "Ionian Boots of Lucidity",
6
- "Mercury's Treads",
7
- "Plated Steelcaps",
8
- "Sorcerer's Shoes",
9
- "Slightly Magical Footwear",
10
- "Symbiotic Soles",
11
- "Synchronized Souls",
12
- "Zephyr",
13
- ];