lol-constants 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/assets/constants/BootsItemNames.d.ts +0 -5
  2. package/assets/constants/BootsItemNames.js +1 -8
  3. package/assets/constants/Champion.d.ts +345 -298
  4. package/assets/constants/Champion.js +1 -1
  5. package/assets/constants/Item.d.ts +6491 -994
  6. package/assets/constants/Item.js +1 -1
  7. package/assets/constants/LegendaryItemNames.d.ts +0 -5
  8. package/assets/constants/LegendaryItemNames.js +1 -8
  9. package/assets/constants/MythicItemNames.d.ts +0 -5
  10. package/assets/constants/MythicItemNames.js +3 -37
  11. package/assets/constants/OrnnItemNames.d.ts +1 -0
  12. package/assets/constants/OrnnItemNames.js +33 -0
  13. package/assets/constants/RunesReforged.d.ts +2 -2
  14. package/assets/constants/RunesReforged.js +1 -1
  15. package/assets/constants/StatRunes.d.ts +0 -4
  16. package/assets/constants/StatRunes.js +0 -3
  17. package/assets/constants/StatRunesByRow.d.ts +0 -3
  18. package/assets/constants/StatRunesByRow.js +0 -3
  19. package/assets/constants/Summoner.d.ts +96 -32
  20. package/assets/constants/Summoner.js +1 -1
  21. package/assets/index.d.ts +0 -5
  22. package/assets/index.js +6 -5
  23. package/core/constants/Champions/ChampionIds.d.ts +1 -0
  24. package/core/constants/Champions/ChampionIds.js +1 -1
  25. package/core/constants/Champions/ChampionIdsByName.d.ts +1 -0
  26. package/core/constants/Champions/ChampionIdsByName.js +1 -1
  27. package/core/constants/Champions/ChampionKeys.d.ts +1 -0
  28. package/core/constants/Champions/ChampionKeys.js +1 -1
  29. package/core/constants/Champions/ChampionKeysNum.d.ts +1 -0
  30. package/core/constants/Champions/ChampionKeysNum.js +1 -1
  31. package/core/constants/Champions/ChampionNames.d.ts +1 -0
  32. package/core/constants/Champions/ChampionNames.js +1 -1
  33. package/core/constants/DataDragonUrls.js +2 -2
  34. package/core/constants/Items/BootsItemKeys.d.ts +6 -6
  35. package/core/constants/Items/BootsItemKeys.js +1 -1
  36. package/core/constants/Items/BootsItemKeysNum.d.ts +6 -6
  37. package/core/constants/Items/BootsItemKeysNum.js +1 -1
  38. package/core/constants/Items/BootsItemNames.d.ts +6 -0
  39. package/core/constants/Items/BootsItemNames.js +1 -1
  40. package/core/constants/Items/ItemKeys.d.ts +151 -137
  41. package/core/constants/Items/ItemKeys.js +1 -1
  42. package/core/constants/Items/ItemKeysNum.d.ts +151 -137
  43. package/core/constants/Items/ItemKeysNum.js +1 -1
  44. package/core/constants/Items/ItemNames.d.ts +151 -3
  45. package/core/constants/Items/ItemNames.js +1 -1
  46. package/core/constants/Items/LegendaryItemKeys.d.ts +66 -66
  47. package/core/constants/Items/LegendaryItemKeys.js +1 -1
  48. package/core/constants/Items/LegendaryItemKeysNum.d.ts +66 -66
  49. package/core/constants/Items/LegendaryItemKeysNum.js +1 -1
  50. package/core/constants/Items/LegendaryItemNames.d.ts +66 -0
  51. package/core/constants/Items/LegendaryItemNames.js +1 -1
  52. package/core/constants/Items/MythicItemKeys.d.ts +58 -58
  53. package/core/constants/Items/MythicItemKeys.js +1 -1
  54. package/core/constants/Items/MythicItemKeysNum.d.ts +58 -58
  55. package/core/constants/Items/MythicItemKeysNum.js +1 -1
  56. package/core/constants/Items/MythicItemNames.d.ts +58 -0
  57. package/core/constants/Items/MythicItemNames.js +1 -1
  58. package/core/constants/Spells/SpellIds.d.ts +2 -0
  59. package/core/constants/Spells/SpellIds.js +1 -1
  60. package/core/constants/Spells/SpellIdsByName.d.ts +2 -1
  61. package/core/constants/Spells/SpellIdsByName.js +1 -1
  62. package/core/constants/Spells/SpellKeys.d.ts +2 -0
  63. package/core/constants/Spells/SpellKeys.js +1 -1
  64. package/core/constants/Spells/SpellKeysNum.d.ts +2 -0
  65. package/core/constants/Spells/SpellKeysNum.js +1 -1
  66. package/core/constants/Spells/SpellNames.d.ts +2 -0
  67. package/core/constants/Spells/SpellNames.js +1 -1
  68. package/core/helpers/Champions/getChampionIdByKey.d.ts +2 -1
  69. package/core/helpers/Champions/getChampionNameByKey.d.ts +2 -1
  70. package/core/helpers/Items/getItemNameByKey.d.ts +2 -1
  71. package/core/helpers/Items/isBootsItemKeyNum.d.ts +2 -0
  72. package/core/helpers/Items/isBootsItemKeyNum.js +8 -0
  73. package/core/helpers/Items/isBootsItemName.d.ts +1 -1
  74. package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +2 -0
  75. package/core/helpers/Items/isLegendaryItemKeyNum.js +8 -0
  76. package/core/helpers/Items/isLegendaryItemName.d.ts +1 -1
  77. package/core/helpers/Items/isMythicItemKeyNum.d.ts +2 -0
  78. package/core/helpers/Items/isMythicItemKeyNum.js +8 -0
  79. package/core/helpers/Items/isMythicItemName.d.ts +1 -1
  80. package/core/helpers/Runes/getStatRuneIdByName.d.ts +1 -1
  81. package/core/helpers/Runes/getStatRuneNameById.d.ts +1 -1
  82. package/core/helpers/Runes/isStatRuneName.d.ts +1 -1
  83. package/core/helpers/Spells/getSpellIdByKey.d.ts +2 -1
  84. package/core/helpers/Spells/getSpellNameByKey.d.ts +2 -1
  85. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MythicItemNames = void 0;
4
- exports.MythicItemNames = { "2065": "Shurelya's Battlesong", "3001": "Evenshroud", "3031": "Infinity Edge", "3078": "Trinity Force", "3084": "Heartsteel", "3124": "Guinsoo's Rageblade", "3142": "Youmuu's Ghostblade", "3152": "Hextech Rocketbelt", "3190": "Locket of the Iron Solari", "4005": "Imperial Mandate", "4633": "Riftmaker", "4636": "Night Harvester", "4644": "Crown of the Shattered Queen", "6617": "Moonstone Renewer", "6620": "Echoes of Helia", "6630": "Goredrinker", "6631": "Stridebreaker", "6632": "Divine Sunderer", "6653": "Liandry's Anguish", "6655": "Luden's Tempest", "6656": "Everfrost", "6657": "Rod of Ages", "6662": "Iceborn Gauntlet", "6664": "Turbo Chemtank", "6665": "Jak'Sho, The Protean", "6667": "Radiant Virtue", "6671": "Galeforce", "6675": "Navori Quickblades", "6691": "Duskblade of Draktharr", "6692": "Eclipse", "7001": "Syzygy", "7002": "Draktharr's Shadowcarver", "7005": "Frozen Fist", "7006": "Typhoon", "7009": "Icathia's Curse", "7010": "Vespertide", "7011": "Upgraded Aeropack", "7012": "Liandry's Lament", "7013": "Eye of Luden", "7014": "Eternal Winter", "7015": "Ceaseless Hunger", "7016": "Dreamshatter", "7017": "Deicide", "7018": "Infinity Force", "7019": "Reliquary of the Golden Dawn", "7020": "Shurelya's Requiem", "7021": "Starcaster", "7023": "Equinox", "7024": "Caesura", "7025": "Leviathan", "7026": "The Unspoken Parasite", "7027": "Primordial Dawn", "7028": "Infinite Convergence", "7029": "Youmuu's Wake", "7030": "Seething Sorrow", "7031": "Edge of Finality", "7032": "Flicker", "7033": "Cry of the Shrieking City" };
4
+ exports.MythicItemNames = { "2065": "Shurelya's Battlesong", "3001": "Evenshroud", "3031": "Infinity Edge", "3078": "Trinity Force", "3084": "Heartsteel", "3124": "Guinsoo's Rageblade", "3142": "Youmuu's Ghostblade", "3152": "Hextech Rocketbelt", "3190": "Locket of the Iron Solari", "4005": "Imperial Mandate", "4633": "Riftmaker", "4636": "Night Harvester", "4644": "Crown of the Shattered Queen", "6617": "Moonstone Renewer", "6620": "Echoes of Helia", "6630": "Goredrinker", "6631": "Stridebreaker", "6632": "Divine Sunderer", "6653": "Liandry's Anguish", "6655": "Luden's Tempest", "6656": "Everfrost", "6657": "Rod of Ages", "6662": "Iceborn Gauntlet", "6664": "Turbo Chemtank", "6665": "Jak'Sho, The Protean", "6667": "Radiant Virtue", "6671": "Galeforce", "6675": "Navori Quickblades", "6691": "Duskblade of Draktharr", "6692": "Eclipse", "7001": "Syzygy", "7002": "Draktharr's Shadowcarver", "7005": "Frozen Fist", "7006": "Typhoon", "7009": "Icathia's Curse", "7010": "Vespertide", "7011": "Upgraded Aeropack", "7012": "Liandry's Lament", "7013": "Eye of Luden", "7014": "Eternal Winter", "7015": "Ceaseless Hunger", "7016": "Dreamshatter", "7017": "Deicide", "7018": "Infinity Force", "7019": "Reliquary of the Golden Dawn", "7020": "Shurelya's Requiem", "7021": "Starcaster", "7023": "Equinox", "7024": "Caesura", "7025": "Leviathan", "7026": "The Unspoken Parasite", "7027": "Primordial Dawn", "7028": "Infinite Convergence", "7029": "Youmuu's Wake", "7030": "Seething Sorrow", "7031": "Edge of Finality", "7032": "Flicker", "7033": "Cry of the Shrieking City", "222065": "Shurelya's Battlesong", "223001": "Evenshroud", "223031": "Infinity Edge", "223078": "Trinity Force", "223084": "Heartsteel", "223124": "Guinsoo's Rageblade", "223142": "Youmuu's Ghostblade", "223152": "Hextech Rocketbelt", "223190": "Locket of the Iron Solari", "224005": "Imperial Mandate", "224633": "Riftmaker", "224636": "Night Harvester", "224644": "Crown of the Shattered Queen", "226617": "Moonstone Renewer", "226620": "Echoes of Helia", "226630": "Goredrinker", "226631": "Stridebreaker", "226632": "Divine Sunderer", "226653": "Liandry's Anguish", "226655": "Luden's Tempest", "226656": "Everfrost", "226657": "Rod of Ages", "226662": "Iceborn Gauntlet", "226664": "Turbo Chemtank", "226665": "Jak'Sho, The Protean", "226667": "Radiant Virtue", "226671": "Galeforce", "226675": "Navori Quickblades", "226691": "Duskblade of Draktharr", "226692": "Eclipse", "227001": "Syzygy", "227002": "Draktharr's Shadowcarver", "227005": "Frozen Fist", "227006": "Typhoon", "227009": "Icathia's Curse", "227010": "Vespertide", "227011": "Upgraded Aeropack", "227012": "Liandry's Lament", "227013": "Eye of Luden", "227014": "Eternal Winter", "227015": "Ceaseless Hunger", "227016": "Dreamshatter", "227017": "Deicide", "227018": "Infinity Force", "227019": "Reliquary of the Golden Dawn", "227020": "Shurelya's Requiem", "227021": "Starcaster", "227023": "Equinox", "227024": "Caesura", "227025": "Leviathan", "227026": "The Unspoken Parasite", "227027": "Primordial Dawn", "227028": "Infinite Convergence", "227029": "Youmuu's Wake", "227030": "Seething Sorrow", "227031": "Edge of Finality", "227032": "Flicker", "227033": "Cry of the Shrieking City" };
@@ -15,5 +15,7 @@ export declare const SpellIds: {
15
15
  readonly "39": "SummonerSnowURFSnowball_Mark";
16
16
  readonly "54": "Summoner_UltBookPlaceholder";
17
17
  readonly "55": "Summoner_UltBookSmitePlaceholder";
18
+ readonly "2201": "SummonerCherryHold";
19
+ readonly "2202": "SummonerCherryFlash";
18
20
  };
19
21
  export type SpellId = typeof SpellIds[keyof typeof SpellIds];
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpellIds = void 0;
4
- exports.SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder" };
4
+ exports.SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder", "2201": "SummonerCherryHold", "2202": "SummonerCherryFlash" };
@@ -1,9 +1,10 @@
1
1
  export declare const SpellIdsByName: {
2
2
  readonly Barrier: "SummonerBarrier";
3
3
  readonly Cleanse: "SummonerBoost";
4
+ readonly Flash: "SummonerFlash";
5
+ readonly Flee: "SummonerCherryHold";
4
6
  readonly Ignite: "SummonerDot";
5
7
  readonly Exhaust: "SummonerExhaust";
6
- readonly Flash: "SummonerFlash";
7
8
  readonly Ghost: "SummonerHaste";
8
9
  readonly Heal: "SummonerHeal";
9
10
  readonly Clarity: "SummonerMana";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpellIdsByName = void 0;
4
- exports.SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "Ignite": "SummonerDot", "Exhaust": "SummonerExhaust", "Flash": "SummonerFlash", "Ghost": "SummonerHaste", "Heal": "SummonerHeal", "Clarity": "SummonerMana", "To the King!": "SummonerPoroRecall", "Poro Toss": "SummonerPoroThrow", "Smite": "SummonerSmite", "Mark": "SummonerSnowball", "Teleport": "SummonerTeleport", "Placeholder": "Summoner_UltBookPlaceholder", "Placeholder and Attack-Smite": "Summoner_UltBookSmitePlaceholder" };
4
+ exports.SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "Flash": "SummonerFlash", "Flee": "SummonerCherryHold", "Ignite": "SummonerDot", "Exhaust": "SummonerExhaust", "Ghost": "SummonerHaste", "Heal": "SummonerHeal", "Clarity": "SummonerMana", "To the King!": "SummonerPoroRecall", "Poro Toss": "SummonerPoroThrow", "Smite": "SummonerSmite", "Mark": "SummonerSnowball", "Teleport": "SummonerTeleport", "Placeholder": "Summoner_UltBookPlaceholder", "Placeholder and Attack-Smite": "Summoner_UltBookSmitePlaceholder" };
@@ -1,6 +1,8 @@
1
1
  export declare const SpellKeys: {
2
2
  readonly SummonerBarrier: "21";
3
3
  readonly SummonerBoost: "1";
4
+ readonly SummonerCherryFlash: "2202";
5
+ readonly SummonerCherryHold: "2201";
4
6
  readonly SummonerDot: "14";
5
7
  readonly SummonerExhaust: "3";
6
8
  readonly SummonerFlash: "4";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpellKeys = void 0;
4
- exports.SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "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" };
4
+ exports.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" };
@@ -1,6 +1,8 @@
1
1
  export declare const SpellKeysNum: {
2
2
  readonly SummonerBarrier: 21;
3
3
  readonly SummonerBoost: 1;
4
+ readonly SummonerCherryFlash: 2202;
5
+ readonly SummonerCherryHold: 2201;
4
6
  readonly SummonerDot: 14;
5
7
  readonly SummonerExhaust: 3;
6
8
  readonly SummonerFlash: 4;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpellKeysNum = void 0;
4
- exports.SpellKeysNum = { "SummonerBarrier": 21, "SummonerBoost": 1, "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 };
4
+ exports.SpellKeysNum = { "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 };
@@ -15,5 +15,7 @@ export declare const SpellNames: {
15
15
  readonly "39": "Mark";
16
16
  readonly "54": "Placeholder";
17
17
  readonly "55": "Placeholder and Attack-Smite";
18
+ readonly "2201": "Flee";
19
+ readonly "2202": "Flash";
18
20
  };
19
21
  export type SpellName = typeof SpellNames[keyof typeof SpellNames];
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SpellNames = void 0;
4
- exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite" };
4
+ exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite", "2201": "Flee", "2202": "Flash" };
@@ -1,3 +1,4 @@
1
1
  import { ChampionId } from '../../constants/Champions/ChampionIds';
2
2
  import { ChampionKey } from '../../constants/Champions/ChampionKeys';
3
- export declare function getChampionIdByKey(key: ChampionKey): ChampionId;
3
+ import { ChampionKeyNum } from '../../constants/Champions/ChampionKeysNum';
4
+ export declare function getChampionIdByKey(key: ChampionKey | ChampionKeyNum): ChampionId;
@@ -1,3 +1,4 @@
1
1
  import { ChampionKey } from '../../constants/Champions/ChampionKeys';
2
+ import { ChampionKeyNum } from '../../constants/Champions/ChampionKeysNum';
2
3
  import { ChampionName } from '../../constants/Champions/ChampionNames';
3
- export declare function getChampionNameByKey(key: ChampionKey): ChampionName;
4
+ export declare function getChampionNameByKey(key: ChampionKey | ChampionKeyNum): ChampionName;
@@ -1,3 +1,4 @@
1
1
  import { ItemKey } from '../../constants/Items/ItemKeys';
2
+ import { ItemKeyNum } from '../../constants/Items/ItemKeysNum';
2
3
  import { ItemName } from '../../constants/Items/ItemNames';
3
- export declare function getItemNameByKey(key: ItemKey): ItemName;
4
+ export declare function getItemNameByKey(key: ItemKey | ItemKeyNum): ItemName;
@@ -0,0 +1,2 @@
1
+ import { BootsItemKeyNum } from '../../constants/Items/BootsItemKeysNum';
2
+ export declare function isBootsItemKeyNum(key: number): key is BootsItemKeyNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBootsItemKeyNum = void 0;
4
+ const BootsItemNames_1 = require("../../constants/Items/BootsItemNames");
5
+ function isBootsItemKeyNum(key) {
6
+ return key in BootsItemNames_1.BootsItemNames;
7
+ }
8
+ exports.isBootsItemKeyNum = isBootsItemKeyNum;
@@ -1,2 +1,2 @@
1
- import { BootsItemName } from '../../../assets';
1
+ import { BootsItemName } from '../../constants/Items/BootsItemNames';
2
2
  export declare function isBootsItemName(name: any): name is BootsItemName;
@@ -0,0 +1,2 @@
1
+ import { LegendaryItemKeyNum } from '../../constants/Items/LegendaryItemKeysNum';
2
+ export declare function isLegendaryItemKeyNum(key: number): key is LegendaryItemKeyNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isLegendaryItemKeyNum = void 0;
4
+ const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
5
+ function isLegendaryItemKeyNum(key) {
6
+ return key in LegendaryItemNames_1.LegendaryItemNames;
7
+ }
8
+ exports.isLegendaryItemKeyNum = isLegendaryItemKeyNum;
@@ -1,2 +1,2 @@
1
- import { LegendaryItemName } from '../../../assets';
1
+ import { LegendaryItemName } from '../../constants/Items/LegendaryItemNames';
2
2
  export declare function isLegendaryItemName(name: any): name is LegendaryItemName;
@@ -0,0 +1,2 @@
1
+ import { MythicItemKeyNum } from '../../constants/Items/MythicItemKeysNum';
2
+ export declare function isMythicItemKeyNum(key: number): key is MythicItemKeyNum;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isMythicItemKeyNum = void 0;
4
+ const MythicItemNames_1 = require("../../constants/Items/MythicItemNames");
5
+ function isMythicItemKeyNum(key) {
6
+ return key in MythicItemNames_1.MythicItemNames;
7
+ }
8
+ exports.isMythicItemKeyNum = isMythicItemKeyNum;
@@ -1,2 +1,2 @@
1
- import { MythicItemName } from '../../../assets';
1
+ import { MythicItemName } from '../../constants/Items/MythicItemNames';
2
2
  export declare function isMythicItemName(name: any): name is MythicItemName;
@@ -1,3 +1,3 @@
1
- import { StatRuneName } from '../../../assets';
1
+ import { StatRuneName } from '../../constants/Runes/RuneSets';
2
2
  import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
3
  export declare function getStatRuneIdByName(name: StatRuneName): StatRuneId;
@@ -1,3 +1,3 @@
1
- import { StatRuneName } from '../../../assets';
1
+ import { StatRuneName } from '../../constants/Runes/RuneSets';
2
2
  import { StatRuneId } from '../../constants/Runes/RuneSetsByRuneNames';
3
3
  export declare function getStatRuneNameById(id: StatRuneId): StatRuneName;
@@ -1,2 +1,2 @@
1
- import { StatRuneName } from '../../../assets';
1
+ import { StatRuneName } from '../../constants/Runes/RuneSets';
2
2
  export declare function isStatRuneName(name: any): name is StatRuneName;
@@ -1,3 +1,4 @@
1
1
  import { SpellId } from '../../constants/Spells/SpellIds';
2
2
  import { SpellKey } from '../../constants/Spells/SpellKeys';
3
- export declare function getSpellIdByKey(key: SpellKey): SpellId;
3
+ import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
4
+ export declare function getSpellIdByKey(key: SpellKey | SpellKeyNum): SpellId;
@@ -1,3 +1,4 @@
1
1
  import { SpellKey } from '../../constants/Spells/SpellKeys';
2
+ import { SpellKeyNum } from '../../constants/Spells/SpellKeysNum';
2
3
  import { SpellName } from '../../constants/Spells/SpellNames';
3
- export declare function getSpellNameByKey(key: SpellKey): SpellName;
4
+ export declare function getSpellNameByKey(key: SpellKey | SpellKeyNum): SpellName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lol-constants",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "League of Legends constants and data resources, such as champion, item, runes reforged, summoner spells.",
5
5
  "main": "core/index.js",
6
6
  "types": "core/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "/assets"
11
11
  ],
12
12
  "scripts": {
13
- "clean-build": "rmdir /s /q core && rmdir /s /q assets && tsc",
13
+ "build:clean": "rmdir /s /q core && rmdir /s /q assets && tsc",
14
14
  "generate": "node assets/scripts/generate-all",
15
15
  "dev": "vite"
16
16
  },