lol-constants 2.25.0 → 3.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +130 -28
- package/dist/Locale.d.ts +2 -0
- package/dist/Locale.js +1 -0
- package/dist/Patch.d.ts +3 -0
- package/dist/Patch.js +3 -0
- package/{core/constants/Champions/ChampionClasses.d.ts → dist/constants/custom.d.ts} +1 -1
- package/{core/constants/Champions/ChampionClasses.js → dist/constants/custom.js} +2 -2
- package/dist/constants/events.d.ts +49 -0
- package/dist/constants/events.js +55 -0
- package/dist/constants/history.d.ts +26 -0
- package/dist/constants/history.js +29 -0
- package/{core/constants/RankedTiers.d.ts → dist/constants/leagues.d.ts} +9 -1
- package/{core/constants/RankedTiers.js → dist/constants/leagues.js} +11 -2
- package/{core/constants/Locales.d.ts → dist/constants/locales.d.ts} +1 -1
- package/{core/constants/Locales.js → dist/constants/locales.js} +2 -2
- package/dist/constants/participants.d.ts +38 -0
- package/dist/constants/participants.js +43 -0
- package/dist/enums/ItemSrTypes.d.ts +11 -0
- package/dist/enums/ItemSrTypes.js +10 -0
- package/dist/enums/StatRuneSlots.d.ts +6 -0
- package/dist/enums/StatRuneSlots.js +5 -0
- package/dist/helpers/champion.d.ts +678 -0
- package/dist/helpers/champion.js +18 -0
- package/dist/helpers/item.d.ts +39 -0
- package/dist/helpers/item.js +113 -0
- package/dist/helpers/riotId.d.ts +16 -0
- package/dist/helpers/riotId.js +33 -0
- package/dist/helpers/rune.d.ts +36 -0
- package/dist/helpers/rune.js +70 -0
- package/dist/helpers/spell.d.ts +6 -0
- package/dist/helpers/spell.js +18 -0
- package/dist/helpers/type.d.ts +3 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +27 -0
- package/dist/lol.d.ts +4029 -0
- package/dist/lol.js +182 -0
- package/dist/objects/Maps.d.ts +113 -0
- package/dist/objects/Maps.js +69 -0
- package/dist/objects/Queues.d.ts +192 -0
- package/dist/objects/Queues.js +71 -0
- package/dist/objects/Regions.d.ts +132 -0
- package/dist/objects/Regions.js +55 -0
- package/dist/objects/generated/Champions.d.ts +1858 -0
- package/dist/objects/generated/Champions.js +4 -0
- package/dist/objects/generated/Items.d.ts +5108 -0
- package/dist/objects/generated/Items.js +4 -0
- package/dist/objects/generated/Runes.d.ts +1477 -0
- package/dist/objects/generated/Runes.js +13 -0
- package/dist/objects/generated/Spells.d.ts +208 -0
- package/dist/objects/generated/Spells.js +4 -0
- package/package.json +17 -15
- package/assets/constants/BootsItemNames.d.ts +0 -1
- package/assets/constants/BootsItemNames.js +0 -13
- package/assets/constants/Champion.d.ts +0 -7903
- package/assets/constants/Champion.js +0 -1
- package/assets/constants/Item.d.ts +0 -20779
- package/assets/constants/Item.js +0 -1
- package/assets/constants/LegendaryItemNames.d.ts +0 -4
- package/assets/constants/LegendaryItemNames.js +0 -125
- package/assets/constants/RunesReforged.d.ts +0 -491
- package/assets/constants/RunesReforged.js +0 -1
- package/assets/constants/StatRunes.d.ts +0 -28
- package/assets/constants/StatRunes.js +0 -11
- package/assets/constants/StatRunesByRow.d.ts +0 -17
- package/assets/constants/StatRunesByRow.js +0 -17
- package/assets/constants/Summoner.d.ts +0 -582
- package/assets/constants/Summoner.js +0 -1
- package/assets/index.d.ts +0 -4
- package/assets/index.js +0 -11
- package/assets/scripts/asset-scripts/champion.js +0 -9
- package/assets/scripts/asset-scripts/generate-all.d.ts +0 -4
- package/assets/scripts/asset-scripts/generate-all.js +0 -4
- package/assets/scripts/asset-scripts/item.d.ts +0 -1
- package/assets/scripts/asset-scripts/item.js +0 -9
- package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
- package/assets/scripts/asset-scripts/runes-reforged.js +0 -9
- package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
- package/assets/scripts/asset-scripts/summoner.js +0 -9
- package/assets/scripts/constants/RuneIdComment.d.ts +0 -1
- package/assets/scripts/constants/RuneIdComment.js +0 -24
- package/assets/scripts/generate-all.d.ts +0 -23
- package/assets/scripts/generate-all.js +0 -27
- package/assets/scripts/generate-categorized-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys-num.js +0 -57
- package/assets/scripts/generate-categorized-item-keys.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-keys.js +0 -59
- package/assets/scripts/generate-categorized-item-names.d.ts +0 -1
- package/assets/scripts/generate-categorized-item-names.js +0 -56
- package/assets/scripts/generate-champion-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-champion-ids-by-name.js +0 -17
- package/assets/scripts/generate-champion-ids.d.ts +0 -1
- package/assets/scripts/generate-champion-ids.js +0 -18
- package/assets/scripts/generate-champion-keys-num.d.ts +0 -1
- package/assets/scripts/generate-champion-keys-num.js +0 -20
- package/assets/scripts/generate-champion-keys.d.ts +0 -1
- package/assets/scripts/generate-champion-keys.js +0 -18
- package/assets/scripts/generate-champion-names.d.ts +0 -1
- package/assets/scripts/generate-champion-names.js +0 -18
- package/assets/scripts/generate-item-keys-num.d.ts +0 -1
- package/assets/scripts/generate-item-keys-num.js +0 -24
- package/assets/scripts/generate-item-keys.d.ts +0 -1
- package/assets/scripts/generate-item-keys.js +0 -22
- package/assets/scripts/generate-item-names.d.ts +0 -1
- package/assets/scripts/generate-item-names.js +0 -22
- package/assets/scripts/generate-non-stat-rune-ids-num.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids-num.js +0 -21
- package/assets/scripts/generate-non-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-ids.js +0 -22
- package/assets/scripts/generate-non-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-non-stat-rune-names.js +0 -20
- package/assets/scripts/generate-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-rune-ids.js +0 -27
- package/assets/scripts/generate-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-names.js +0 -25
- package/assets/scripts/generate-rune-picking-relationships.d.ts +0 -1
- package/assets/scripts/generate-rune-picking-relationships.js +0 -52
- package/assets/scripts/generate-rune-sets-by-rune-names-num.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +0 -121
- package/assets/scripts/generate-rune-sets-by-rune-names.d.ts +0 -1
- package/assets/scripts/generate-rune-sets-by-rune-names.js +0 -119
- package/assets/scripts/generate-rune-sets.d.ts +0 -1
- package/assets/scripts/generate-rune-sets.js +0 -116
- package/assets/scripts/generate-spell-ids-by-name.d.ts +0 -1
- package/assets/scripts/generate-spell-ids-by-name.js +0 -17
- package/assets/scripts/generate-spell-ids.d.ts +0 -1
- package/assets/scripts/generate-spell-ids.js +0 -18
- package/assets/scripts/generate-spell-keys-num.d.ts +0 -1
- package/assets/scripts/generate-spell-keys-num.js +0 -20
- package/assets/scripts/generate-spell-keys.d.ts +0 -1
- package/assets/scripts/generate-spell-keys.js +0 -18
- package/assets/scripts/generate-spell-names.d.ts +0 -1
- package/assets/scripts/generate-spell-names.js +0 -18
- package/assets/scripts/generate-stat-rune-ids.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-ids.js +0 -18
- package/assets/scripts/generate-stat-rune-names.d.ts +0 -1
- package/assets/scripts/generate-stat-rune-names.js +0 -16
- package/assets/scripts/helpers/enableEscapedValues.d.ts +0 -15
- package/assets/scripts/helpers/enableEscapedValues.js +0 -34
- package/assets/scripts/helpers/generateIndexFile.d.ts +0 -1
- package/assets/scripts/helpers/generateIndexFile.js +0 -3
- package/assets/scripts/helpers/getExportStatement.d.ts +0 -6
- package/assets/scripts/helpers/getExportStatement.js +0 -37
- package/assets/scripts/helpers/getFmtdComment.d.ts +0 -5
- package/assets/scripts/helpers/getFmtdComment.js +0 -11
- package/assets/scripts/helpers/validateNumber.d.ts +0 -1
- package/assets/scripts/helpers/validateNumber.js +0 -6
- package/assets/scripts/helpers/writeToTmpFile.d.ts +0 -13
- package/assets/scripts/helpers/writeToTmpFile.js +0 -18
- package/assets/scripts/print-file-names.d.ts +0 -1
- package/assets/scripts/print-file-names.js +0 -89
- package/core/constants/Abilities.d.ts +0 -17
- package/core/constants/Abilities.js +0 -19
- package/core/constants/BuildingTypes.d.ts +0 -6
- package/core/constants/BuildingTypes.js +0 -7
- package/core/constants/Champions/ChampionIds.d.ts +0 -171
- package/core/constants/Champions/ChampionIds.js +0 -1
- package/core/constants/Champions/ChampionIdsByName.d.ts +0 -170
- package/core/constants/Champions/ChampionIdsByName.js +0 -1
- package/core/constants/Champions/ChampionKeys.d.ts +0 -171
- package/core/constants/Champions/ChampionKeys.js +0 -1
- package/core/constants/Champions/ChampionKeysNum.d.ts +0 -171
- package/core/constants/Champions/ChampionKeysNum.js +0 -1
- package/core/constants/Champions/ChampionNames.d.ts +0 -171
- package/core/constants/Champions/ChampionNames.js +0 -1
- package/core/constants/Continents.d.ts +0 -8
- package/core/constants/Continents.js +0 -9
- package/core/constants/DataDragonUrls.d.ts +0 -52
- package/core/constants/DataDragonUrls.js +0 -56
- package/core/constants/DragonTypes.d.ts +0 -11
- package/core/constants/DragonTypes.js +0 -12
- package/core/constants/GameModes.d.ts +0 -12
- package/core/constants/GameModes.js +0 -13
- package/core/constants/GameTypes.d.ts +0 -7
- package/core/constants/GameTypes.js +0 -8
- package/core/constants/Items/BootsItemKeys.d.ts +0 -14
- package/core/constants/Items/BootsItemKeys.js +0 -1
- package/core/constants/Items/BootsItemKeysNum.d.ts +0 -14
- package/core/constants/Items/BootsItemKeysNum.js +0 -1
- package/core/constants/Items/BootsItemNames.d.ts +0 -14
- package/core/constants/Items/BootsItemNames.js +0 -1
- package/core/constants/Items/ItemKeys.d.ts +0 -238
- package/core/constants/Items/ItemKeys.js +0 -1
- package/core/constants/Items/ItemKeysNum.d.ts +0 -238
- package/core/constants/Items/ItemKeysNum.js +0 -1
- package/core/constants/Items/ItemNames.d.ts +0 -244
- package/core/constants/Items/ItemNames.js +0 -1
- package/core/constants/Items/ItemTypes.d.ts +0 -7
- package/core/constants/Items/ItemTypes.js +0 -8
- package/core/constants/Items/LegendaryItemKeys.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeys.js +0 -1
- package/core/constants/Items/LegendaryItemKeysNum.d.ts +0 -112
- package/core/constants/Items/LegendaryItemKeysNum.js +0 -1
- package/core/constants/Items/LegendaryItemNames.d.ts +0 -112
- package/core/constants/Items/LegendaryItemNames.js +0 -1
- package/core/constants/KillTypes.d.ts +0 -7
- package/core/constants/KillTypes.js +0 -8
- package/core/constants/LaneTypes.d.ts +0 -7
- package/core/constants/LaneTypes.js +0 -8
- package/core/constants/Lanes.d.ts +0 -8
- package/core/constants/Lanes.js +0 -9
- package/core/constants/LeagueTexts.d.ts +0 -49
- package/core/constants/LeagueTexts.js +0 -54
- package/core/constants/Levels.d.ts +0 -22
- package/core/constants/Levels.js +0 -23
- package/core/constants/MapIds.d.ts +0 -17
- package/core/constants/MapIds.js +0 -18
- package/core/constants/MonsterTypes.d.ts +0 -8
- package/core/constants/MonsterTypes.js +0 -9
- package/core/constants/ParticipantIds.d.ts +0 -14
- package/core/constants/ParticipantIds.js +0 -15
- package/core/constants/PlatformApiUris.d.ts +0 -20
- package/core/constants/PlatformApiUris.js +0 -21
- package/core/constants/PlatformIds.d.ts +0 -23
- package/core/constants/PlatformIds.js +0 -26
- package/core/constants/Positions.d.ts +0 -9
- package/core/constants/Positions.js +0 -10
- package/core/constants/QueueIds.d.ts +0 -114
- package/core/constants/QueueIds.js +0 -140
- package/core/constants/QueueTypes.d.ts +0 -7
- package/core/constants/QueueTypes.js +0 -8
- package/core/constants/RankedRanks.d.ts +0 -8
- package/core/constants/RankedRanks.js +0 -9
- package/core/constants/RegionalApiUris.d.ts +0 -8
- package/core/constants/RegionalApiUris.js +0 -9
- package/core/constants/Regions.d.ts +0 -23
- package/core/constants/Regions.js +0 -26
- package/core/constants/RelativeTeams.d.ts +0 -6
- package/core/constants/RelativeTeams.js +0 -7
- package/core/constants/Roles.d.ts +0 -8
- package/core/constants/Roles.js +0 -9
- package/core/constants/Runes/NonStatRuneIds.d.ts +0 -85
- package/core/constants/Runes/NonStatRuneIds.js +0 -1
- package/core/constants/Runes/NonStatRuneIdsNum.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneIdsNum.js +0 -1
- package/core/constants/Runes/NonStatRuneNames.d.ts +0 -63
- package/core/constants/Runes/NonStatRuneNames.js +0 -1
- package/core/constants/Runes/RuneIconFileNames.d.ts +0 -14
- package/core/constants/Runes/RuneIconFileNames.js +0 -97
- package/core/constants/Runes/RunePickingRelationships.d.ts +0 -74
- package/core/constants/Runes/RunePickingRelationships.js +0 -4
- package/core/constants/Runes/RuneSets.d.ts +0 -721
- package/core/constants/Runes/RuneSets.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNames.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNames.js +0 -11
- package/core/constants/Runes/RuneSetsByRuneNamesNum.d.ts +0 -765
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +0 -11
- package/core/constants/Runes/RuneTreeIds.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIds.js +0 -14
- package/core/constants/Runes/RuneTreeIdsNum.d.ts +0 -11
- package/core/constants/Runes/RuneTreeIdsNum.js +0 -14
- package/core/constants/Runes/RuneTreeNames.d.ts +0 -11
- package/core/constants/Runes/RuneTreeNames.js +0 -14
- package/core/constants/Runes/RuneTreeTypes.d.ts +0 -6
- package/core/constants/Runes/RuneTreeTypes.js +0 -7
- package/core/constants/SkillSlots.d.ts +0 -8
- package/core/constants/SkillSlots.js +0 -9
- package/core/constants/Skills.d.ts +0 -8
- package/core/constants/Skills.js +0 -9
- package/core/constants/Spells/SpellIds.d.ts +0 -21
- package/core/constants/Spells/SpellIds.js +0 -1
- package/core/constants/Spells/SpellIdsByName.d.ts +0 -18
- package/core/constants/Spells/SpellIdsByName.js +0 -1
- package/core/constants/Spells/SpellKeys.d.ts +0 -21
- package/core/constants/Spells/SpellKeys.js +0 -1
- package/core/constants/Spells/SpellKeysNum.d.ts +0 -21
- package/core/constants/Spells/SpellKeysNum.js +0 -1
- package/core/constants/Spells/SpellNames.d.ts +0 -21
- package/core/constants/Spells/SpellNames.js +0 -1
- package/core/constants/TeamIds.d.ts +0 -6
- package/core/constants/TeamIds.js +0 -7
- package/core/constants/TowerTypes.d.ts +0 -8
- package/core/constants/TowerTypes.js +0 -9
- package/core/constants/WardTypes.d.ts +0 -9
- package/core/constants/WardTypes.js +0 -10
- package/core/helpers/Champions/getChampionIdByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionIdByKey.js +0 -4
- package/core/helpers/Champions/getChampionIdByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionIdByName.js +0 -4
- package/core/helpers/Champions/getChampionKeyById.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyById.js +0 -4
- package/core/helpers/Champions/getChampionKeyByName.d.ts +0 -3
- package/core/helpers/Champions/getChampionKeyByName.js +0 -5
- package/core/helpers/Champions/getChampionNameById.d.ts +0 -3
- package/core/helpers/Champions/getChampionNameById.js +0 -5
- package/core/helpers/Champions/getChampionNameByKey.d.ts +0 -4
- package/core/helpers/Champions/getChampionNameByKey.js +0 -4
- package/core/helpers/Champions/isChampionId.d.ts +0 -2
- package/core/helpers/Champions/isChampionId.js +0 -4
- package/core/helpers/Champions/isChampionKey.d.ts +0 -2
- package/core/helpers/Champions/isChampionKey.js +0 -4
- package/core/helpers/Champions/isChampionKeyNum.d.ts +0 -2
- package/core/helpers/Champions/isChampionKeyNum.js +0 -4
- package/core/helpers/Champions/isChampionName.d.ts +0 -2
- package/core/helpers/Champions/isChampionName.js +0 -4
- package/core/helpers/Items/getItemKeyByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyByName.js +0 -4
- package/core/helpers/Items/getItemKeyNumByName.d.ts +0 -3
- package/core/helpers/Items/getItemKeyNumByName.js +0 -4
- package/core/helpers/Items/getItemNameByKey.d.ts +0 -4
- package/core/helpers/Items/getItemNameByKey.js +0 -4
- package/core/helpers/Items/isBootsItemKey.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKey.js +0 -4
- package/core/helpers/Items/isBootsItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isBootsItemKeyNum.js +0 -4
- package/core/helpers/Items/isBootsItemName.d.ts +0 -2
- package/core/helpers/Items/isBootsItemName.js +0 -4
- package/core/helpers/Items/isItemKey.d.ts +0 -2
- package/core/helpers/Items/isItemKey.js +0 -4
- package/core/helpers/Items/isItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isItemKeyNum.js +0 -4
- package/core/helpers/Items/isItemName.d.ts +0 -2
- package/core/helpers/Items/isItemName.js +0 -4
- package/core/helpers/Items/isLegendaryItemKey.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKey.js +0 -4
- package/core/helpers/Items/isLegendaryItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemKeyNum.js +0 -4
- package/core/helpers/Items/isLegendaryItemName.d.ts +0 -2
- package/core/helpers/Items/isLegendaryItemName.js +0 -4
- package/core/helpers/Items/isTier2Boots.d.ts +0 -3
- package/core/helpers/Items/isTier2Boots.js +0 -9
- package/core/helpers/Runes/getNonStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getNonStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getNonStatRuneNameById.js +0 -4
- package/core/helpers/Runes/getRuneCategoryName.d.ts +0 -4
- package/core/helpers/Runes/getRuneCategoryName.js +0 -16
- package/core/helpers/Runes/getRuneCdnUrl.d.ts +0 -3
- package/core/helpers/Runes/getRuneCdnUrl.js +0 -50
- package/core/helpers/Runes/getRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getRuneIdByName.js +0 -4
- package/core/helpers/Runes/getRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getRuneNameById.js +0 -4
- package/core/helpers/Runes/getStatRuneIdByName.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneIdByName.js +0 -4
- package/core/helpers/Runes/getStatRuneNameById.d.ts +0 -3
- package/core/helpers/Runes/getStatRuneNameById.js +0 -4
- package/core/helpers/Runes/isDominationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneId.js +0 -4
- package/core/helpers/Runes/isDominationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isDominationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isDominationRuneName.js +0 -4
- package/core/helpers/Runes/isInspirationRuneId.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneId.js +0 -4
- package/core/helpers/Runes/isInspirationRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneIdNum.js +0 -4
- package/core/helpers/Runes/isInspirationRuneName.d.ts +0 -2
- package/core/helpers/Runes/isInspirationRuneName.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneId.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneId.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneIdNum.js +0 -4
- package/core/helpers/Runes/isKeystoneRuneName.d.ts +0 -2
- package/core/helpers/Runes/isKeystoneRuneName.js +0 -4
- package/core/helpers/Runes/isNonStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneId.js +0 -4
- package/core/helpers/Runes/isNonStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isNonStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isNonStatRuneName.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneId.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneId.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneIdNum.js +0 -4
- package/core/helpers/Runes/isPrecisionRuneName.d.ts +0 -2
- package/core/helpers/Runes/isPrecisionRuneName.js +0 -4
- package/core/helpers/Runes/isResolveRuneId.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneId.js +0 -4
- package/core/helpers/Runes/isResolveRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneIdNum.js +0 -4
- package/core/helpers/Runes/isResolveRuneName.d.ts +0 -2
- package/core/helpers/Runes/isResolveRuneName.js +0 -4
- package/core/helpers/Runes/isRuneId.d.ts +0 -2
- package/core/helpers/Runes/isRuneId.js +0 -4
- package/core/helpers/Runes/isRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isRuneIdNum.js +0 -4
- package/core/helpers/Runes/isRuneName.d.ts +0 -2
- package/core/helpers/Runes/isRuneName.js +0 -4
- package/core/helpers/Runes/isSorceryRuneId.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneId.js +0 -4
- package/core/helpers/Runes/isSorceryRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneIdNum.js +0 -4
- package/core/helpers/Runes/isSorceryRuneName.d.ts +0 -2
- package/core/helpers/Runes/isSorceryRuneName.js +0 -4
- package/core/helpers/Runes/isStatRuneId.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneId.js +0 -4
- package/core/helpers/Runes/isStatRuneIdNum.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneIdNum.js +0 -4
- package/core/helpers/Runes/isStatRuneName.d.ts +0 -2
- package/core/helpers/Runes/isStatRuneName.js +0 -4
- package/core/helpers/Spells/getSpellIdByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellIdByKey.js +0 -4
- package/core/helpers/Spells/getSpellIdByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellIdByName.js +0 -4
- package/core/helpers/Spells/getSpellKeyById.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyById.js +0 -4
- package/core/helpers/Spells/getSpellKeyByName.d.ts +0 -3
- package/core/helpers/Spells/getSpellKeyByName.js +0 -5
- package/core/helpers/Spells/getSpellNameById.d.ts +0 -3
- package/core/helpers/Spells/getSpellNameById.js +0 -5
- package/core/helpers/Spells/getSpellNameByKey.d.ts +0 -4
- package/core/helpers/Spells/getSpellNameByKey.js +0 -4
- package/core/helpers/Spells/isSpellId.d.ts +0 -2
- package/core/helpers/Spells/isSpellId.js +0 -4
- package/core/helpers/Spells/isSpellKey.d.ts +0 -2
- package/core/helpers/Spells/isSpellKey.js +0 -4
- package/core/helpers/Spells/isSpellKeyNum.d.ts +0 -2
- package/core/helpers/Spells/isSpellKeyNum.js +0 -4
- package/core/helpers/Spells/isSpellName.d.ts +0 -2
- package/core/helpers/Spells/isSpellName.js +0 -4
- package/core/helpers/getPositionImageUrl.d.ts +0 -2
- package/core/helpers/getPositionImageUrl.js +0 -11
- package/core/helpers/isRiotId.d.ts +0 -5
- package/core/helpers/isRiotId.js +0 -15
- package/core/helpers/makeRiotId.d.ts +0 -4
- package/core/helpers/makeRiotId.js +0 -5
- package/core/helpers/splitRiotId.d.ts +0 -10
- package/core/helpers/splitRiotId.js +0 -16
- package/core/index.d.ts +0 -139
- package/core/index.js +0 -150
- package/core/types/championJson.d.ts +0 -85
- package/core/types/championJson.js +0 -1
- package/core/types/interfaces.d.ts +0 -22
- package/core/types/interfaces.js +0 -1
- package/core/types/types.d.ts +0 -268
- package/core/types/types.js +0 -1
- /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": "
|
4
|
-
"description": "League of Legends 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
|
-
"
|
11
|
-
"/assets"
|
11
|
+
"dist"
|
12
12
|
],
|
13
13
|
"devDependencies": {
|
14
|
-
"@types/
|
15
|
-
"@types/node
|
16
|
-
"
|
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.
|
19
|
-
"vite": "^5.
|
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
|
-
"
|
27
|
-
"
|
28
|
-
"
|
29
|
-
"
|
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
|
-
];
|