lol-constants 2.26.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 (430) hide show
  1. package/README.md +130 -28
  2. package/dist/Locale.d.ts +2 -0
  3. package/dist/Patch.d.ts +3 -0
  4. package/dist/Patch.js +3 -0
  5. package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
  6. package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
  7. package/dist/constants/events.d.ts +49 -0
  8. package/dist/constants/events.js +55 -0
  9. package/dist/constants/history.d.ts +26 -0
  10. package/dist/constants/history.js +29 -0
  11. package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
  12. package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
  13. package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
  14. package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
  15. package/dist/constants/participants.d.ts +38 -0
  16. package/dist/constants/participants.js +43 -0
  17. package/dist/enums/ItemSrTypes.d.ts +11 -0
  18. package/dist/enums/ItemSrTypes.js +10 -0
  19. package/dist/enums/StatRuneSlots.d.ts +6 -0
  20. package/dist/enums/StatRuneSlots.js +5 -0
  21. package/dist/helpers/champion.d.ts +678 -0
  22. package/dist/helpers/champion.js +18 -0
  23. package/dist/helpers/item.d.ts +39 -0
  24. package/dist/helpers/item.js +113 -0
  25. package/dist/helpers/riotId.d.ts +16 -0
  26. package/dist/helpers/riotId.js +33 -0
  27. package/dist/helpers/rune.d.ts +36 -0
  28. package/dist/helpers/rune.js +70 -0
  29. package/dist/helpers/spell.d.ts +6 -0
  30. package/dist/helpers/spell.js +18 -0
  31. package/dist/helpers/type.d.ts +3 -0
  32. package/dist/index.d.ts +30 -0
  33. package/dist/index.js +27 -0
  34. package/dist/lol.d.ts +4029 -0
  35. package/dist/lol.js +182 -0
  36. package/dist/objects/Maps.d.ts +113 -0
  37. package/dist/objects/Maps.js +69 -0
  38. package/dist/objects/Queues.d.ts +192 -0
  39. package/dist/objects/Queues.js +71 -0
  40. package/dist/objects/Regions.d.ts +132 -0
  41. package/dist/objects/Regions.js +55 -0
  42. package/dist/objects/generated/Champions.d.ts +1858 -0
  43. package/dist/objects/generated/Champions.js +4 -0
  44. package/dist/objects/generated/Items.d.ts +5108 -0
  45. package/dist/objects/generated/Items.js +4 -0
  46. package/dist/objects/generated/Runes.d.ts +1477 -0
  47. package/dist/objects/generated/Runes.js +13 -0
  48. package/dist/objects/generated/Spells.d.ts +208 -0
  49. package/dist/objects/generated/Spells.js +4 -0
  50. package/package.json +17 -15
  51. package/assets/constants/BootsItemNames.d.ts +0 -1
  52. package/assets/constants/BootsItemNames.js +0 -13
  53. package/assets/constants/LegendaryItemNames.d.ts +0 -4
  54. package/assets/constants/LegendaryItemNames.js +0 -125
  55. package/assets/constants/StatRunes.d.ts +0 -28
  56. package/assets/constants/StatRunes.js +0 -11
  57. package/assets/constants/StatRunesByRow.d.ts +0 -17
  58. package/assets/constants/StatRunesByRow.js +0 -17
  59. package/assets/constants/base/Champion.d.ts +0 -7903
  60. package/assets/constants/base/Champion.js +0 -1
  61. package/assets/constants/base/Item.d.ts +0 -21193
  62. package/assets/constants/base/Item.js +0 -1
  63. package/assets/constants/base/RunesReforged.d.ts +0 -491
  64. package/assets/constants/base/RunesReforged.js +0 -1
  65. package/assets/constants/base/Summoner.d.ts +0 -582
  66. package/assets/constants/base/Summoner.js +0 -1
  67. package/assets/index.d.ts +0 -4
  68. package/assets/index.js +0 -11
  69. package/assets/scripts/asset-scripts/champion.js +0 -10
  70. package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
  71. package/assets/scripts/asset-scripts/generate-all.js +0 -4
  72. package/assets/scripts/asset-scripts/item.d.ts +0 -1
  73. package/assets/scripts/asset-scripts/item.js +0 -10
  74. package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
  75. package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
  76. package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
  77. package/assets/scripts/asset-scripts/summoner.js +0 -10
  78. package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
  79. package/assets/scripts/constants/RuneIdComment.js +0 -24
  80. package/assets/scripts/generate-all.d.ts +0 -23
  81. package/assets/scripts/generate-all.js +0 -27
  82. package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
  83. package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
  84. package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
  85. package/assets/scripts/generate-categorized-item-keys.js +0 -59
  86. package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
  87. package/assets/scripts/generate-categorized-item-names.js +0 -56
  88. package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
  89. package/assets/scripts/generate-champion-ids-by-name.js +0 -17
  90. package/assets/scripts/generate-champion-ids.d.ts +0 -1
  91. package/assets/scripts/generate-champion-ids.js +0 -18
  92. package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
  93. package/assets/scripts/generate-champion-keys-num.js +0 -20
  94. package/assets/scripts/generate-champion-keys.d.ts +0 -1
  95. package/assets/scripts/generate-champion-keys.js +0 -18
  96. package/assets/scripts/generate-champion-names.d.ts +0 -1
  97. package/assets/scripts/generate-champion-names.js +0 -18
  98. package/assets/scripts/generate-item-keys-num.d.ts +0 -1
  99. package/assets/scripts/generate-item-keys-num.js +0 -24
  100. package/assets/scripts/generate-item-keys.d.ts +0 -1
  101. package/assets/scripts/generate-item-keys.js +0 -22
  102. package/assets/scripts/generate-item-names.d.ts +0 -1
  103. package/assets/scripts/generate-item-names.js +0 -22
  104. package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
  105. package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
  106. package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
  107. package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
  108. package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
  109. package/assets/scripts/generate-non-stat-rune-names.js +0 -20
  110. package/assets/scripts/generate-rune-ids.d.ts +0 -1
  111. package/assets/scripts/generate-rune-ids.js +0 -27
  112. package/assets/scripts/generate-rune-names.d.ts +0 -1
  113. package/assets/scripts/generate-rune-names.js +0 -25
  114. package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
  115. package/assets/scripts/generate-rune-picking-relationships.js +0 -52
  116. package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
  117. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
  118. package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
  119. package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
  120. package/assets/scripts/generate-rune-sets.d.ts +0 -1
  121. package/assets/scripts/generate-rune-sets.js +0 -116
  122. package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
  123. package/assets/scripts/generate-spell-ids-by-name.js +0 -17
  124. package/assets/scripts/generate-spell-ids.d.ts +0 -1
  125. package/assets/scripts/generate-spell-ids.js +0 -18
  126. package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
  127. package/assets/scripts/generate-spell-keys-num.js +0 -20
  128. package/assets/scripts/generate-spell-keys.d.ts +0 -1
  129. package/assets/scripts/generate-spell-keys.js +0 -18
  130. package/assets/scripts/generate-spell-names.d.ts +0 -1
  131. package/assets/scripts/generate-spell-names.js +0 -18
  132. package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
  133. package/assets/scripts/generate-stat-rune-ids.js +0 -18
  134. package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
  135. package/assets/scripts/generate-stat-rune-names.js +0 -16
  136. package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
  137. package/assets/scripts/helpers/enableEscapedValues.js +0 -34
  138. package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
  139. package/assets/scripts/helpers/generateIndexFile.js +0 -3
  140. package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
  141. package/assets/scripts/helpers/getExportStatement.js +0 -37
  142. package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
  143. package/assets/scripts/helpers/getFmtdComment.js +0 -11
  144. package/assets/scripts/helpers/validateNumber.d.ts +0 -1
  145. package/assets/scripts/helpers/validateNumber.js +0 -6
  146. package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
  147. package/assets/scripts/helpers/writeToTmpFile.js +0 -18
  148. package/assets/scripts/print-file-names.d.ts +0 -1
  149. package/assets/scripts/print-file-names.js +0 -89
  150. package/core/Locale.d.ts +0 -2
  151. package/core/PatchVersion.d.ts +0 -1
  152. package/core/PatchVersion.js +0 -1
  153. package/core/constants/Abilities.d.ts +0 -17
  154. package/core/constants/Abilities.js +0 -19
  155. package/core/constants/BuildingTypes.d.ts +0 -6
  156. package/core/constants/BuildingTypes.js +0 -7
  157. package/core/constants/Champions/ChampionIds.d.ts +0 -171
  158. package/core/constants/Champions/ChampionIds.js +0 -1
  159. package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
  160. package/core/constants/Champions/ChampionIdsByName.js +0 -1
  161. package/core/constants/Champions/ChampionKeys.d.ts +0 -171
  162. package/core/constants/Champions/ChampionKeys.js +0 -1
  163. package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
  164. package/core/constants/Champions/ChampionKeysNum.js +0 -1
  165. package/core/constants/Champions/ChampionNames.d.ts +0 -171
  166. package/core/constants/Champions/ChampionNames.js +0 -1
  167. package/core/constants/Continents.d.ts +0 -8
  168. package/core/constants/Continents.js +0 -9
  169. package/core/constants/DataDragonUrls.d.ts +0 -52
  170. package/core/constants/DataDragonUrls.js +0 -58
  171. package/core/constants/DragonTypes.d.ts +0 -11
  172. package/core/constants/DragonTypes.js +0 -12
  173. package/core/constants/GameModes.d.ts +0 -12
  174. package/core/constants/GameModes.js +0 -13
  175. package/core/constants/GameTypes.d.ts +0 -7
  176. package/core/constants/GameTypes.js +0 -8
  177. package/core/constants/Items/BootsItemKeys.d.ts +0 -14
  178. package/core/constants/Items/BootsItemKeys.js +0 -1
  179. package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
  180. package/core/constants/Items/BootsItemKeysNum.js +0 -1
  181. package/core/constants/Items/BootsItemNames.d.ts +0 -14
  182. package/core/constants/Items/BootsItemNames.js +0 -1
  183. package/core/constants/Items/ItemKeys.d.ts +0 -238
  184. package/core/constants/Items/ItemKeys.js +0 -1
  185. package/core/constants/Items/ItemKeysNum.d.ts +0 -238
  186. package/core/constants/Items/ItemKeysNum.js +0 -1
  187. package/core/constants/Items/ItemNames.d.ts +0 -244
  188. package/core/constants/Items/ItemNames.js +0 -1
  189. package/core/constants/Items/ItemTypes.d.ts +0 -7
  190. package/core/constants/Items/ItemTypes.js +0 -8
  191. package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
  192. package/core/constants/Items/LegendaryItemKeys.js +0 -1
  193. package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
  194. package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
  195. package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
  196. package/core/constants/Items/LegendaryItemNames.js +0 -1
  197. package/core/constants/KillTypes.d.ts +0 -7
  198. package/core/constants/KillTypes.js +0 -8
  199. package/core/constants/LaneTypes.d.ts +0 -7
  200. package/core/constants/LaneTypes.js +0 -8
  201. package/core/constants/Lanes.d.ts +0 -8
  202. package/core/constants/Lanes.js +0 -9
  203. package/core/constants/LeagueTexts.d.ts +0 -49
  204. package/core/constants/LeagueTexts.js +0 -54
  205. package/core/constants/Levels.d.ts +0 -22
  206. package/core/constants/Levels.js +0 -23
  207. package/core/constants/MapIds.d.ts +0 -17
  208. package/core/constants/MapIds.js +0 -18
  209. package/core/constants/MonsterTypes.d.ts +0 -8
  210. package/core/constants/MonsterTypes.js +0 -9
  211. package/core/constants/ParticipantIds.d.ts +0 -14
  212. package/core/constants/ParticipantIds.js +0 -15
  213. package/core/constants/PlatformApiUris.d.ts +0 -20
  214. package/core/constants/PlatformApiUris.js +0 -21
  215. package/core/constants/PlatformIds.d.ts +0 -23
  216. package/core/constants/PlatformIds.js +0 -26
  217. package/core/constants/Positions.d.ts +0 -9
  218. package/core/constants/Positions.js +0 -10
  219. package/core/constants/QueueIds.d.ts +0 -114
  220. package/core/constants/QueueIds.js +0 -140
  221. package/core/constants/QueueTypes.d.ts +0 -7
  222. package/core/constants/QueueTypes.js +0 -8
  223. package/core/constants/RankedRanks.d.ts +0 -8
  224. package/core/constants/RankedRanks.js +0 -9
  225. package/core/constants/RegionalApiUris.d.ts +0 -8
  226. package/core/constants/RegionalApiUris.js +0 -9
  227. package/core/constants/Regions.d.ts +0 -23
  228. package/core/constants/Regions.js +0 -26
  229. package/core/constants/RelativeTeams.d.ts +0 -6
  230. package/core/constants/RelativeTeams.js +0 -7
  231. package/core/constants/Roles.d.ts +0 -8
  232. package/core/constants/Roles.js +0 -9
  233. package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
  234. package/core/constants/Runes/NonStatRuneIds.js +0 -1
  235. package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
  236. package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
  237. package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
  238. package/core/constants/Runes/NonStatRuneNames.js +0 -1
  239. package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
  240. package/core/constants/Runes/RuneIconFileNames.js +0 -97
  241. package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
  242. package/core/constants/Runes/RunePickingRelationships.js +0 -4
  243. package/core/constants/Runes/RuneSets.d.ts +0 -721
  244. package/core/constants/Runes/RuneSets.js +0 -11
  245. package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
  246. package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
  247. package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
  248. package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
  249. package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
  250. package/core/constants/Runes/RuneTreeIds.js +0 -14
  251. package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
  252. package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
  253. package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
  254. package/core/constants/Runes/RuneTreeNames.js +0 -14
  255. package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
  256. package/core/constants/Runes/RuneTreeTypes.js +0 -7
  257. package/core/constants/SkillSlots.d.ts +0 -8
  258. package/core/constants/SkillSlots.js +0 -9
  259. package/core/constants/Skills.d.ts +0 -8
  260. package/core/constants/Skills.js +0 -9
  261. package/core/constants/Spells/SpellIds.d.ts +0 -21
  262. package/core/constants/Spells/SpellIds.js +0 -1
  263. package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
  264. package/core/constants/Spells/SpellIdsByName.js +0 -1
  265. package/core/constants/Spells/SpellKeys.d.ts +0 -21
  266. package/core/constants/Spells/SpellKeys.js +0 -1
  267. package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
  268. package/core/constants/Spells/SpellKeysNum.js +0 -1
  269. package/core/constants/Spells/SpellNames.d.ts +0 -21
  270. package/core/constants/Spells/SpellNames.js +0 -1
  271. package/core/constants/TeamIds.d.ts +0 -6
  272. package/core/constants/TeamIds.js +0 -7
  273. package/core/constants/TowerTypes.d.ts +0 -8
  274. package/core/constants/TowerTypes.js +0 -9
  275. package/core/constants/WardTypes.d.ts +0 -9
  276. package/core/constants/WardTypes.js +0 -10
  277. package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
  278. package/core/helpers/Champions/getChampionIdByKey.js +0 -4
  279. package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
  280. package/core/helpers/Champions/getChampionIdByName.js +0 -4
  281. package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
  282. package/core/helpers/Champions/getChampionKeyById.js +0 -4
  283. package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
  284. package/core/helpers/Champions/getChampionKeyByName.js +0 -5
  285. package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
  286. package/core/helpers/Champions/getChampionNameById.js +0 -5
  287. package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
  288. package/core/helpers/Champions/getChampionNameByKey.js +0 -4
  289. package/core/helpers/Champions/isChampionId.d.ts +0 -2
  290. package/core/helpers/Champions/isChampionId.js +0 -4
  291. package/core/helpers/Champions/isChampionKey.d.ts +0 -2
  292. package/core/helpers/Champions/isChampionKey.js +0 -4
  293. package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
  294. package/core/helpers/Champions/isChampionKeyNum.js +0 -4
  295. package/core/helpers/Champions/isChampionName.d.ts +0 -2
  296. package/core/helpers/Champions/isChampionName.js +0 -4
  297. package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
  298. package/core/helpers/Items/getItemKeyByName.js +0 -4
  299. package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
  300. package/core/helpers/Items/getItemKeyNumByName.js +0 -4
  301. package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
  302. package/core/helpers/Items/getItemNameByKey.js +0 -4
  303. package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
  304. package/core/helpers/Items/isBootsItemKey.js +0 -4
  305. package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
  306. package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
  307. package/core/helpers/Items/isBootsItemName.d.ts +0 -2
  308. package/core/helpers/Items/isBootsItemName.js +0 -4
  309. package/core/helpers/Items/isItemKey.d.ts +0 -2
  310. package/core/helpers/Items/isItemKey.js +0 -4
  311. package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
  312. package/core/helpers/Items/isItemKeyNum.js +0 -4
  313. package/core/helpers/Items/isItemName.d.ts +0 -2
  314. package/core/helpers/Items/isItemName.js +0 -4
  315. package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
  316. package/core/helpers/Items/isLegendaryItemKey.js +0 -4
  317. package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
  318. package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
  319. package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
  320. package/core/helpers/Items/isLegendaryItemName.js +0 -4
  321. package/core/helpers/Items/isTier2Boots.d.ts +0 -3
  322. package/core/helpers/Items/isTier2Boots.js +0 -9
  323. package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
  324. package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
  325. package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
  326. package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
  327. package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
  328. package/core/helpers/Runes/getRuneCategoryName.js +0 -16
  329. package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
  330. package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
  331. package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
  332. package/core/helpers/Runes/getRuneIdByName.js +0 -4
  333. package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
  334. package/core/helpers/Runes/getRuneNameById.js +0 -4
  335. package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
  336. package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
  337. package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
  338. package/core/helpers/Runes/getStatRuneNameById.js +0 -4
  339. package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
  340. package/core/helpers/Runes/isDominationRuneId.js +0 -4
  341. package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
  342. package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
  343. package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
  344. package/core/helpers/Runes/isDominationRuneName.js +0 -4
  345. package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
  346. package/core/helpers/Runes/isInspirationRuneId.js +0 -4
  347. package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
  348. package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
  349. package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
  350. package/core/helpers/Runes/isInspirationRuneName.js +0 -4
  351. package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
  352. package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
  353. package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
  354. package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
  355. package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
  356. package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
  357. package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
  358. package/core/helpers/Runes/isNonStatRuneId.js +0 -4
  359. package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
  360. package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
  361. package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
  362. package/core/helpers/Runes/isNonStatRuneName.js +0 -4
  363. package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
  364. package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
  365. package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
  366. package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
  367. package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
  368. package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
  369. package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
  370. package/core/helpers/Runes/isResolveRuneId.js +0 -4
  371. package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
  372. package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
  373. package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
  374. package/core/helpers/Runes/isResolveRuneName.js +0 -4
  375. package/core/helpers/Runes/isRuneId.d.ts +0 -2
  376. package/core/helpers/Runes/isRuneId.js +0 -4
  377. package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
  378. package/core/helpers/Runes/isRuneIdNum.js +0 -4
  379. package/core/helpers/Runes/isRuneName.d.ts +0 -2
  380. package/core/helpers/Runes/isRuneName.js +0 -4
  381. package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
  382. package/core/helpers/Runes/isSorceryRuneId.js +0 -4
  383. package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
  384. package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
  385. package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
  386. package/core/helpers/Runes/isSorceryRuneName.js +0 -4
  387. package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
  388. package/core/helpers/Runes/isStatRuneId.js +0 -4
  389. package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
  390. package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
  391. package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
  392. package/core/helpers/Runes/isStatRuneName.js +0 -4
  393. package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
  394. package/core/helpers/Spells/getSpellIdByKey.js +0 -4
  395. package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
  396. package/core/helpers/Spells/getSpellIdByName.js +0 -4
  397. package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
  398. package/core/helpers/Spells/getSpellKeyById.js +0 -4
  399. package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
  400. package/core/helpers/Spells/getSpellKeyByName.js +0 -5
  401. package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
  402. package/core/helpers/Spells/getSpellNameById.js +0 -5
  403. package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
  404. package/core/helpers/Spells/getSpellNameByKey.js +0 -4
  405. package/core/helpers/Spells/isSpellId.d.ts +0 -2
  406. package/core/helpers/Spells/isSpellId.js +0 -4
  407. package/core/helpers/Spells/isSpellKey.d.ts +0 -2
  408. package/core/helpers/Spells/isSpellKey.js +0 -4
  409. package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
  410. package/core/helpers/Spells/isSpellKeyNum.js +0 -4
  411. package/core/helpers/Spells/isSpellName.d.ts +0 -2
  412. package/core/helpers/Spells/isSpellName.js +0 -4
  413. package/core/helpers/getPositionImageUrl.d.ts +0 -2
  414. package/core/helpers/getPositionImageUrl.js +0 -11
  415. package/core/helpers/isRiotId.d.ts +0 -5
  416. package/core/helpers/isRiotId.js +0 -15
  417. package/core/helpers/makeRiotId.d.ts +0 -4
  418. package/core/helpers/makeRiotId.js +0 -5
  419. package/core/helpers/splitRiotId.d.ts +0 -10
  420. package/core/helpers/splitRiotId.js +0 -16
  421. package/core/index.d.ts +0 -139
  422. package/core/index.js +0 -150
  423. package/core/types/championJson.d.ts +0 -85
  424. package/core/types/championJson.js +0 -1
  425. package/core/types/interfaces.d.ts +0 -22
  426. package/core/types/interfaces.js +0 -1
  427. package/core/types/types.d.ts +0 -268
  428. package/core/types/types.js +0 -1
  429. /package/{core → dist}/Locale.js +0 -0
  430. /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.26.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
- "core: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
- ];
@@ -1,4 +0,0 @@
1
- /**
2
- * @see https://leagueoflegends.fandom.com/wiki/Legendary_item
3
- */
4
- export declare const LegendaryItemNames: readonly ["Abyssal Mask", "Anathema's Chains", "Archangel's Staff", "Ardent Censer", "Atma's Reckoning", "Axiom Arc", "Banshee's Veil", "Black Cleaver", "Blackfire Torch", "Blade of The Ruined King", "Bloodletter's Curse", "Bloodsong", "Bloodthirster", "Bounty of Worlds", "Celestial Opposition", "Chempunk Chainsword", "Cosmic Drive", "Cryptbloom", "Dawncore", "Dead Man's Plate", "Death's Dance", "Dream Maker", "Edge of Night", "Essence Reaver", "Experimental Hexplate", "Fimbulwinter", "Force of Nature", "Frozen Heart", "Guardian Angel", "Hellfire Hatchet", "Hextech Gunblade", "Hollow Radiance", "Horizon Focus", "Hubris", "Hullbreaker", "Immortal Shieldbow", "Imperial Mandate", "Kaenic Rookern", "Knight's Vow", "Kraken Slayer", "Lich Bane", "Lord Dominik's Regards", "Luden's Companion", "Malignance", "Manamune", "Maw of Malmortius", "Mejai's Soulstealer", "Mercurial Scimitar", "Mikael's Blessing", "Morellonomicon", "Mortal Reminder", "Muramana", "Nashor's Tooth", "Opportunity", "Overlord's Bloodmail", "Perplexity", "Phantom Dancer", "Profane Hydra", "Rabadon's Deathcap", "Randuin's Omen", "Rapid Firecannon", "Ravenous Hydra", "Redemption", "Rite Of Ruin", "Runaan's Hurricane", "Rylai's Crystal Scepter", "Seraph's Embrace", "Serpent's Fang", "Serylda's Grudge", "Shadowflame", "Solstice Sleigh", "Spear of Shojin", "Spectral Cutlass", "Spirit Visage", "Staff of Flowing Water", "Statikk Shiv", "Sterak's Gage", "Stormrazor", "Stormsurge", "Sundered Sky", "Sunfire Aegis", "Terminus", "The Collector", "Thornmail", "Titanic Hydra", "Trailblazer", "Umbral Glaive", "Unending Despair", "Vigilant Wardstone", "Void Staff", "Voltaic Cyclosword", "Warmog's Armor", "Winter's Approach", "Wit's End", "Wordless Promise", "Zaz'Zak's Realmspike", "Zeke's Convergence", "Zhonya's Hourglass", "Echoes of Helia", "Liandry's Torment", "Locket of the Iron Solari", "Moonstone Renewer", "Navori Flickerblade", "Riftmaker", "Shurelya's Battlesong", "Stridebreaker", "Trinity Force", "Eclipse", "Iceborn Gauntlet", "Infinity Edge", "Guinsoo's Rageblade", "Hextech Rocketbelt", "Jak'Sho, The Protean", "Heartsteel", "Rod of Ages", "Youmuu's Ghostblade", "Yun Tal Wildarrows", "Chemtech Putrifier", "Sword of Blossoming Dawn"];
@@ -1,125 +0,0 @@
1
- /**
2
- * @see https://leagueoflegends.fandom.com/wiki/Legendary_item
3
- */
4
- export const LegendaryItemNames = [
5
- "Abyssal Mask",
6
- "Anathema's Chains",
7
- "Archangel's Staff",
8
- "Ardent Censer",
9
- "Atma's Reckoning",
10
- "Axiom Arc",
11
- "Banshee's Veil",
12
- "Black Cleaver",
13
- "Blackfire Torch",
14
- "Blade of The Ruined King",
15
- "Bloodletter's Curse",
16
- "Bloodsong",
17
- "Bloodthirster",
18
- "Bounty of Worlds",
19
- "Celestial Opposition",
20
- "Chempunk Chainsword",
21
- "Cosmic Drive",
22
- "Cryptbloom",
23
- "Dawncore",
24
- "Dead Man's Plate",
25
- "Death's Dance",
26
- "Dream Maker",
27
- "Edge of Night",
28
- "Essence Reaver",
29
- "Experimental Hexplate",
30
- "Fimbulwinter",
31
- "Force of Nature",
32
- "Frozen Heart",
33
- "Guardian Angel",
34
- "Hellfire Hatchet",
35
- "Hextech Gunblade",
36
- "Hollow Radiance",
37
- "Horizon Focus",
38
- "Hubris",
39
- "Hullbreaker",
40
- "Immortal Shieldbow",
41
- "Imperial Mandate",
42
- "Kaenic Rookern",
43
- "Knight's Vow",
44
- "Kraken Slayer",
45
- "Lich Bane",
46
- "Lord Dominik's Regards",
47
- "Luden's Companion",
48
- "Malignance",
49
- "Manamune",
50
- "Maw of Malmortius",
51
- "Mejai's Soulstealer",
52
- "Mercurial Scimitar",
53
- "Mikael's Blessing",
54
- "Morellonomicon",
55
- "Mortal Reminder",
56
- "Muramana",
57
- "Nashor's Tooth",
58
- "Opportunity",
59
- "Overlord's Bloodmail",
60
- "Perplexity",
61
- "Phantom Dancer",
62
- "Profane Hydra",
63
- "Rabadon's Deathcap",
64
- "Randuin's Omen",
65
- "Rapid Firecannon",
66
- "Ravenous Hydra",
67
- "Redemption",
68
- "Rite Of Ruin",
69
- "Runaan's Hurricane",
70
- "Rylai's Crystal Scepter",
71
- "Seraph's Embrace",
72
- "Serpent's Fang",
73
- "Serylda's Grudge",
74
- "Shadowflame",
75
- "Solstice Sleigh",
76
- "Spear of Shojin",
77
- "Spectral Cutlass",
78
- "Spirit Visage",
79
- "Staff of Flowing Water",
80
- "Statikk Shiv",
81
- "Sterak's Gage",
82
- "Stormrazor",
83
- "Stormsurge",
84
- "Sundered Sky",
85
- "Sunfire Aegis",
86
- "Terminus",
87
- "The Collector",
88
- "Thornmail",
89
- "Titanic Hydra",
90
- "Trailblazer",
91
- "Umbral Glaive",
92
- "Unending Despair",
93
- "Vigilant Wardstone",
94
- "Void Staff",
95
- "Voltaic Cyclosword",
96
- "Warmog's Armor",
97
- "Winter's Approach",
98
- "Wit's End",
99
- "Wordless Promise",
100
- "Zaz'Zak's Realmspike",
101
- "Zeke's Convergence",
102
- "Zhonya's Hourglass",
103
- "Echoes of Helia",
104
- "Liandry's Torment",
105
- "Locket of the Iron Solari",
106
- "Moonstone Renewer",
107
- "Navori Flickerblade",
108
- "Riftmaker",
109
- "Shurelya's Battlesong",
110
- "Stridebreaker",
111
- "Trinity Force",
112
- "Eclipse",
113
- "Iceborn Gauntlet",
114
- "Infinity Edge",
115
- "Guinsoo's Rageblade",
116
- "Hextech Rocketbelt",
117
- "Jak'Sho, The Protean",
118
- "Heartsteel",
119
- "Rod of Ages",
120
- "Youmuu's Ghostblade",
121
- "Yun Tal Wildarrows",
122
- // Arena exclusive
123
- "Chemtech Putrifier",
124
- "Sword of Blossoming Dawn",
125
- ];
@@ -1,28 +0,0 @@
1
- export declare const StatRunes: readonly [{
2
- readonly id: "5008";
3
- readonly description: "Offense (AF)";
4
- }, {
5
- readonly id: "5005";
6
- readonly description: "Offense (AS)";
7
- }, {
8
- readonly id: "5007";
9
- readonly description: "Offense (AH)";
10
- }, {
11
- readonly id: "5008f";
12
- readonly description: "Flex (AF)";
13
- }, {
14
- readonly id: "5010f";
15
- readonly description: "Flex (MS)";
16
- }, {
17
- readonly id: "5001f";
18
- readonly description: "Flex (HP+)";
19
- }, {
20
- readonly id: "5011";
21
- readonly description: "Defense (HP)";
22
- }, {
23
- readonly id: "5013";
24
- readonly description: "Defense (Tenacity + Slow Resist)";
25
- }, {
26
- readonly id: "5001";
27
- readonly description: "Defense (HP+)";
28
- }];
@@ -1,11 +0,0 @@
1
- export const StatRunes = [
2
- { id: '5008', description: 'Offense (AF)' },
3
- { id: '5005', description: 'Offense (AS)' },
4
- { id: '5007', description: 'Offense (AH)' },
5
- { id: '5008f', description: 'Flex (AF)' },
6
- { id: '5010f', description: 'Flex (MS)' },
7
- { id: '5001f', description: 'Flex (HP+)' },
8
- { id: '5011', description: 'Defense (HP)' },
9
- { id: '5013', description: 'Defense (Tenacity + Slow Resist)' },
10
- { id: '5001', description: 'Defense (HP+)' },
11
- ];
@@ -1,17 +0,0 @@
1
- export declare const StatRunesByRow: {
2
- readonly 0: {
3
- readonly '5008': "Offense (AF)";
4
- readonly '5005': "Offense (AS)";
5
- readonly '5007': "Offense (AH)";
6
- };
7
- readonly 1: {
8
- readonly '5008f': "Flex (AF)";
9
- readonly '5010f': "Flex (MS)";
10
- readonly '5001f': "Flex (HP+)";
11
- };
12
- readonly 2: {
13
- readonly '5011': "Defense (HP)";
14
- readonly '5013': "Defense (Tenacity + Slow Resist)";
15
- readonly '5001': "Defense (HP+)";
16
- };
17
- };
@@ -1,17 +0,0 @@
1
- export const StatRunesByRow = {
2
- 0: {
3
- '5008': 'Offense (AF)',
4
- '5005': 'Offense (AS)',
5
- '5007': 'Offense (AH)',
6
- },
7
- 1: {
8
- '5008f': 'Flex (AF)',
9
- '5010f': 'Flex (MS)',
10
- '5001f': 'Flex (HP+)',
11
- },
12
- 2: {
13
- '5011': 'Defense (HP)',
14
- '5013': 'Defense (Tenacity + Slow Resist)',
15
- '5001': 'Defense (HP+)',
16
- },
17
- };