lol-constants 2.25.0 → 2.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/assets/constants/{Champion.d.ts → base/Champion.d.ts} +188 -188
  2. package/assets/constants/base/Champion.js +1 -0
  3. package/assets/constants/{Item.d.ts → base/Item.d.ts} +826 -412
  4. package/assets/constants/base/Item.js +1 -0
  5. package/assets/constants/{RunesReforged.d.ts → base/RunesReforged.d.ts} +5 -5
  6. package/assets/constants/base/RunesReforged.js +1 -0
  7. package/assets/constants/{Summoner.d.ts → base/Summoner.d.ts} +1 -1
  8. package/assets/constants/{Summoner.js → base/Summoner.js} +1 -1
  9. package/assets/index.d.ts +4 -4
  10. package/assets/index.js +4 -4
  11. package/assets/scripts/asset-scripts/champion.js +3 -2
  12. package/assets/scripts/asset-scripts/item.js +3 -2
  13. package/assets/scripts/asset-scripts/runes-reforged.js +3 -2
  14. package/assets/scripts/asset-scripts/summoner.js +3 -2
  15. package/assets/scripts/generate-categorized-item-keys-num.js +1 -1
  16. package/assets/scripts/generate-categorized-item-keys.js +1 -1
  17. package/assets/scripts/generate-categorized-item-names.js +1 -1
  18. package/assets/scripts/generate-champion-ids-by-name.js +1 -1
  19. package/assets/scripts/generate-champion-ids.js +1 -1
  20. package/assets/scripts/generate-champion-keys-num.js +1 -1
  21. package/assets/scripts/generate-champion-keys.js +1 -1
  22. package/assets/scripts/generate-champion-names.js +1 -1
  23. package/assets/scripts/generate-item-keys-num.js +1 -1
  24. package/assets/scripts/generate-item-keys.js +1 -1
  25. package/assets/scripts/generate-item-names.js +1 -1
  26. package/assets/scripts/generate-non-stat-rune-ids-num.js +1 -1
  27. package/assets/scripts/generate-non-stat-rune-ids.js +1 -1
  28. package/assets/scripts/generate-non-stat-rune-names.js +1 -1
  29. package/assets/scripts/generate-rune-ids.js +1 -1
  30. package/assets/scripts/generate-rune-names.js +1 -1
  31. package/assets/scripts/generate-rune-picking-relationships.js +1 -1
  32. package/assets/scripts/generate-rune-sets-by-rune-names-num.js +1 -1
  33. package/assets/scripts/generate-rune-sets-by-rune-names.js +1 -1
  34. package/assets/scripts/generate-rune-sets.js +1 -1
  35. package/assets/scripts/generate-spell-ids-by-name.js +1 -1
  36. package/assets/scripts/generate-spell-ids.js +1 -1
  37. package/assets/scripts/generate-spell-keys-num.js +1 -1
  38. package/assets/scripts/generate-spell-keys.js +1 -1
  39. package/assets/scripts/generate-spell-names.js +1 -1
  40. package/core/Locale.d.ts +2 -0
  41. package/core/Locale.js +1 -0
  42. package/core/PatchVersion.d.ts +1 -0
  43. package/core/PatchVersion.js +1 -0
  44. package/core/constants/DataDragonUrls.d.ts +18 -18
  45. package/core/constants/DataDragonUrls.js +6 -4
  46. package/package.json +2 -2
  47. package/assets/constants/Champion.js +0 -1
  48. package/assets/constants/Item.js +0 -1
  49. package/assets/constants/RunesReforged.js +0 -1
@@ -0,0 +1 @@
1
+ export const PatchVersion = '14.17';
@@ -1,52 +1,52 @@
1
- export declare const dataDragonVersion = "14.14.1";
1
+ export declare const dataDragonVersion = "14.17.1";
2
2
  /**
3
- * Data Dragon CDN Paths.
3
+ * Data Dragon CDN paths.
4
4
  */
5
5
  export declare const DataDragonUrls: {
6
- readonly DATA_DRAGON_BASE: string;
7
- readonly COMMUNITY_DRAGON_BASE: string;
6
+ readonly DATA_DRAGON_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1";
7
+ readonly COMMUNITY_DRAGON_BASE: "https://raw.communitydragon.org/14.17";
8
8
  /**
9
9
  * Append with `/MonkeyKing.png` (`/{championId}.png`).
10
10
  */
11
- readonly CHAMPION_ICON_BASE: `${string}/img/champion`;
11
+ readonly CHAMPION_ICON_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/champion";
12
12
  /**
13
13
  * Append with `/MonkeyKing_0.png` (`/{championId}_{skinNum}.png`).
14
14
  */
15
- readonly CHAMPION_LOADING_BASE: `${string}/img/champion/loading`;
15
+ readonly CHAMPION_LOADING_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/champion/loading";
16
16
  /**
17
17
  * Append with `/MonkeyKing_0.png` (`/{championId}_{skinNum}.png`).
18
18
  */
19
- readonly CHAMPION_SPLASH_BASE: `${string}/img/champion/splash`;
19
+ readonly CHAMPION_SPLASH_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/champion/splash";
20
20
  /**
21
21
  * Append with `/FlashFrost.png` (`/{abilityKey}.png`).
22
22
  */
23
- readonly ABILITY_ICON_BASE: `${string}/img/spell`;
23
+ readonly ABILITY_ICON_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/spell";
24
24
  /**
25
25
  * Append with `/685.png` (`/{iconId}.png`).
26
26
  */
27
- readonly PROFILE_ICON_BASE: `${string}/img/profileicon`;
27
+ readonly PROFILE_ICON_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/profileicon";
28
28
  /**
29
29
  * Append with `/1001.png` (`/{itemId}.png`).
30
30
  */
31
- readonly ITEM_ICON_BASE: `${string}/img/item`;
31
+ readonly ITEM_ICON_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/img/item";
32
32
  /**
33
33
  * Append with `/MonkeyKing.json` (`/{championId}.json`).
34
34
  */
35
- readonly CHAMPION_BASE: `${string}/data/en_US/champion`;
36
- readonly CHAMPION: `${string}/data/en_US/champion.json`;
37
- readonly ITEM: `${string}/data/en_US/item.json`;
38
- readonly RUNES_REFORGED: `${string}/data/en_US/runesReforged.json`;
39
- readonly SUMMONER: `${string}/data/en_US/summoner.json`;
35
+ readonly CHAMPION_BASE: "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/cs_CZ/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/el_GR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pl_PL/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ro_RO/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/hu_HU/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_GB/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/de_DE/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_ES/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/it_IT/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/fr_FR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ja_JP/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ko_KR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_MX/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_AR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pt_BR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_US/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_AU/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ru_RU/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/tr_TR/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ms_MY/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_PH/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_SG/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/th_TH/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/vi_VN/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/id_ID/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_MY/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_CN/champion" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_TW/champion";
36
+ readonly CHAMPION: "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/cs_CZ/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/el_GR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pl_PL/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ro_RO/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/hu_HU/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_GB/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/de_DE/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_ES/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/it_IT/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/fr_FR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ja_JP/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ko_KR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_MX/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_AR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pt_BR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_US/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_AU/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ru_RU/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/tr_TR/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ms_MY/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_PH/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_SG/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/th_TH/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/vi_VN/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/id_ID/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_MY/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_CN/champion.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_TW/champion.json";
37
+ readonly ITEM: "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/cs_CZ/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/el_GR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pl_PL/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ro_RO/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/hu_HU/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_GB/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/de_DE/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_ES/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/it_IT/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/fr_FR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ja_JP/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ko_KR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_MX/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_AR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pt_BR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_US/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_AU/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ru_RU/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/tr_TR/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ms_MY/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_PH/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_SG/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/th_TH/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/vi_VN/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/id_ID/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_MY/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_CN/item.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_TW/item.json";
38
+ readonly RUNES_REFORGED: "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/cs_CZ/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/el_GR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pl_PL/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ro_RO/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/hu_HU/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_GB/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/de_DE/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_ES/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/it_IT/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/fr_FR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ja_JP/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ko_KR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_MX/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_AR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pt_BR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_US/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_AU/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ru_RU/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/tr_TR/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ms_MY/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_PH/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_SG/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/th_TH/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/vi_VN/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/id_ID/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_MY/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_CN/runesReforged.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_TW/runesReforged.json";
39
+ readonly SUMMONER: "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/cs_CZ/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/el_GR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pl_PL/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ro_RO/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/hu_HU/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_GB/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/de_DE/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_ES/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/it_IT/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/fr_FR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ja_JP/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ko_KR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_MX/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/es_AR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/pt_BR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_US/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_AU/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ru_RU/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/tr_TR/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/ms_MY/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_PH/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/en_SG/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/th_TH/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/vi_VN/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/id_ID/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_MY/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_CN/summoner.json" | "https://ddragon.leagueoflegends.com/cdn/14.17.1/data/zh_TW/summoner.json";
40
40
  /**
41
41
  * @see https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/statmods
42
42
  */
43
- readonly STAT_RUNE_ICON_BASE: `${string}/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/statmods`;
43
+ readonly STAT_RUNE_ICON_BASE: "https://raw.communitydragon.org/14.17/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/statmods";
44
44
  /**
45
45
  * @see https://raw.communitydragon.org/latest/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/styles
46
46
  */
47
- readonly TREE_RUNE_ICON_BASE: `${string}/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/styles`;
47
+ readonly TREE_RUNE_ICON_BASE: "https://raw.communitydragon.org/14.17/plugins/rcp-be-lol-game-data/global/default/v1/perk-images/styles";
48
48
  /**
49
49
  * @see https://raw.communitydragon.org/latest/plugins/rcp-fe-lol-static-assets/global/default/svg
50
50
  */
51
- readonly POSITION_ICON_BASE: `${string}/plugins/rcp-fe-lol-static-assets/global/default/svg`;
51
+ readonly POSITION_ICON_BASE: "https://raw.communitydragon.org/14.17/plugins/rcp-fe-lol-static-assets/global/default/svg";
52
52
  };
@@ -1,10 +1,12 @@
1
- export const dataDragonVersion = '14.14.1';
2
- const cdragonVersion = '14.14';
1
+ import { Locale } from '../Locale';
2
+ import { PatchVersion } from '../PatchVersion';
3
+ const locale = Locale;
4
+ export const dataDragonVersion = `${PatchVersion}.1`;
5
+ const cdragonVersion = PatchVersion;
3
6
  const base = `https://ddragon.leagueoflegends.com/cdn/${dataDragonVersion}`;
4
7
  const cdragonBase = `https://raw.communitydragon.org/${cdragonVersion}`;
5
- const locale = 'en_US';
6
8
  /**
7
- * Data Dragon CDN Paths.
9
+ * Data Dragon CDN paths.
8
10
  */
9
11
  export const DataDragonUrls = {
10
12
  DATA_DRAGON_BASE: base,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.25.0",
3
+ "version": "2.26.0",
4
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
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
27
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",
28
+ "core:generate": "node --no-warnings --loader ts-node/esm src/assets/scripts/generate-all",
29
29
  "print-file-names": "node assets/scripts/print-file-names",
30
30
  "dev": "vite"
31
31
  }