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,21 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const runeIds = {};
|
5
|
-
// Construct the new data and assign it to product object
|
6
|
-
for (const runeTree of RunesReforged) {
|
7
|
-
for (const { runes } of runeTree.slots) {
|
8
|
-
for (const rune of runes) {
|
9
|
-
runeIds[rune.name] = rune.id;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
// Write to file
|
14
|
-
const constName = 'NonStatRuneIdsNum';
|
15
|
-
const typeName = 'NonStatRuneIdNum';
|
16
|
-
writeToTmpFile(constName, {
|
17
|
-
constName,
|
18
|
-
typeName,
|
19
|
-
json: runeIds,
|
20
|
-
});
|
21
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
import { RuneIdComment } from './constants/RuneIdComment';
|
4
|
-
(async () => {
|
5
|
-
const runeIds = {};
|
6
|
-
// Construct the new data and assign it to product object
|
7
|
-
for (const runeTree of RunesReforged) {
|
8
|
-
for (const { runes } of runeTree.slots) {
|
9
|
-
for (const rune of runes) {
|
10
|
-
runeIds[rune.name] = String(rune.id);
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
// Write to file
|
15
|
-
const constName = 'NonStatRuneIds';
|
16
|
-
writeToTmpFile(constName, {
|
17
|
-
constName,
|
18
|
-
includeAutoTypeName: true,
|
19
|
-
typeComment: RuneIdComment,
|
20
|
-
json: runeIds,
|
21
|
-
});
|
22
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const runeNames = {};
|
5
|
-
// Construct the new data and assign it to product object
|
6
|
-
for (const runeTree of RunesReforged) {
|
7
|
-
for (const { runes } of runeTree.slots) {
|
8
|
-
for (const rune of runes) {
|
9
|
-
runeNames[rune.id] = rune.name;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
}
|
13
|
-
// Write to file
|
14
|
-
const constName = 'NonStatRuneNames';
|
15
|
-
writeToTmpFile(constName, {
|
16
|
-
constName,
|
17
|
-
includeAutoTypeName: true,
|
18
|
-
json: runeNames,
|
19
|
-
});
|
20
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { StatRunes } from '../constants/StatRunes';
|
3
|
-
import { RuneIdComment } from './constants/RuneIdComment';
|
4
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
5
|
-
(async () => {
|
6
|
-
const runeIds = {};
|
7
|
-
// Construct the new data and assign it to product object
|
8
|
-
for (const runeTree of RunesReforged) {
|
9
|
-
for (const { runes } of runeTree.slots) {
|
10
|
-
for (const rune of runes) {
|
11
|
-
runeIds[rune.name] = String(rune.id);
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
// Add Stat Runes
|
16
|
-
for (const { description, id: statRuneId, } of StatRunes) {
|
17
|
-
runeIds[description] = statRuneId;
|
18
|
-
}
|
19
|
-
// Write to file
|
20
|
-
const constName = 'RuneIds';
|
21
|
-
writeToTmpFile(constName, {
|
22
|
-
constName,
|
23
|
-
includeAutoTypeName: true,
|
24
|
-
typeComment: RuneIdComment,
|
25
|
-
json: runeIds,
|
26
|
-
});
|
27
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { StatRunes } from '../constants/StatRunes';
|
3
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
4
|
-
(async () => {
|
5
|
-
const runeNames = {};
|
6
|
-
// Construct the new data and assign it to product object
|
7
|
-
for (const runeTree of RunesReforged) {
|
8
|
-
for (const { runes } of runeTree.slots) {
|
9
|
-
for (const rune of runes) {
|
10
|
-
runeNames[rune.id] = rune.name;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
// Add Stat Runes
|
15
|
-
for (const { description, id: statRuneId, } of StatRunes) {
|
16
|
-
runeNames[statRuneId] = description;
|
17
|
-
}
|
18
|
-
// Write to file
|
19
|
-
const constName = 'RuneNames';
|
20
|
-
writeToTmpFile(constName, {
|
21
|
-
constName,
|
22
|
-
includeAutoTypeName: true,
|
23
|
-
json: runeNames,
|
24
|
-
});
|
25
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const constant = 'RunePickingRelationships';
|
5
|
-
const relationships = {};
|
6
|
-
// Determine all of the runes (2-3) that each rune in the game
|
7
|
-
// has a horizontal-set "relationship" with.
|
8
|
-
// It means that they are dependent on that rune
|
9
|
-
// for picking purposes.
|
10
|
-
// Only one rune can be picked per h-set.
|
11
|
-
for (const category of RunesReforged) {
|
12
|
-
for (const { runes, } of category.slots) {
|
13
|
-
for (const { id: baseRuneId, } of runes) {
|
14
|
-
// Assign each of the neighboring runes to this rune's r-ship array.
|
15
|
-
for (const { id, } of runes) {
|
16
|
-
// Let us simply assume that there is no such thing as a relationship
|
17
|
-
// with oneself, therefore skip.
|
18
|
-
if (baseRuneId == id)
|
19
|
-
continue;
|
20
|
-
if (!relationships[baseRuneId])
|
21
|
-
relationships[baseRuneId] = [];
|
22
|
-
relationships[baseRuneId].push(String(id));
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
// Create workshop arrays for each horizontal-set of stat runes.
|
28
|
-
const offense = ['5005', '5007', '5008'];
|
29
|
-
const flex = ['5002f', '5003f', '5008f'];
|
30
|
-
const defense = ['5001', '5002', '5003'];
|
31
|
-
for (let hSet of [
|
32
|
-
offense,
|
33
|
-
flex,
|
34
|
-
defense,
|
35
|
-
]) {
|
36
|
-
for (let baseStatRuneId of hSet) {
|
37
|
-
for (let statRuneId of hSet) {
|
38
|
-
// Skip self
|
39
|
-
if (baseStatRuneId == statRuneId)
|
40
|
-
continue;
|
41
|
-
if (!relationships[baseStatRuneId])
|
42
|
-
relationships[baseStatRuneId] = [];
|
43
|
-
relationships[baseStatRuneId].push(statRuneId);
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
47
|
-
await writeToTmpFile(constant, {
|
48
|
-
constName: constant,
|
49
|
-
comment: `All of the runes and their relationships to other runes in terms of picking. Only one rune can be picked in a rune horizontal-set, each main rune that has a relationship to another rune unselects the other rune if the main rune is picked.`,
|
50
|
-
json: relationships,
|
51
|
-
});
|
52
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,121 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { StatRunesByRow } from '../constants/StatRunesByRow';
|
3
|
-
import { RuneIdComment } from './constants/RuneIdComment';
|
4
|
-
import { validateNumber } from './helpers/validateNumber';
|
5
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
6
|
-
(async () => {
|
7
|
-
const constant = 'RuneSetsByRuneNamesNum';
|
8
|
-
const runeSets = {
|
9
|
-
PrimaryRuneTrees: {},
|
10
|
-
SecondaryRuneTrees: {},
|
11
|
-
KeystoneIds: {},
|
12
|
-
StatRuneIds: {},
|
13
|
-
RuneHSets: {},
|
14
|
-
StatRuneHSets: {},
|
15
|
-
};
|
16
|
-
const keystoneHSetIdx = 0;
|
17
|
-
let totalRuneAmt = 0;
|
18
|
-
for (const runeTree of RunesReforged) {
|
19
|
-
const runeTreeName = runeTree.name;
|
20
|
-
const horizontalSets = runeTree.slots;
|
21
|
-
let currentHSetIdx = 0;
|
22
|
-
for (const { runes, } of horizontalSets) {
|
23
|
-
for (let { id, name: runeName, } of runes) {
|
24
|
-
totalRuneAmt += 1;
|
25
|
-
// Add to PrimaryRuneTrees
|
26
|
-
if (!(runeTreeName in runeSets.PrimaryRuneTrees))
|
27
|
-
runeSets.PrimaryRuneTrees[runeTreeName] = {};
|
28
|
-
runeSets.PrimaryRuneTrees[runeTreeName][runeName] = id;
|
29
|
-
// Add to SecondaryRuneTrees
|
30
|
-
if (!(runeTreeName in runeSets.SecondaryRuneTrees))
|
31
|
-
runeSets.SecondaryRuneTrees[runeTreeName] = {};
|
32
|
-
// But only if it isn't a keystone rune
|
33
|
-
if (currentHSetIdx != keystoneHSetIdx) {
|
34
|
-
runeSets.SecondaryRuneTrees[runeTreeName][runeName] = id;
|
35
|
-
}
|
36
|
-
// Add to KeystoneIds
|
37
|
-
// But only if it is a keystone rune
|
38
|
-
if (currentHSetIdx == keystoneHSetIdx) {
|
39
|
-
runeSets.KeystoneIds[runeName] = id;
|
40
|
-
}
|
41
|
-
// Add to RuneHSets
|
42
|
-
if (!(runeTreeName in runeSets.RuneHSets))
|
43
|
-
runeSets.RuneHSets[runeTreeName] = {};
|
44
|
-
if (!runeSets.RuneHSets[runeTreeName][currentHSetIdx])
|
45
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx] = {};
|
46
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx][runeName] = id;
|
47
|
-
}
|
48
|
-
++currentHSetIdx;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
for (let hSetIdx in StatRunesByRow) {
|
52
|
-
const hSetRunes = StatRunesByRow[hSetIdx];
|
53
|
-
for (let [statRuneId, statRuneName] of Object.entries(hSetRunes)) {
|
54
|
-
let statRuneIdNum = validateNumber(statRuneId, 'statRuneId');
|
55
|
-
// Keep track
|
56
|
-
totalRuneAmt += 1;
|
57
|
-
// Add to StatRuneIds
|
58
|
-
runeSets.StatRuneIds[statRuneName] = statRuneIdNum;
|
59
|
-
// Add to StatRuneHSets
|
60
|
-
if (!(hSetIdx in runeSets.StatRuneHSets))
|
61
|
-
runeSets.StatRuneHSets[hSetIdx] = {};
|
62
|
-
runeSets.StatRuneHSets[hSetIdx][statRuneName] = statRuneIdNum;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
// Write to file
|
66
|
-
await writeToTmpFile(constant, {
|
67
|
-
constName: 'PrimaryRuneTreesByRuneNamesNum',
|
68
|
-
json: runeSets.PrimaryRuneTrees,
|
69
|
-
}, {
|
70
|
-
constName: 'SecondaryRuneTreesByRuneNamesNum',
|
71
|
-
json: runeSets.SecondaryRuneTrees,
|
72
|
-
}, {
|
73
|
-
constName: 'KeystoneIdsNum',
|
74
|
-
json: runeSets.KeystoneIds,
|
75
|
-
}, {
|
76
|
-
constName: 'StatRuneIdsNum',
|
77
|
-
typeName: 'StatRuneIdNum',
|
78
|
-
typeComment: RuneIdComment,
|
79
|
-
json: runeSets.StatRuneIds,
|
80
|
-
}, {
|
81
|
-
constName: 'RuneIdsNum',
|
82
|
-
typeName: 'RuneIdNum',
|
83
|
-
typeComment: RuneIdComment,
|
84
|
-
json: {
|
85
|
-
1: '...PrimaryRuneTreesByRuneNamesNum.Precision',
|
86
|
-
2: '...PrimaryRuneTreesByRuneNamesNum.Domination',
|
87
|
-
3: '...PrimaryRuneTreesByRuneNamesNum.Sorcery',
|
88
|
-
4: '...PrimaryRuneTreesByRuneNamesNum.Resolve',
|
89
|
-
5: '...PrimaryRuneTreesByRuneNamesNum.Inspiration',
|
90
|
-
6: '...StatRuneIdsNum',
|
91
|
-
},
|
92
|
-
keysToEscape: [1, 2, 3, 4, 5, 6],
|
93
|
-
}, {
|
94
|
-
constName: 'RuneHSetsByRuneNamesNum',
|
95
|
-
json: runeSets.RuneHSets,
|
96
|
-
}, {
|
97
|
-
constName: 'StatRuneHSetsByRuneNamesNum',
|
98
|
-
json: runeSets.StatRuneHSets,
|
99
|
-
}, {
|
100
|
-
constName: constant,
|
101
|
-
comment: `Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of ${totalRuneAmt} runes in the game.`,
|
102
|
-
json: {
|
103
|
-
'PrimaryRuneTreesByRuneNamesNum': 'PrimaryRuneTreesByRuneNamesNum',
|
104
|
-
'SecondaryRuneTreesByRuneNamesNum': 'SecondaryRuneTreesByRuneNamesNum',
|
105
|
-
'KeystoneIdsNum': 'KeystoneIdsNum',
|
106
|
-
'StatRuneIdsNum': 'StatRuneIdsNum',
|
107
|
-
'RuneIdsNum': 'RuneIdsNum',
|
108
|
-
'RuneHSetsByRuneNamesNum': 'RuneHSetsByRuneNamesNum',
|
109
|
-
'StatRuneHSetsByRuneNamesNum': 'StatRuneHSetsByRuneNamesNum',
|
110
|
-
},
|
111
|
-
keysToEscape: [
|
112
|
-
'PrimaryRuneTreesByRuneNamesNum',
|
113
|
-
'SecondaryRuneTreesByRuneNamesNum',
|
114
|
-
'KeystoneIdsNum',
|
115
|
-
'StatRuneIdsNum',
|
116
|
-
'RuneIdsNum',
|
117
|
-
'RuneHSetsByRuneNamesNum',
|
118
|
-
'StatRuneHSetsByRuneNamesNum',
|
119
|
-
],
|
120
|
-
});
|
121
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,119 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { StatRunesByRow } from '../constants/StatRunesByRow';
|
3
|
-
import { RuneIdComment } from './constants/RuneIdComment';
|
4
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
5
|
-
(async () => {
|
6
|
-
const constant = 'RuneSetsByRuneNames';
|
7
|
-
const runeSets = {
|
8
|
-
PrimaryRuneTrees: {},
|
9
|
-
SecondaryRuneTrees: {},
|
10
|
-
KeystoneIds: {},
|
11
|
-
StatRuneIds: {},
|
12
|
-
RuneHSets: {},
|
13
|
-
StatRuneHSets: {},
|
14
|
-
};
|
15
|
-
const keystoneHSetIdx = 0;
|
16
|
-
let totalRuneAmt = 0;
|
17
|
-
for (const runeTree of RunesReforged) {
|
18
|
-
const runeTreeName = runeTree.name;
|
19
|
-
const horizontalSets = runeTree.slots;
|
20
|
-
let currentHSetIdx = 0;
|
21
|
-
for (const { runes, } of horizontalSets) {
|
22
|
-
for (let { id, name: runeName, } of runes) {
|
23
|
-
totalRuneAmt += 1;
|
24
|
-
// Add to PrimaryRuneTrees
|
25
|
-
if (!(runeTreeName in runeSets.PrimaryRuneTrees))
|
26
|
-
runeSets.PrimaryRuneTrees[runeTreeName] = {};
|
27
|
-
runeSets.PrimaryRuneTrees[runeTreeName][runeName] = String(id);
|
28
|
-
// Add to SecondaryRuneTrees
|
29
|
-
if (!(runeTreeName in runeSets.SecondaryRuneTrees))
|
30
|
-
runeSets.SecondaryRuneTrees[runeTreeName] = {};
|
31
|
-
// But only if it isn't a keystone rune
|
32
|
-
if (currentHSetIdx != keystoneHSetIdx) {
|
33
|
-
runeSets.SecondaryRuneTrees[runeTreeName][runeName] = String(id);
|
34
|
-
}
|
35
|
-
// Add to KeystoneIds
|
36
|
-
// But only if it is a keystone rune
|
37
|
-
if (currentHSetIdx == keystoneHSetIdx) {
|
38
|
-
runeSets.KeystoneIds[runeName] = String(id);
|
39
|
-
}
|
40
|
-
// Add to RuneHSets
|
41
|
-
if (!(runeTreeName in runeSets.RuneHSets))
|
42
|
-
runeSets.RuneHSets[runeTreeName] = {};
|
43
|
-
if (!runeSets.RuneHSets[runeTreeName][currentHSetIdx])
|
44
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx] = {};
|
45
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx][runeName] = String(id);
|
46
|
-
}
|
47
|
-
++currentHSetIdx;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
for (let hSetIdx in StatRunesByRow) {
|
51
|
-
const hSetRunes = StatRunesByRow[hSetIdx];
|
52
|
-
for (let [statRuneId, statRuneName] of Object.entries(hSetRunes)) {
|
53
|
-
// Keep track
|
54
|
-
totalRuneAmt += 1;
|
55
|
-
// Add to StatRuneIds
|
56
|
-
runeSets.StatRuneIds[statRuneName] = statRuneId;
|
57
|
-
// Add to StatRuneHSets
|
58
|
-
if (!(hSetIdx in runeSets.StatRuneHSets))
|
59
|
-
runeSets.StatRuneHSets[hSetIdx] = {};
|
60
|
-
runeSets.StatRuneHSets[hSetIdx][statRuneName] = statRuneId;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
// Write to file
|
64
|
-
await writeToTmpFile(constant, {
|
65
|
-
constName: 'PrimaryRuneTreesByRuneNames',
|
66
|
-
json: runeSets.PrimaryRuneTrees,
|
67
|
-
}, {
|
68
|
-
constName: 'SecondaryRuneTreesByRuneNames',
|
69
|
-
json: runeSets.SecondaryRuneTrees,
|
70
|
-
}, {
|
71
|
-
constName: 'KeystoneIds',
|
72
|
-
json: runeSets.KeystoneIds,
|
73
|
-
}, {
|
74
|
-
constName: 'StatRuneIds',
|
75
|
-
includeAutoTypeName: true,
|
76
|
-
typeComment: RuneIdComment,
|
77
|
-
json: runeSets.StatRuneIds,
|
78
|
-
}, {
|
79
|
-
constName: 'RuneIds',
|
80
|
-
includeAutoTypeName: true,
|
81
|
-
typeComment: RuneIdComment,
|
82
|
-
json: {
|
83
|
-
1: '...PrimaryRuneTreesByRuneNames.Precision',
|
84
|
-
2: '...PrimaryRuneTreesByRuneNames.Domination',
|
85
|
-
3: '...PrimaryRuneTreesByRuneNames.Sorcery',
|
86
|
-
4: '...PrimaryRuneTreesByRuneNames.Resolve',
|
87
|
-
5: '...PrimaryRuneTreesByRuneNames.Inspiration',
|
88
|
-
6: '...StatRuneIds',
|
89
|
-
},
|
90
|
-
keysToEscape: [1, 2, 3, 4, 5, 6],
|
91
|
-
}, {
|
92
|
-
constName: 'RuneHSetsByRuneNames',
|
93
|
-
json: runeSets.RuneHSets,
|
94
|
-
}, {
|
95
|
-
constName: 'StatRuneHSetsByRuneNames',
|
96
|
-
json: runeSets.StatRuneHSets,
|
97
|
-
}, {
|
98
|
-
constName: constant,
|
99
|
-
comment: `Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of ${totalRuneAmt} runes in the game.`,
|
100
|
-
json: {
|
101
|
-
'PrimaryRuneTreesByRuneNames': 'PrimaryRuneTreesByRuneNames',
|
102
|
-
'SecondaryRuneTreesByRuneNames': 'SecondaryRuneTreesByRuneNames',
|
103
|
-
'KeystoneIds': 'KeystoneIds',
|
104
|
-
'StatRuneIds': 'StatRuneIds',
|
105
|
-
'RuneIds': 'RuneIds',
|
106
|
-
'RuneHSetsByRuneNames': 'RuneHSetsByRuneNames',
|
107
|
-
'StatRuneHSetsByRuneNames': 'StatRuneHSetsByRuneNames',
|
108
|
-
},
|
109
|
-
keysToEscape: [
|
110
|
-
'PrimaryRuneTreesByRuneNames',
|
111
|
-
'SecondaryRuneTreesByRuneNames',
|
112
|
-
'KeystoneIds',
|
113
|
-
'StatRuneIds',
|
114
|
-
'RuneIds',
|
115
|
-
'RuneHSetsByRuneNames',
|
116
|
-
'StatRuneHSetsByRuneNames',
|
117
|
-
],
|
118
|
-
});
|
119
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,116 +0,0 @@
|
|
1
|
-
import { RunesReforged } from '../constants/base/RunesReforged';
|
2
|
-
import { StatRunesByRow } from '../constants/StatRunesByRow';
|
3
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
4
|
-
(async () => {
|
5
|
-
const constant = 'RuneSets';
|
6
|
-
const runeSets = {
|
7
|
-
PrimaryRuneTrees: {},
|
8
|
-
SecondaryRuneTrees: {},
|
9
|
-
KeystoneNames: {},
|
10
|
-
StatRuneNames: {},
|
11
|
-
RuneHSets: {},
|
12
|
-
StatRuneHSets: {},
|
13
|
-
};
|
14
|
-
const keystoneHSetIdx = 0;
|
15
|
-
let totalRuneAmt = 0;
|
16
|
-
for (const runeTree of RunesReforged) {
|
17
|
-
const runeTreeName = runeTree.name;
|
18
|
-
const horizontalSets = runeTree.slots;
|
19
|
-
let currentHSetIdx = 0;
|
20
|
-
for (const { runes, } of horizontalSets) {
|
21
|
-
for (let { id, name: runeName, } of runes) {
|
22
|
-
totalRuneAmt += 1;
|
23
|
-
// Add to PrimaryRuneTrees
|
24
|
-
if (!(runeTreeName in runeSets.PrimaryRuneTrees))
|
25
|
-
runeSets.PrimaryRuneTrees[runeTreeName] = {};
|
26
|
-
runeSets.PrimaryRuneTrees[runeTreeName][id] = runeName;
|
27
|
-
// Add to SecondaryRuneTrees
|
28
|
-
if (!(runeTreeName in runeSets.SecondaryRuneTrees))
|
29
|
-
runeSets.SecondaryRuneTrees[runeTreeName] = {};
|
30
|
-
// But only if it isn't a keystone rune
|
31
|
-
if (currentHSetIdx != keystoneHSetIdx) {
|
32
|
-
runeSets.SecondaryRuneTrees[runeTreeName][id] = runeName;
|
33
|
-
}
|
34
|
-
// Add to KeystoneNames
|
35
|
-
// But only if it is a keystone rune
|
36
|
-
if (currentHSetIdx == keystoneHSetIdx) {
|
37
|
-
runeSets.KeystoneNames[id] = runeName;
|
38
|
-
}
|
39
|
-
// Add to RuneHSets
|
40
|
-
if (!(runeTreeName in runeSets.RuneHSets))
|
41
|
-
runeSets.RuneHSets[runeTreeName] = {};
|
42
|
-
if (!runeSets.RuneHSets[runeTreeName][currentHSetIdx])
|
43
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx] = {};
|
44
|
-
runeSets.RuneHSets[runeTreeName][currentHSetIdx][id] = runeName;
|
45
|
-
}
|
46
|
-
++currentHSetIdx;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
for (let hSetIdx in StatRunesByRow) {
|
50
|
-
const hSetRunes = StatRunesByRow[hSetIdx];
|
51
|
-
for (let [statRuneId, statRuneName] of Object.entries(hSetRunes)) {
|
52
|
-
// Keep track
|
53
|
-
totalRuneAmt += 1;
|
54
|
-
// Add to StatRuneNames
|
55
|
-
runeSets.StatRuneNames[statRuneId] = statRuneName;
|
56
|
-
// Add to StatRuneHSets
|
57
|
-
if (!(hSetIdx in runeSets.StatRuneHSets))
|
58
|
-
runeSets.StatRuneHSets[hSetIdx] = {};
|
59
|
-
runeSets.StatRuneHSets[hSetIdx][statRuneId] = statRuneName;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
// Write to file
|
63
|
-
await writeToTmpFile(constant, {
|
64
|
-
constName: 'PrimaryRuneTrees',
|
65
|
-
json: runeSets.PrimaryRuneTrees,
|
66
|
-
}, {
|
67
|
-
constName: 'SecondaryRuneTrees',
|
68
|
-
json: runeSets.SecondaryRuneTrees,
|
69
|
-
}, {
|
70
|
-
constName: 'KeystoneNames',
|
71
|
-
json: runeSets.KeystoneNames,
|
72
|
-
}, {
|
73
|
-
constName: 'StatRuneNames',
|
74
|
-
includeAutoTypeName: true,
|
75
|
-
json: runeSets.StatRuneNames,
|
76
|
-
}, {
|
77
|
-
constName: 'RuneNames',
|
78
|
-
includeAutoTypeName: true,
|
79
|
-
json: {
|
80
|
-
1: '...PrimaryRuneTrees.Precision',
|
81
|
-
2: '...PrimaryRuneTrees.Domination',
|
82
|
-
3: '...PrimaryRuneTrees.Sorcery',
|
83
|
-
4: '...PrimaryRuneTrees.Resolve',
|
84
|
-
5: '...PrimaryRuneTrees.Inspiration',
|
85
|
-
6: '...StatRuneNames',
|
86
|
-
},
|
87
|
-
keysToEscape: [1, 2, 3, 4, 5, 6],
|
88
|
-
}, {
|
89
|
-
constName: 'RuneHSets',
|
90
|
-
json: runeSets.RuneHSets,
|
91
|
-
}, {
|
92
|
-
constName: 'StatRuneHSets',
|
93
|
-
json: runeSets.StatRuneHSets,
|
94
|
-
}, {
|
95
|
-
constName: constant,
|
96
|
-
comment: `Contains all Rune IDs that are known to man in the game of League of Legends. Sorted by various useful categories. There are a total of ${totalRuneAmt} runes in the game.`,
|
97
|
-
json: {
|
98
|
-
'PrimaryRuneTrees': 'PrimaryRuneTrees',
|
99
|
-
'SecondaryRuneTrees': 'SecondaryRuneTrees',
|
100
|
-
'KeystoneNames': 'KeystoneNames',
|
101
|
-
'StatRuneNames': 'StatRuneNames',
|
102
|
-
'RuneNames': 'RuneNames',
|
103
|
-
'RuneHSets': 'RuneHSets',
|
104
|
-
'StatRuneHSets': 'StatRuneHSets',
|
105
|
-
},
|
106
|
-
keysToEscape: [
|
107
|
-
'PrimaryRuneTrees',
|
108
|
-
'SecondaryRuneTrees',
|
109
|
-
'KeystoneNames',
|
110
|
-
'StatRuneNames',
|
111
|
-
'RuneNames',
|
112
|
-
'RuneHSets',
|
113
|
-
'StatRuneHSets',
|
114
|
-
],
|
115
|
-
});
|
116
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Summoner } from '../constants/base/Summoner';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const spellIds = {};
|
5
|
-
// Add all summoners spell data to each corresponding key value
|
6
|
-
let spellId;
|
7
|
-
for (spellId in Summoner.data) {
|
8
|
-
const spellData = Summoner.data[spellId];
|
9
|
-
spellIds[spellData.name] = spellId;
|
10
|
-
}
|
11
|
-
// Write to file
|
12
|
-
const constName = 'SpellIdsByName';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
json: spellIds,
|
16
|
-
});
|
17
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Summoner } from '../constants/base/Summoner';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const spellIds = {};
|
5
|
-
// Add all summoners spell data to each corresponding key value
|
6
|
-
let spellId;
|
7
|
-
for (spellId in Summoner.data) {
|
8
|
-
const spellData = Summoner.data[spellId];
|
9
|
-
spellIds[spellData.key] = spellId;
|
10
|
-
}
|
11
|
-
// Write to file
|
12
|
-
const constName = 'SpellIds';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
includeAutoTypeName: true,
|
16
|
-
json: spellIds,
|
17
|
-
});
|
18
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { Summoner } from '../constants/base/Summoner';
|
2
|
-
import { validateNumber } from './helpers/validateNumber';
|
3
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
4
|
-
(async () => {
|
5
|
-
const spellKeys = {};
|
6
|
-
// Add all summoners spell data to each corresponding key value
|
7
|
-
let spellId;
|
8
|
-
for (spellId in Summoner.data) {
|
9
|
-
const spellData = Summoner.data[spellId];
|
10
|
-
spellKeys[spellId] = validateNumber(spellData.key, 'spellKey');
|
11
|
-
}
|
12
|
-
// Write to file
|
13
|
-
const constName = 'SpellKeysNum';
|
14
|
-
const typeName = 'SpellKeyNum';
|
15
|
-
writeToTmpFile(constName, {
|
16
|
-
constName,
|
17
|
-
typeName,
|
18
|
-
json: spellKeys,
|
19
|
-
});
|
20
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Summoner } from '../constants/base/Summoner';
|
2
|
-
import { writeToTmpFile } from './helpers/writeToTmpFile';
|
3
|
-
(async () => {
|
4
|
-
const spellKeys = {};
|
5
|
-
// Add all summoners spell data to each corresponding key value
|
6
|
-
let spellId;
|
7
|
-
for (spellId in Summoner.data) {
|
8
|
-
const spellData = Summoner.data[spellId];
|
9
|
-
spellKeys[spellId] = spellData.key;
|
10
|
-
}
|
11
|
-
// Write to file
|
12
|
-
const constName = 'SpellKeys';
|
13
|
-
writeToTmpFile(constName, {
|
14
|
-
constName,
|
15
|
-
includeAutoTypeName: true,
|
16
|
-
json: spellKeys,
|
17
|
-
});
|
18
|
-
})();
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|