lol-constants 2.26.0 → 3.0.0-rc.1
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/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 +34 -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/LegendaryItemNames.d.ts +0 -4
- package/assets/constants/LegendaryItemNames.js +0 -125
- 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/base/Champion.d.ts +0 -7903
- package/assets/constants/base/Champion.js +0 -1
- package/assets/constants/base/Item.d.ts +0 -21193
- package/assets/constants/base/Item.js +0 -1
- package/assets/constants/base/RunesReforged.d.ts +0 -491
- package/assets/constants/base/RunesReforged.js +0 -1
- package/assets/constants/base/Summoner.d.ts +0 -582
- package/assets/constants/base/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 -10
- 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 -10
- package/assets/scripts/asset-scripts/runes-reforged.d.ts +0 -1
- package/assets/scripts/asset-scripts/runes-reforged.js +0 -10
- package/assets/scripts/asset-scripts/summoner.d.ts +0 -1
- package/assets/scripts/asset-scripts/summoner.js +0 -10
- 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/Locale.d.ts +0 -2
- package/core/PatchVersion.d.ts +0 -1
- package/core/PatchVersion.js +0 -1
- 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 -58
- 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/{core → dist}/Locale.js +0 -0
- /package/{assets/scripts/asset-scripts/champion.d.ts → dist/helpers/type.js} +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
export const Summoner = { "type": "summoner", "version": "14.17.1", "data": { "SummonerBarrier": { "id": "SummonerBarrier", "name": "Barrier", "description": "Gain a 120-480 damage Shield for 2.5 seconds.", "tooltip": "Gain a <shield>{{ shieldstrength }} damage Shield</shield> for {{ shieldduration }} seconds.", "maxrank": 1, "cooldown": [180], "cooldownBurn": "180", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "21", "summonerLevel": 4, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ASSASSINATE", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "FIRSTBLOOD", "NEXUSBLITZ", "STARGUARDIAN", "PROJECT", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [1200], "rangeBurn": "1200", "image": { "full": "SummonerBarrier.png", "sprite": "spell0.png", "group": "spell", "x": 0, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerBoost": { "id": "SummonerBoost", "name": "Cleanse", "description": "Removes all disables (excluding suppression and airborne) and summoner spell debuffs affecting your champion and gives 75% Tenacity for 3 seconds.", "tooltip": "Removes all crowd control debuffs (excluding <keyword>Suppression</keyword> and <keyword>Airborne</keyword>) and summoner spell debuffs from you and grants {{ tenacityvalue*100 }}% Tenacity for {{ tenacityduration }} seconds.", "maxrank": 1, "cooldown": [240], "cooldownBurn": "240", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "1", "summonerLevel": 9, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "FIRSTBLOOD", "NEXUSBLITZ", "PROJECT", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [200], "rangeBurn": "200", "image": { "full": "SummonerBoost.png", "sprite": "spell0.png", "group": "spell", "x": 48, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerCherryFlash": { "id": "SummonerCherryFlash", "name": "Flash", "description": "Teleports your champion a short distance toward your cursor's location.", "tooltip": "Teleports your champion a short distance toward your cursor's location.<br /><br />Cannot be cast again for one full round <rules>(a round consists of both a buy phase and a combat phase).</rules>", "maxrank": 1, "cooldown": [0.25], "cooldownBurn": "0.25", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [400], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "400", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "2202", "summonerLevel": 1, "modes": ["CHERRY"], "costType": "No Cost", "maxammo": "-1", "range": [425], "rangeBurn": "425", "image": { "full": "SummonerCherryFlash.png", "sprite": "spell0.png", "group": "spell", "x": 96, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerCherryHold": { "id": "SummonerCherryHold", "name": "Flee", "description": "Gain a short burst of Move Speed, increased while running away from enemy champions.", "tooltip": "<keywordMajor>Active Spell Slot:</keywordMajor> Augments that grant a Summoner Spell will replace this slot.<br /><br />Gain <moveSpeed>{{ basems*100 }}% Move Speed</moveSpeed> for {{ duration }} seconds, increased by {{ bonusmsperenemybehind*100 }}% for each enemy behind you.", "maxrank": 1, "cooldown": [45], "cooldownBurn": "45", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [20], [10], [3], [5], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "20", "10", "3", "5", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "2201", "summonerLevel": 1, "modes": ["CHERRY"], "costType": "No Cost", "maxammo": "-1", "range": [25000], "rangeBurn": "25000", "image": { "full": "SummonerCherryHold.png", "sprite": "spell0.png", "group": "spell", "x": 144, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerDot": { "id": "SummonerDot", "name": "Ignite", "description": "Deals 70-410 true damage to target enemy champion over 5 seconds and reduces healing effects on them for the duration.", "tooltip": "Deals <trueDamage>{{ tooltiptruedamagecalculation }} true damage</trueDamage> to target enemy champion over 5 seconds and applies <keyword>{{ grievousamount*100 }}% Grievous Wounds</keyword> for the duration.<br /><br /><keyword>Wounds</keyword>: Reduces the effectiveness of Healing and Regeneration effects.", "maxrank": 1, "cooldown": [180], "cooldownBurn": "180", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "14", "summonerLevel": 9, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ASSASSINATE", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "FIRSTBLOOD", "NEXUSBLITZ", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [600], "rangeBurn": "600", "image": { "full": "SummonerDot.png", "sprite": "spell0.png", "group": "spell", "x": 192, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerExhaust": { "id": "SummonerExhaust", "name": "Exhaust", "description": "Slows target enemy champion by 40% and reduces their damage dealt by 35% for 3 seconds.", "tooltip": "<keyword>Slows</keyword> target enemy champion by {{ slow }}% and reduces their damage dealt by {{ damagereduction }}% for {{ debuffduration }} seconds.", "maxrank": 1, "cooldown": [240], "cooldownBurn": "240", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "3", "summonerLevel": 4, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "NEXUSBLITZ", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [650], "rangeBurn": "650", "image": { "full": "SummonerExhaust.png", "sprite": "spell0.png", "group": "spell", "x": 240, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerFlash": { "id": "SummonerFlash", "name": "Flash", "description": "Teleports you a short distance toward your cursor.", "tooltip": "Teleports you a short distance toward your cursor.", "maxrank": 1, "cooldown": [300], "cooldownBurn": "300", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [400], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "400", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "4", "summonerLevel": 7, "modes": ["PRACTICETOOL", "CLASSIC", "ARSR", "ARAM", "NEXUSBLITZ", "ULTBOOK", "TUTORIAL", "FIRSTBLOOD", "ASSASSINATE", "DOOMBOTSTEEMO", "URF", "STARGUARDIAN", "PROJECT", "WIPMODEWIP", "SNOWURF", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [425], "rangeBurn": "425", "image": { "full": "SummonerFlash.png", "sprite": "spell0.png", "group": "spell", "x": 288, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerHaste": { "id": "SummonerHaste", "name": "Ghost", "description": "Gain 24 - 48% Move Speed and ignore unit collision for 10 seconds.", "tooltip": "Gain <speed>{{ movespeedmod }} Move Speed</speed> and become <keyword>Ghosted</keyword> for {{ duration }} seconds.<br /><br /><keyword>Ghost</keyword>: Ignore collision with other units.", "maxrank": 1, "cooldown": [240], "cooldownBurn": "240", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "6", "summonerLevel": 1, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ASSASSINATE", "TUTORIAL_MODULE_2", "TUTORIAL_MODULE_1", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "FIRSTBLOOD", "NEXUSBLITZ", "STARGUARDIAN", "PROJECT", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [200], "rangeBurn": "200", "image": { "full": "SummonerHaste.png", "sprite": "spell0.png", "group": "spell", "x": 336, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerHeal": { "id": "SummonerHeal", "name": "Heal", "description": "Restores 80-318 Health and grants 30% Move Speed for 1 second to you and target allied champion. This healing is halved for units recently affected by Summoner Heal.", "tooltip": "Restores <healing>{{ totalheal }} Health</healing> and grants <speed>{{ movespeed*100 }}% Move Speed</speed> for {{ movespeedduration }} second to you and target allied champion.<br /><br /><rules>If cast without a target, it will cast on the most wounded allied champion in range.<br />Healing is halved on units recently affected by Summoner Heal.</rules>", "maxrank": 1, "cooldown": [240], "cooldownBurn": "240", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "7", "summonerLevel": 1, "modes": ["URF", "CLASSIC", "ARSR", "ARAM", "ASSASSINATE", "TUTORIAL_MODULE_2", "TUTORIAL_MODULE_1", "ULTBOOK", "WIPMODEWIP", "TUTORIAL", "DOOMBOTSTEEMO", "PRACTICETOOL", "NEXUSBLITZ", "STARGUARDIAN", "PROJECT", "ONEFORALL"], "costType": "No Cost", "maxammo": "-1", "range": [875], "rangeBurn": "875", "image": { "full": "SummonerHeal.png", "sprite": "spell0.png", "group": "spell", "x": 384, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerMana": { "id": "SummonerMana", "name": "Clarity", "description": "Restores 50% of your champion's maximum Mana. Also restores allies for 25% of their maximum Mana.", "tooltip": "Restores {{ e1 }}% maximum Mana to your Champion and {{ e2 }}% to nearby allies.", "maxrank": 1, "cooldown": [240], "cooldownBurn": "240", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [50], [25], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "50", "25", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "13", "summonerLevel": 6, "modes": ["ARAM", "FIRSTBLOOD"], "costType": "No Cost", "maxammo": "-1", "range": [600], "rangeBurn": "600", "image": { "full": "SummonerMana.png", "sprite": "spell0.png", "group": "spell", "x": 432, "y": 0, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerPoroRecall": { "id": "SummonerPoroRecall", "name": "To the King!", "description": "Quickly travel to the Poro King's side.", "tooltip": "<span class=\"colorFFE076\">Passive:</span> Hitting an enemy champion with a Poro gives your team a Poro Mark. Upon reaching 10 Poro Marks, your team summons the Poro King to fight alongside them. While the Poro King is active, no Poro Marks can be scored by either team.<br /><br /><span class=\"colorFFE076\">Active:</span> Quickly dash to King Poro's side. Can only be cast while the Poro King is summoned for your team. <br /><br /><i><span class=\"colorFDD017\">''Poros tug the heartstrings. The rest of you just comes along for the ride.''</span></i></mainText>", "maxrank": 1, "cooldown": [10], "cooldownBurn": "10", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [3000], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "3000", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "30", "summonerLevel": 1, "modes": ["KINGPORO"], "costType": "No Cost", "maxammo": "-1", "range": [200], "rangeBurn": "200", "image": { "full": "SummonerPoroRecall.png", "sprite": "spell0.png", "group": "spell", "x": 0, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerPoroThrow": { "id": "SummonerPoroThrow", "name": "Poro Toss", "description": "Toss a Poro at your enemies. If it hits, you can quickly travel to your target as a follow up.", "tooltip": "Toss a Poro a long distance, dealing {{ f2 }} true damage to the first enemy unit hit, granting <span class=\"coloree91d7\">True Sight</span> of the target.<br /><br />This ability can be recast for 3 seconds if it hits an enemy to dash to the target hit, dealing {{ f2 }} more true damage and reducing the cooldown of the next Poro Toss by {{ e4 }} seconds.<br /><br />Poros are not blocked by spell shields or wind walls because they are animals, not spells!<br /><br /><i><span class=\"colorFDD017\">''Poros are a model for Runeterran aerodynamics.''</span></i></mainText>", "maxrank": 1, "cooldown": [20], "cooldownBurn": "20", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [20], [10], [3], [5], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "20", "10", "3", "5", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "31", "summonerLevel": 1, "modes": ["KINGPORO"], "costType": "No Cost", "maxammo": "-1", "range": [2500], "rangeBurn": "2500", "image": { "full": "SummonerPoroThrow.png", "sprite": "spell0.png", "group": "spell", "x": 48, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerSmite": { "id": "SummonerSmite", "name": "Smite", "description": "Deals 600-1200 true damage to target large monster.", "tooltip": "Deals <trueDamage>{{ smitebasedamage }} true damage</trueDamage> to target large monster or lane minion.<br /><br />Deals <trueDamage>{{ firstpvpdamage }} true damage</trueDamage> to champion pets.", "maxrank": 1, "cooldown": [15], "cooldownBurn": "15", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [15], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "15", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "11", "summonerLevel": 3, "modes": ["URF", "CLASSIC", "ARSR", "ONEFORALL", "PRACTICETOOL", "NEXUSBLITZ", "TUTORIAL", "DOOMBOTSTEEMO"], "costType": "No Cost", "maxammo": "2", "range": [500], "rangeBurn": "500", "image": { "full": "SummonerSmite.png", "sprite": "spell0.png", "group": "spell", "x": 96, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerSnowURFSnowball_Mark": { "id": "SummonerSnowURFSnowball_Mark", "name": "Mark", "description": "Throw a snowball in a straight line at your enemies. If it hits an enemy, they become marked, granting True Sight, and your champion can quickly travel to the marked target as a follow up.", "tooltip": "Throw a snowball a long distance, dealing {{ tooltipdamagetotal }} true damage to the first enemy unit hit and granting <span class=\"coloree91d7\">True Sight</span> of the target. If it hits an enemy, this ability can be recast for {{ e3 }} seconds to Dash to the tagged unit, dealing an additional {{ tooltipdamagetotal }} true damage. Dashing to the target will reduce the cooldown of Mark by {{ e4 }}%.<br /><br /><span class=\"colorFFFF00\">Mark projectiles are not stopped by spell shields or projectile mitigation.</span>", "maxrank": 1, "cooldown": [80], "cooldownBurn": "80", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [10], [5], [3], [25], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "10", "5", "3", "25", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "39", "summonerLevel": 6, "modes": ["SNOWURF"], "costType": "No Cost", "maxammo": "-1", "range": [8000], "rangeBurn": "8000", "image": { "full": "SummonerSnowURFSnowball_Mark.png", "sprite": "spell0.png", "group": "spell", "x": 144, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerSnowball": { "id": "SummonerSnowball", "name": "Mark", "description": "Throw a snowball in a straight line at your enemies. If it hits an enemy, they become marked, granting True Sight, and your champion can quickly travel to the marked target as a follow up.", "tooltip": "Throw a snowball a long distance, dealing {{ tooltipdamagetotal }} true damage to the first enemy unit hit and granting <span class=\"coloree91d7\">True Sight</span> of the target. If it hits an enemy, this ability can be recast for {{ e3 }} seconds to Dash to the tagged unit, dealing an additional {{ tooltipdamagetotal }} true damage. Dashing to the target will reduce the cooldown of Mark by {{ e4 }}%.<br /><br /><span class=\"colorFFFF00\">Mark projectiles are not stopped by spell shields or projectile mitigation.</span>", "maxrank": 1, "cooldown": [80], "cooldownBurn": "80", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [10], [5], [3], [25], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "10", "5", "3", "25", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "32", "summonerLevel": 6, "modes": ["ARAM", "FIRSTBLOOD"], "costType": "No Cost", "maxammo": "-1", "range": [1600], "rangeBurn": "1600", "image": { "full": "SummonerSnowball.png", "sprite": "spell0.png", "group": "spell", "x": 192, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "SummonerTeleport": { "id": "SummonerTeleport", "name": "Teleport", "description": "After channeling for 4 seconds, teleport to target allied structure. Upgrades to Unleashed Teleport at 10 minutes, which allows you to target allied structures, minions, or wards.", "tooltip": "After channeling for {{ channelduration }} seconds, teleport to target allied structure.<br /><br />Upgrades to Unleashed Teleport at 10 minutes. Unleashed Teleport has a {{ upgradedcooldown }}s cooldown, can be used on allied structures, minions, or wards, and grants {{ msamount*100 }}% Move Speed for {{ msduration }} seconds.", "maxrank": 1, "cooldown": [360], "cooldownBurn": "360", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "12", "summonerLevel": 7, "modes": ["ONEFORALL", "PRACTICETOOL", "CLASSIC", "TUTORIAL", "ULTBOOK", "ARSR", "ASSASSINATE", "DOOMBOTSTEEMO"], "costType": "No Cost", "maxammo": "-1", "range": [25000], "rangeBurn": "25000", "image": { "full": "SummonerTeleport.png", "sprite": "spell0.png", "group": "spell", "x": 240, "y": 48, "w": 48, "h": 48 }, "resource": "No Cost" }, "Summoner_UltBookPlaceholder": { "id": "Summoner_UltBookPlaceholder", "name": "Placeholder", "description": "This slot will be replaced by another champion's ultimate selected at the start of the game. There will be 30 seconds to select an ultimate. Be prepared!", "tooltip": "Will be replaced by your Ultimate Summoner Spell selection.{{ spellmodifierdescriptionappend }}", "maxrank": 1, "cooldown": [0], "cooldownBurn": "0", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "54", "summonerLevel": 1, "modes": ["ULTBOOK"], "costType": " ", "maxammo": "-1", "range": [400], "rangeBurn": "400", "image": { "full": "Summoner_UltBookPlaceholder.png", "sprite": "spell0.png", "group": "spell", "x": 288, "y": 48, "w": 48, "h": 48 }, "resource": " " }, "Summoner_UltBookSmitePlaceholder": { "id": "Summoner_UltBookSmitePlaceholder", "name": "Placeholder and Attack-Smite", "description": "This slot will be replaced by another champion's ultimate and you will gain Attack-Smite. There will be 30 seconds to select an ultimate. Be prepared!", "tooltip": "Will be replaced by your Ultimate Summoner Spell.<br /><br />Gain Attack-Smite. Attack-Smite will execute allied Buff Monsters, Epic Monsters, and Scuttle Crabs when you attack them.<br /><br /><attention>Attack-Smite does not have a cooldown.</attention>{{ spellmodifierdescriptionappend }}", "maxrank": 1, "cooldown": [0], "cooldownBurn": "0", "cost": [0], "costBurn": "0", "datavalues": {}, "effect": [null, [0], [0], [0], [0], [0], [0], [0], [0], [0], [0]], "effectBurn": [null, "0", "0", "0", "0", "0", "0", "0", "0", "0", "0"], "vars": [], "key": "55", "summonerLevel": 1, "modes": ["ULTBOOK"], "costType": " ", "maxammo": "-1", "range": [400], "rangeBurn": "400", "image": { "full": "Summoner_UltBookSmitePlaceholder.png", "sprite": "spell0.png", "group": "spell", "x": 336, "y": 48, "w": 48, "h": 48 }, "resource": " " } } };
|
package/assets/index.d.ts
DELETED
package/assets/index.js
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
// # constants
|
2
|
-
// export * from './constants/BootsItemNames'
|
3
|
-
export * from './constants/base/Champion';
|
4
|
-
export * from './constants/base/Item';
|
5
|
-
// export * from './constants/LegendaryItemNames'
|
6
|
-
export * from './constants/base/RunesReforged';
|
7
|
-
// export * from './constants/StatRunes'
|
8
|
-
// export * from './constants/StatRunesByRow'
|
9
|
-
export * from './constants/base/Summoner';
|
10
|
-
// # scripts
|
11
|
-
// —
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import fetch from 'node-fetch';
|
2
|
-
import { dataDragonVersion } from '../../../core';
|
3
|
-
import { writeFileSync } from 'fs';
|
4
|
-
import { Locale } from '../../../core/Locale';
|
5
|
-
(async () => {
|
6
|
-
const res = await fetch(`http://ddragon.leagueoflegends.com/cdn/${dataDragonVersion}/data/${Locale}/champion.json`);
|
7
|
-
const jsonText = await res.text();
|
8
|
-
const text = `export const Champion = ${jsonText} as const`;
|
9
|
-
writeFileSync('./src/assets/constants/base/Champion.ts', text);
|
10
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import fetch from 'node-fetch';
|
2
|
-
import { dataDragonVersion } from '../../../core';
|
3
|
-
import { writeFileSync } from 'fs';
|
4
|
-
import { Locale } from '../../../core/Locale';
|
5
|
-
(async () => {
|
6
|
-
const res = await fetch(`http://ddragon.leagueoflegends.com/cdn/${dataDragonVersion}/data/${Locale}/item.json`);
|
7
|
-
const jsonText = await res.text();
|
8
|
-
const text = `export const Item = ${jsonText} as const`;
|
9
|
-
writeFileSync('./src/assets/constants/base/Item.ts', text);
|
10
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import fetch from 'node-fetch';
|
2
|
-
import { dataDragonVersion } from '../../../core';
|
3
|
-
import { writeFileSync } from 'fs';
|
4
|
-
import { Locale } from '../../../core/Locale';
|
5
|
-
(async () => {
|
6
|
-
const res = await fetch(`http://ddragon.leagueoflegends.com/cdn/${dataDragonVersion}/data/${Locale}/runesReforged.json`);
|
7
|
-
const jsonText = await res.text();
|
8
|
-
const text = `export const RunesReforged = ${jsonText} as const`;
|
9
|
-
writeFileSync('./src/assets/constants/base/RunesReforged.ts', text);
|
10
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import fetch from 'node-fetch';
|
2
|
-
import { dataDragonVersion } from '../../../core';
|
3
|
-
import { writeFileSync } from 'fs';
|
4
|
-
import { Locale } from '../../../core/Locale';
|
5
|
-
(async () => {
|
6
|
-
const res = await fetch(`http://ddragon.leagueoflegends.com/cdn/${dataDragonVersion}/data/${Locale}/summoner.json`);
|
7
|
-
const jsonText = await res.text();
|
8
|
-
const text = `export const Summoner = ${jsonText} as const`;
|
9
|
-
writeFileSync('./src/assets/constants/base/Summoner.ts', text);
|
10
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const RuneIdComment: "\n/**\n * There are 3 main Rune ID types:\n * - `RuneId` (all),\n * - `NonStatRuneId` (all but stat runes),\n * - `StatRuneId` (only stat runes).\n * \n * There are 6 more specific Rune ID types as well:\n * - `KeystoneRuneId`,\n * - `PrecisionRuneId`,\n * - `DominationRuneId`,\n * - `SorceryRuneId`,\n * - `ResolveRuneId`,\n * - `InspirationRuneId`.\n * \n * There are 6 numerical Rune ID types:\n * - `KeystoneRuneIdNum`,\n * - `PrecisionRuneIdNum`,\n * - `DominationRuneIdNum`,\n * - `SorceryRuneIdNum`,\n * - `ResolveRuneIdNum`,\n * - `InspirationRuneIdNum`.\n */\n";
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export const RuneIdComment = `
|
2
|
-
/**
|
3
|
-
* There are 3 main Rune ID types:
|
4
|
-
* - \`RuneId\` (all),
|
5
|
-
* - \`NonStatRuneId\` (all but stat runes),
|
6
|
-
* - \`StatRuneId\` (only stat runes).
|
7
|
-
*
|
8
|
-
* There are 6 more specific Rune ID types as well:
|
9
|
-
* - \`KeystoneRuneId\`,
|
10
|
-
* - \`PrecisionRuneId\`,
|
11
|
-
* - \`DominationRuneId\`,
|
12
|
-
* - \`SorceryRuneId\`,
|
13
|
-
* - \`ResolveRuneId\`,
|
14
|
-
* - \`InspirationRuneId\`.
|
15
|
-
*
|
16
|
-
* There are 6 numerical Rune ID types:
|
17
|
-
* - \`KeystoneRuneIdNum\`,
|
18
|
-
* - \`PrecisionRuneIdNum\`,
|
19
|
-
* - \`DominationRuneIdNum\`,
|
20
|
-
* - \`SorceryRuneIdNum\`,
|
21
|
-
* - \`ResolveRuneIdNum\`,
|
22
|
-
* - \`InspirationRuneIdNum\`.
|
23
|
-
*/
|
24
|
-
`;
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import './generate-categorized-item-keys-num';
|
2
|
-
import './generate-categorized-item-keys';
|
3
|
-
import './generate-categorized-item-names';
|
4
|
-
import './generate-champion-ids-by-name';
|
5
|
-
import './generate-champion-ids';
|
6
|
-
import './generate-champion-keys-num';
|
7
|
-
import './generate-champion-keys';
|
8
|
-
import './generate-champion-names';
|
9
|
-
import './generate-item-keys-num';
|
10
|
-
import './generate-item-keys';
|
11
|
-
import './generate-item-names';
|
12
|
-
import './generate-non-stat-rune-ids-num';
|
13
|
-
import './generate-non-stat-rune-ids';
|
14
|
-
import './generate-non-stat-rune-names';
|
15
|
-
import './generate-rune-picking-relationships';
|
16
|
-
import './generate-rune-sets-by-rune-names-num';
|
17
|
-
import './generate-rune-sets-by-rune-names';
|
18
|
-
import './generate-rune-sets';
|
19
|
-
import './generate-spell-ids-by-name';
|
20
|
-
import './generate-spell-ids';
|
21
|
-
import './generate-spell-keys-num';
|
22
|
-
import './generate-spell-keys';
|
23
|
-
import './generate-spell-names';
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import './generate-categorized-item-keys-num';
|
2
|
-
import './generate-categorized-item-keys';
|
3
|
-
import './generate-categorized-item-names';
|
4
|
-
import './generate-champion-ids-by-name';
|
5
|
-
import './generate-champion-ids';
|
6
|
-
import './generate-champion-keys-num';
|
7
|
-
import './generate-champion-keys';
|
8
|
-
import './generate-champion-names';
|
9
|
-
import './generate-item-keys-num';
|
10
|
-
import './generate-item-keys';
|
11
|
-
import './generate-item-names';
|
12
|
-
import './generate-non-stat-rune-ids-num';
|
13
|
-
import './generate-non-stat-rune-ids';
|
14
|
-
import './generate-non-stat-rune-names';
|
15
|
-
// import './generate-rune-ids'
|
16
|
-
// import './generate-rune-names'
|
17
|
-
import './generate-rune-picking-relationships';
|
18
|
-
import './generate-rune-sets-by-rune-names-num';
|
19
|
-
import './generate-rune-sets-by-rune-names';
|
20
|
-
import './generate-rune-sets';
|
21
|
-
import './generate-spell-ids-by-name';
|
22
|
-
import './generate-spell-ids';
|
23
|
-
import './generate-spell-keys-num';
|
24
|
-
import './generate-spell-keys';
|
25
|
-
import './generate-spell-names';
|
26
|
-
// import './generate-stat-rune-ids'
|
27
|
-
// import './generate-stat-rune-names'
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import { BootsItemNames } from '../constants/BootsItemNames';
|
2
|
-
import { Item } from '../constants/base/Item';
|
3
|
-
import { LegendaryItemNames } from '../constants/LegendaryItemNames';
|
4
|
-
import { validateNumber } from './helpers/validateNumber';
|
5
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
6
|
-
(async () => {
|
7
|
-
const itemKeys = {
|
8
|
-
legendary: {},
|
9
|
-
boots: {},
|
10
|
-
};
|
11
|
-
// Add Legendary Items
|
12
|
-
for (const itemName of LegendaryItemNames) {
|
13
|
-
let foundData = false;
|
14
|
-
let itemKey;
|
15
|
-
for (itemKey in Item.data) {
|
16
|
-
const itemData = Item.data[itemKey];
|
17
|
-
if (itemData.name == itemName)
|
18
|
-
foundData = true;
|
19
|
-
// Filter out only for Summoner's Rift
|
20
|
-
if (!itemData.maps[11])
|
21
|
-
continue;
|
22
|
-
if (itemData.name == itemName) {
|
23
|
-
itemKeys.legendary[itemData.name] = validateNumber(itemKey, 'legendary-itemKey');
|
24
|
-
}
|
25
|
-
}
|
26
|
-
if (!foundData)
|
27
|
-
console.warn(`Did not find data for ${itemName}`);
|
28
|
-
}
|
29
|
-
// Add Boots
|
30
|
-
for (const itemName of BootsItemNames) {
|
31
|
-
let foundData = false;
|
32
|
-
let itemKey;
|
33
|
-
for (itemKey in Item.data) {
|
34
|
-
const itemData = Item.data[itemKey];
|
35
|
-
if (itemData.name == itemName)
|
36
|
-
foundData = true;
|
37
|
-
// Filter out only for Summoner's Rift
|
38
|
-
if (!itemData.maps[11])
|
39
|
-
continue;
|
40
|
-
if (itemData.name == itemName) {
|
41
|
-
itemKeys.boots[itemData.name] = validateNumber(itemKey, 'boots-itemKey');
|
42
|
-
}
|
43
|
-
}
|
44
|
-
if (!foundData)
|
45
|
-
console.warn(`Did not find data for ${itemName}`);
|
46
|
-
}
|
47
|
-
writeToTmpFile('LegendaryItemKeysNum', {
|
48
|
-
constName: 'LegendaryItemKeysNum',
|
49
|
-
typeName: 'LegendaryItemKeyNum',
|
50
|
-
json: itemKeys.legendary,
|
51
|
-
});
|
52
|
-
writeToTmpFile('BootsItemKeysNum', {
|
53
|
-
constName: 'BootsItemKeysNum',
|
54
|
-
typeName: 'BootsItemKeyNum',
|
55
|
-
json: itemKeys.boots,
|
56
|
-
});
|
57
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import { BootsItemNames } from '../constants/BootsItemNames';
|
2
|
-
import { Item } from '../constants/base/Item';
|
3
|
-
import { LegendaryItemNames } from '../constants/LegendaryItemNames';
|
4
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
5
|
-
(async () => {
|
6
|
-
const itemKeys = {
|
7
|
-
legendary: {},
|
8
|
-
boots: {},
|
9
|
-
};
|
10
|
-
// Add Legendary Items
|
11
|
-
for (const itemName of LegendaryItemNames) {
|
12
|
-
let foundData = false;
|
13
|
-
let itemKey;
|
14
|
-
for (itemKey in Item.data) {
|
15
|
-
const itemData = Item.data[itemKey];
|
16
|
-
if (itemData.name == itemName)
|
17
|
-
foundData = true;
|
18
|
-
// Filter out only for Summoner's Rift
|
19
|
-
if (!itemData.maps[11])
|
20
|
-
continue;
|
21
|
-
if (itemData.name == itemName) {
|
22
|
-
itemKeys.legendary[itemData.name] = itemKey;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
if (!foundData)
|
26
|
-
console.warn(`Did not find data for ${itemName}`);
|
27
|
-
}
|
28
|
-
// Add Boots
|
29
|
-
for (const itemName of BootsItemNames) {
|
30
|
-
let foundData = false;
|
31
|
-
let itemKey;
|
32
|
-
for (itemKey in Item.data) {
|
33
|
-
const itemData = Item.data[itemKey];
|
34
|
-
if (itemData.name == itemName)
|
35
|
-
foundData = true;
|
36
|
-
// Filter out only for Summoner's Rift
|
37
|
-
if (!itemData.maps[11])
|
38
|
-
continue;
|
39
|
-
if (itemData.name == itemName) {
|
40
|
-
itemKeys.boots[itemData.name] = itemKey;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
if (!foundData)
|
44
|
-
console.warn(`Did not find data for ${itemName}`);
|
45
|
-
}
|
46
|
-
writeToTmpFile('LegendaryItemKeys', {
|
47
|
-
constName: 'LegendaryItemKeys',
|
48
|
-
includeAutoTypeName: true,
|
49
|
-
json: itemKeys.legendary,
|
50
|
-
});
|
51
|
-
writeToTmpFile('BootsItemKeys', {
|
52
|
-
constName: 'BootsItemKeys',
|
53
|
-
includeAutoTypeName: true,
|
54
|
-
json: itemKeys.boots,
|
55
|
-
});
|
56
|
-
let l = Object.values(itemKeys.legendary).length;
|
57
|
-
let b = Object.values(itemKeys.boots).length;
|
58
|
-
console.log(`\ncategorized items`, `\n Legendary Items: ${l}`, `\n Boots Items: ${b}`, `\n All: ${l + b}`, `\n`);
|
59
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { BootsItemNames } from '../constants/BootsItemNames';
|
2
|
-
import { Item } from '../constants/base/Item';
|
3
|
-
import { LegendaryItemNames } from '../constants/LegendaryItemNames';
|
4
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
5
|
-
(async () => {
|
6
|
-
const itemNames = {
|
7
|
-
legendary: {},
|
8
|
-
boots: {},
|
9
|
-
};
|
10
|
-
// Add Legendary Items
|
11
|
-
for (const itemName of LegendaryItemNames) {
|
12
|
-
let foundData = false;
|
13
|
-
let itemKey;
|
14
|
-
for (itemKey in Item.data) {
|
15
|
-
const itemData = Item.data[itemKey];
|
16
|
-
if (itemData.name == itemName)
|
17
|
-
foundData = true;
|
18
|
-
// Filter out only for Summoner's Rift
|
19
|
-
if (!itemData.maps[11])
|
20
|
-
continue;
|
21
|
-
if (itemData.name == itemName) {
|
22
|
-
itemNames.legendary[itemKey] = itemData.name;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
if (!foundData)
|
26
|
-
console.warn(`Did not find data for ${itemName}`);
|
27
|
-
}
|
28
|
-
// Add Boots
|
29
|
-
for (const itemName of BootsItemNames) {
|
30
|
-
let foundData = false;
|
31
|
-
let itemKey;
|
32
|
-
for (itemKey in Item.data) {
|
33
|
-
const itemData = Item.data[itemKey];
|
34
|
-
if (itemData.name == itemName)
|
35
|
-
foundData = true;
|
36
|
-
// Filter out only for Summoner's Rift
|
37
|
-
if (!itemData.maps[11])
|
38
|
-
continue;
|
39
|
-
if (itemData.name == itemName) {
|
40
|
-
itemNames.boots[itemKey] = itemData.name;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
if (!foundData)
|
44
|
-
console.warn(`Did not find data for ${itemName}`);
|
45
|
-
}
|
46
|
-
writeToTmpFile('LegendaryItemNames', {
|
47
|
-
constName: 'LegendaryItemNames',
|
48
|
-
includeAutoTypeName: true,
|
49
|
-
json: itemNames.legendary,
|
50
|
-
});
|
51
|
-
writeToTmpFile('BootsItemNames', {
|
52
|
-
constName: 'BootsItemNames',
|
53
|
-
includeAutoTypeName: true,
|
54
|
-
json: itemNames.boots,
|
55
|
-
});
|
56
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Champion } from '../constants/base/Champion';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const championIds = {};
|
5
|
-
// Extract all Champion IDs
|
6
|
-
let championId;
|
7
|
-
for (championId in Champion.data) {
|
8
|
-
const championData = Champion.data[championId];
|
9
|
-
championIds[championData.name] = championId;
|
10
|
-
}
|
11
|
-
// Write to tmp file
|
12
|
-
const constName = 'ChampionIdsByName';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
json: championIds,
|
16
|
-
});
|
17
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Champion } from '../constants/base/Champion';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const championIds = {};
|
5
|
-
// Extract all Champion IDs
|
6
|
-
let championId;
|
7
|
-
for (championId in Champion.data) {
|
8
|
-
const championData = Champion.data[championId];
|
9
|
-
championIds[championData.key] = championId;
|
10
|
-
}
|
11
|
-
// Write to tmp file
|
12
|
-
const constName = 'ChampionIds';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
includeAutoTypeName: true,
|
16
|
-
json: championIds,
|
17
|
-
});
|
18
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Champion } from '../constants/base/Champion';
|
2
|
-
import { validateNumber } from './helpers/validateNumber';
|
3
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
4
|
-
(async () => {
|
5
|
-
const championKeys = {};
|
6
|
-
// Add all champions' data to each corresponding key value
|
7
|
-
let championId;
|
8
|
-
for (championId in Champion.data) {
|
9
|
-
const championData = Champion.data[championId];
|
10
|
-
championKeys[championId] = validateNumber(championData.key, 'championKey');
|
11
|
-
}
|
12
|
-
// Write to file
|
13
|
-
const constName = 'ChampionKeysNum';
|
14
|
-
const typeName = 'ChampionKeyNum';
|
15
|
-
writeToTmpFile(constName, {
|
16
|
-
constName,
|
17
|
-
typeName,
|
18
|
-
json: championKeys,
|
19
|
-
});
|
20
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Champion } from '../constants/base/Champion';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const championKeys = {};
|
5
|
-
// Add all champions' data to each corresponding key value
|
6
|
-
let championId;
|
7
|
-
for (championId in Champion.data) {
|
8
|
-
const championData = Champion.data[championId];
|
9
|
-
championKeys[championId] = championData.key;
|
10
|
-
}
|
11
|
-
// Write to file
|
12
|
-
const constName = 'ChampionKeys';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
includeAutoTypeName: true,
|
16
|
-
json: championKeys,
|
17
|
-
});
|
18
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Champion } from '../constants/base/Champion';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const championNames = {};
|
5
|
-
// Extract all champion names from `champion.json`
|
6
|
-
let championId;
|
7
|
-
for (championId in Champion.data) {
|
8
|
-
const championData = Champion.data[championId];
|
9
|
-
championNames[championData.key] = championData.name;
|
10
|
-
}
|
11
|
-
// Write to file
|
12
|
-
const constName = 'ChampionNames';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
includeAutoTypeName: true,
|
16
|
-
json: championNames,
|
17
|
-
});
|
18
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Item } from '../constants/base/Item';
|
2
|
-
import { validateNumber } from './helpers/validateNumber';
|
3
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
4
|
-
(async () => {
|
5
|
-
const itemKeys = {};
|
6
|
-
// Add all items' data to each corresponding name value
|
7
|
-
let itemKey;
|
8
|
-
for (itemKey in Item.data) {
|
9
|
-
const itemData = Item.data[itemKey];
|
10
|
-
// Filter out only for Summoner's Rift
|
11
|
-
if (!itemData.maps[11])
|
12
|
-
continue;
|
13
|
-
let htmlEscapedName = itemData.name.replace(/<[^>]*>?/gm, '');
|
14
|
-
itemKeys[htmlEscapedName] = validateNumber(itemKey, 'itemKey');
|
15
|
-
}
|
16
|
-
// Write to file
|
17
|
-
const constName = 'ItemKeysNum';
|
18
|
-
const typeName = 'ItemKeyNum';
|
19
|
-
writeToTmpFile(constName, {
|
20
|
-
constName,
|
21
|
-
typeName,
|
22
|
-
json: itemKeys,
|
23
|
-
});
|
24
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Item } from '../constants/base/Item';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const itemKeys = {};
|
5
|
-
// Add all items' data to each corresponding name value
|
6
|
-
let itemKey;
|
7
|
-
for (itemKey in Item.data) {
|
8
|
-
const itemData = Item.data[itemKey];
|
9
|
-
// Filter out only for Summoner's Rift
|
10
|
-
if (!itemData.maps[11])
|
11
|
-
continue;
|
12
|
-
let htmlEscapedName = itemData.name.replace(/<[^>]*>?/gm, '');
|
13
|
-
itemKeys[htmlEscapedName] = itemKey;
|
14
|
-
}
|
15
|
-
// Write to file
|
16
|
-
const constName = 'ItemKeys';
|
17
|
-
writeToTmpFile(constName, {
|
18
|
-
constName,
|
19
|
-
includeAutoTypeName: true,
|
20
|
-
json: itemKeys,
|
21
|
-
});
|
22
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Item } from '../constants/base/Item';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const itemNames = {};
|
5
|
-
// Add all items' data to each corresponding name value
|
6
|
-
let itemKey;
|
7
|
-
for (itemKey in Item.data) {
|
8
|
-
const itemData = Item.data[itemKey];
|
9
|
-
// Filter out only for Summoner's Rift
|
10
|
-
if (!itemData.maps[11])
|
11
|
-
continue;
|
12
|
-
let htmlEscapedName = itemData.name.replace(/<[^>]*>?/gm, '');
|
13
|
-
itemNames[itemKey] = htmlEscapedName;
|
14
|
-
}
|
15
|
-
// Write to file
|
16
|
-
const constName = 'ItemNames';
|
17
|
-
writeToTmpFile(constName, {
|
18
|
-
constName,
|
19
|
-
includeAutoTypeName: true,
|
20
|
-
json: itemNames,
|
21
|
-
});
|
22
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|