lol-constants 2.23.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/constants/BootsItemNames.js +1 -4
- package/assets/constants/Champion.js +1 -4
- package/assets/constants/Item.js +1 -4
- package/assets/constants/LegendaryItemNames.d.ts +1 -1
- package/assets/constants/LegendaryItemNames.js +4 -5
- package/assets/constants/RunesReforged.js +1 -4
- package/assets/constants/StatRunes.js +1 -4
- package/assets/constants/StatRunesByRow.js +1 -4
- package/assets/constants/Summoner.js +1 -4
- package/assets/index.js +4 -20
- package/assets/scripts/asset-scripts/champion.js +5 -7
- package/assets/scripts/asset-scripts/generate-all.js +4 -6
- package/assets/scripts/asset-scripts/item.js +5 -7
- package/assets/scripts/asset-scripts/runes-reforged.js +5 -7
- package/assets/scripts/asset-scripts/summoner.js +5 -7
- package/assets/scripts/constants/RuneIdComment.js +1 -4
- package/assets/scripts/generate-categorized-item-keys-num.js +15 -17
- package/assets/scripts/generate-categorized-item-keys.js +12 -14
- package/assets/scripts/generate-categorized-item-names.js +12 -14
- package/assets/scripts/generate-champion-ids-by-name.js +5 -7
- package/assets/scripts/generate-champion-ids.js +5 -7
- package/assets/scripts/generate-champion-keys-num.js +7 -9
- package/assets/scripts/generate-champion-keys.js +5 -7
- package/assets/scripts/generate-champion-names.js +5 -7
- package/assets/scripts/generate-item-keys-num.js +7 -9
- package/assets/scripts/generate-item-keys.js +5 -7
- package/assets/scripts/generate-item-names.js +5 -7
- package/assets/scripts/generate-non-stat-rune-ids-num.js +4 -6
- package/assets/scripts/generate-non-stat-rune-ids.js +6 -8
- package/assets/scripts/generate-non-stat-rune-names.js +4 -6
- package/assets/scripts/generate-rune-ids.js +8 -10
- package/assets/scripts/generate-rune-names.js +6 -8
- package/assets/scripts/generate-rune-picking-relationships.js +4 -6
- package/assets/scripts/generate-rune-sets-by-rune-names-num.js +12 -14
- package/assets/scripts/generate-rune-sets-by-rune-names.js +10 -12
- package/assets/scripts/generate-rune-sets.js +7 -9
- package/assets/scripts/generate-spell-ids-by-name.js +5 -7
- package/assets/scripts/generate-spell-ids.js +5 -7
- package/assets/scripts/generate-spell-keys-num.js +7 -9
- package/assets/scripts/generate-spell-keys.js +5 -7
- package/assets/scripts/generate-spell-names.js +5 -7
- package/assets/scripts/generate-stat-rune-ids.js +6 -8
- package/assets/scripts/generate-stat-rune-names.js +4 -6
- package/assets/scripts/helpers/enableEscapedValues.js +1 -5
- package/assets/scripts/helpers/generateIndexFile.js +1 -5
- package/assets/scripts/helpers/getExportStatement.js +6 -10
- package/assets/scripts/helpers/getFmtdComment.js +1 -5
- package/assets/scripts/helpers/validateNumber.js +1 -5
- package/assets/scripts/helpers/writeToTmpFile.js +5 -9
- package/assets/scripts/print-file-names.js +5 -7
- package/core/constants/Abilities.js +6 -11
- package/core/constants/BuildingTypes.js +3 -7
- package/core/constants/Champions/ChampionClasses.d.ts +17 -0
- package/core/constants/Champions/ChampionClasses.js +25 -0
- package/core/constants/Champions/ChampionIds.js +1 -4
- package/core/constants/Champions/ChampionIdsByName.js +1 -4
- package/core/constants/Champions/ChampionKeys.js +1 -4
- package/core/constants/Champions/ChampionKeysNum.js +1 -4
- package/core/constants/Champions/ChampionNames.js +1 -4
- package/core/constants/Continents.js +3 -7
- package/core/constants/DataDragonUrls.d.ts +16 -16
- package/core/constants/DataDragonUrls.js +3 -6
- package/core/constants/DragonTypes.js +3 -7
- package/core/constants/GameModes.js +3 -7
- package/core/constants/GameTypes.js +3 -7
- package/core/constants/Items/BootsItemKeys.js +1 -4
- package/core/constants/Items/BootsItemKeysNum.js +1 -4
- package/core/constants/Items/BootsItemNames.js +1 -4
- package/core/constants/Items/ItemKeys.js +1 -4
- package/core/constants/Items/ItemKeysNum.js +1 -4
- package/core/constants/Items/ItemNames.js +1 -4
- package/core/constants/Items/ItemTypes.js +3 -7
- package/core/constants/Items/LegendaryItemKeys.js +1 -4
- package/core/constants/Items/LegendaryItemKeysNum.js +1 -4
- package/core/constants/Items/LegendaryItemNames.js +1 -4
- package/core/constants/KillTypes.js +3 -7
- package/core/constants/LaneTypes.js +3 -7
- package/core/constants/Lanes.js +3 -7
- package/core/constants/LeagueTexts.js +3 -7
- package/core/constants/Levels.js +3 -7
- package/core/constants/Locales.js +3 -7
- package/core/constants/MapIds.js +3 -7
- package/core/constants/MonsterTypes.d.ts +2 -1
- package/core/constants/MonsterTypes.js +5 -8
- package/core/constants/ParticipantIds.js +3 -7
- package/core/constants/PlatformApiUris.js +3 -7
- package/core/constants/PlatformIds.js +6 -11
- package/core/constants/Positions.js +3 -7
- package/core/constants/QueueIds.js +5 -9
- package/core/constants/QueueTypes.js +3 -7
- package/core/constants/RankedRanks.js +3 -7
- package/core/constants/RankedTiers.js +3 -7
- package/core/constants/RegionalApiUris.js +3 -7
- package/core/constants/Regions.js +6 -11
- package/core/constants/RelativeTeams.js +3 -7
- package/core/constants/Roles.js +3 -7
- package/core/constants/Runes/NonStatRuneIds.js +1 -4
- package/core/constants/Runes/NonStatRuneIdsNum.js +1 -4
- package/core/constants/Runes/NonStatRuneNames.js +1 -4
- package/core/constants/Runes/RuneIconFileNames.js +1 -4
- package/core/constants/Runes/RunePickingRelationships.js +1 -4
- package/core/constants/Runes/RuneSets.js +8 -11
- package/core/constants/Runes/RuneSetsByRuneNames.js +8 -11
- package/core/constants/Runes/RuneSetsByRuneNamesNum.js +8 -11
- package/core/constants/Runes/RuneTreeIds.js +6 -11
- package/core/constants/Runes/RuneTreeIdsNum.js +6 -11
- package/core/constants/Runes/RuneTreeNames.js +6 -11
- package/core/constants/Runes/RuneTreeTypes.js +3 -7
- package/core/constants/SkillSlots.js +3 -7
- package/core/constants/Skills.js +3 -7
- package/core/constants/Spells/SpellIds.js +1 -4
- package/core/constants/Spells/SpellIdsByName.js +1 -4
- package/core/constants/Spells/SpellKeys.js +1 -4
- package/core/constants/Spells/SpellKeysNum.js +1 -4
- package/core/constants/Spells/SpellNames.js +1 -4
- package/core/constants/TeamIds.js +3 -7
- package/core/constants/TowerTypes.js +3 -7
- package/core/constants/WardTypes.js +3 -7
- package/core/helpers/Champions/getChampionIdByKey.js +3 -7
- package/core/helpers/Champions/getChampionIdByName.js +3 -7
- package/core/helpers/Champions/getChampionKeyById.js +3 -7
- package/core/helpers/Champions/getChampionKeyByName.js +4 -8
- package/core/helpers/Champions/getChampionNameById.js +4 -8
- package/core/helpers/Champions/getChampionNameByKey.js +3 -7
- package/core/helpers/Champions/isChampionId.js +3 -7
- package/core/helpers/Champions/isChampionKey.js +3 -7
- package/core/helpers/Champions/isChampionKeyNum.js +3 -7
- package/core/helpers/Champions/isChampionName.js +3 -7
- package/core/helpers/Items/getItemKeyByName.js +3 -7
- package/core/helpers/Items/getItemNameByKey.js +3 -7
- package/core/helpers/Items/isBootsItemKey.js +3 -7
- package/core/helpers/Items/isBootsItemKeyNum.js +3 -7
- package/core/helpers/Items/isBootsItemName.js +3 -7
- package/core/helpers/Items/isItemKey.js +3 -7
- package/core/helpers/Items/isItemKeyNum.js +3 -7
- package/core/helpers/Items/isItemName.js +3 -7
- package/core/helpers/Items/isLegendaryItemKey.js +3 -7
- package/core/helpers/Items/isLegendaryItemKeyNum.js +3 -7
- package/core/helpers/Items/isLegendaryItemName.js +3 -7
- package/core/helpers/Items/isTier2Boots.d.ts +3 -0
- package/core/helpers/Items/isTier2Boots.js +9 -0
- package/core/helpers/Runes/getNonStatRuneIdByName.js +3 -7
- package/core/helpers/Runes/getNonStatRuneNameById.js +3 -7
- package/core/helpers/Runes/getRuneCategoryName.js +8 -12
- package/core/helpers/Runes/getRuneCdnUrl.js +16 -20
- package/core/helpers/Runes/getRuneIdByName.js +3 -7
- package/core/helpers/Runes/getRuneNameById.js +3 -7
- package/core/helpers/Runes/getStatRuneIdByName.js +3 -7
- package/core/helpers/Runes/getStatRuneNameById.js +3 -7
- package/core/helpers/Runes/isDominationRuneId.js +3 -7
- package/core/helpers/Runes/isDominationRuneIdNum.js +3 -7
- package/core/helpers/Runes/isDominationRuneName.js +3 -7
- package/core/helpers/Runes/isInspirationRuneId.js +3 -7
- package/core/helpers/Runes/isInspirationRuneIdNum.js +3 -7
- package/core/helpers/Runes/isInspirationRuneName.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneId.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneIdNum.js +3 -7
- package/core/helpers/Runes/isKeystoneRuneName.js +3 -7
- package/core/helpers/Runes/isNonStatRuneId.js +3 -7
- package/core/helpers/Runes/isNonStatRuneIdNum.js +3 -7
- package/core/helpers/Runes/isNonStatRuneName.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneId.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneIdNum.js +3 -7
- package/core/helpers/Runes/isPrecisionRuneName.js +3 -7
- package/core/helpers/Runes/isResolveRuneId.js +3 -7
- package/core/helpers/Runes/isResolveRuneIdNum.js +3 -7
- package/core/helpers/Runes/isResolveRuneName.js +3 -7
- package/core/helpers/Runes/isRuneId.js +3 -7
- package/core/helpers/Runes/isRuneIdNum.js +3 -7
- package/core/helpers/Runes/isRuneName.js +3 -7
- package/core/helpers/Runes/isSorceryRuneId.js +3 -7
- package/core/helpers/Runes/isSorceryRuneIdNum.js +3 -7
- package/core/helpers/Runes/isSorceryRuneName.js +3 -7
- package/core/helpers/Runes/isStatRuneId.js +3 -7
- package/core/helpers/Runes/isStatRuneIdNum.js +3 -7
- package/core/helpers/Runes/isStatRuneName.js +3 -7
- package/core/helpers/Spells/getSpellIdByKey.js +3 -7
- package/core/helpers/Spells/getSpellIdByName.js +3 -7
- package/core/helpers/Spells/getSpellKeyById.js +3 -7
- package/core/helpers/Spells/getSpellKeyByName.js +4 -8
- package/core/helpers/Spells/getSpellNameById.js +4 -8
- package/core/helpers/Spells/getSpellNameByKey.js +3 -7
- package/core/helpers/Spells/isSpellId.js +3 -7
- package/core/helpers/Spells/isSpellKey.js +3 -7
- package/core/helpers/Spells/isSpellKeyNum.js +3 -7
- package/core/helpers/Spells/isSpellName.js +3 -7
- package/core/helpers/getPositionImageUrl.js +3 -7
- package/core/helpers/isRiotId.js +7 -11
- package/core/helpers/makeRiotId.js +1 -5
- package/core/helpers/splitRiotId.js +1 -5
- package/core/index.d.ts +4 -0
- package/core/index.js +138 -150
- package/core/types/championJson.js +1 -2
- package/core/types/interfaces.js +1 -2
- package/core/types/types.js +1 -2
- package/package.json +9 -7
- package/assets/constants/OrnnItemNames.d.ts +0 -1
- package/assets/constants/OrnnItemNames.js +0 -33
- package/assets/scripts/generate-all.d.ts +0 -23
- package/assets/scripts/generate-all.js +0 -29
- package/core/constants/Items/OrnnItemKeys.d.ts +0 -23
- package/core/constants/Items/OrnnItemKeys.js +0 -4
- package/core/constants/Items/OrnnItemKeysNum.d.ts +0 -23
- package/core/constants/Items/OrnnItemKeysNum.js +0 -4
- package/core/constants/Items/OrnnItemNames.d.ts +0 -23
- package/core/constants/Items/OrnnItemNames.js +0 -4
- package/core/helpers/Items/isOrnnItemKey.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemKey.js +0 -8
- package/core/helpers/Items/isOrnnItemKeyNum.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemKeyNum.js +0 -8
- package/core/helpers/Items/isOrnnItemName.d.ts +0 -2
- package/core/helpers/Items/isOrnnItemName.js +0 -8
@@ -1,14 +1,11 @@
|
|
1
|
-
"
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
exports.RuneIdsNum = { ...exports.PrimaryRuneTreesByRuneNamesNum.Precision, ...exports.PrimaryRuneTreesByRuneNamesNum.Domination, ...exports.PrimaryRuneTreesByRuneNamesNum.Sorcery, ...exports.PrimaryRuneTreesByRuneNamesNum.Resolve, ...exports.PrimaryRuneTreesByRuneNamesNum.Inspiration, ...exports.StatRuneIdsNum };
|
9
|
-
exports.RuneHSetsByRuneNamesNum = { "Domination": { "0": { "Electrocute": 8112, "Dark Harvest": 8128, "Hail of Blades": 9923 }, "1": { "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143 }, "2": { "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138 }, "3": { "Treasure Hunter": 8135, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 } }, "Inspiration": { "0": { "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369 }, "1": { "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321 }, "2": { "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345 }, "3": { "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316 } }, "Precision": { "0": { "Press the Attack": 8005, "Fleet Footwork": 8021, "Conqueror": 8010 }, "1": { "Absorb Life": 9101, "Triumph": 9111, "Presence of Mind": 8009 }, "2": { "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103 }, "3": { "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 } }, "Resolve": { "0": { "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465 }, "1": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401 }, "2": { "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473 }, "3": { "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 } }, "Sorcery": { "0": { "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 }, "1": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275 }, "2": { "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233 }, "3": { "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } } };
|
10
|
-
exports.StatRuneHSetsByRuneNamesNum = { "0": { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008 }, "1": { "Flex (AF)": 5008, "Flex (MS)": 5010, "Flex (HP+)": 5001 }, "2": { "Defense (HP+)": 5001, "Defense (HP)": 5011, "Defense (Tenacity + Slow Resist)": 5013 } };
|
1
|
+
export const PrimaryRuneTreesByRuneNamesNum = { "Domination": { "Electrocute": 8112, "Dark Harvest": 8128, "Hail of Blades": 9923, "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143, "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138, "Treasure Hunter": 8135, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 }, "Inspiration": { "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321, "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345, "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316 }, "Precision": { "Press the Attack": 8005, "Fleet Footwork": 8021, "Conqueror": 8010, "Absorb Life": 9101, "Triumph": 9111, "Presence of Mind": 8009, "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103, "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 }, "Resolve": { "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465, "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401, "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473, "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 }, "Sorcery": { "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230, "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275, "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233, "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } };
|
2
|
+
export const SecondaryRuneTreesByRuneNamesNum = { "Domination": { "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143, "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138, "Treasure Hunter": 8135, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 }, "Inspiration": { "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321, "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345, "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316 }, "Precision": { "Absorb Life": 9101, "Triumph": 9111, "Presence of Mind": 8009, "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103, "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 }, "Resolve": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401, "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473, "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 }, "Sorcery": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275, "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233, "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } };
|
3
|
+
export const KeystoneIdsNum = { "Electrocute": 8112, "Dark Harvest": 8128, "Hail of Blades": 9923, "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Press the Attack": 8005, "Fleet Footwork": 8021, "Conqueror": 8010, "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465, "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 };
|
4
|
+
export const StatRuneIdsNum = { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008, "Flex (AF)": 5008, "Flex (MS)": 5010, "Flex (HP+)": 5001, "Defense (HP+)": 5001, "Defense (HP)": 5011, "Defense (Tenacity + Slow Resist)": 5013 };
|
5
|
+
export const RuneIdsNum = { ...PrimaryRuneTreesByRuneNamesNum.Precision, ...PrimaryRuneTreesByRuneNamesNum.Domination, ...PrimaryRuneTreesByRuneNamesNum.Sorcery, ...PrimaryRuneTreesByRuneNamesNum.Resolve, ...PrimaryRuneTreesByRuneNamesNum.Inspiration, ...StatRuneIdsNum };
|
6
|
+
export const RuneHSetsByRuneNamesNum = { "Domination": { "0": { "Electrocute": 8112, "Dark Harvest": 8128, "Hail of Blades": 9923 }, "1": { "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143 }, "2": { "Zombie Ward": 8136, "Ghost Poro": 8120, "Eyeball Collection": 8138 }, "3": { "Treasure Hunter": 8135, "Relentless Hunter": 8105, "Ultimate Hunter": 8106 } }, "Inspiration": { "0": { "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369 }, "1": { "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321 }, "2": { "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345 }, "3": { "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316 } }, "Precision": { "0": { "Press the Attack": 8005, "Fleet Footwork": 8021, "Conqueror": 8010 }, "1": { "Absorb Life": 9101, "Triumph": 9111, "Presence of Mind": 8009 }, "2": { "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103 }, "3": { "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299 } }, "Resolve": { "0": { "Grasp of the Undying": 8437, "Aftershock": 8439, "Guardian": 8465 }, "1": { "Demolish": 8446, "Font of Life": 8463, "Shield Bash": 8401 }, "2": { "Conditioning": 8429, "Second Wind": 8444, "Bone Plating": 8473 }, "3": { "Overgrowth": 8451, "Revitalize": 8453, "Unflinching": 8242 } }, "Sorcery": { "0": { "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230 }, "1": { "Nullifying Orb": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275 }, "2": { "Transcendence": 8210, "Celerity": 8234, "Absolute Focus": 8233 }, "3": { "Scorch": 8237, "Waterwalking": 8232, "Gathering Storm": 8236 } } };
|
7
|
+
export const StatRuneHSetsByRuneNamesNum = { "0": { "Offense (AS)": 5005, "Offense (AH)": 5007, "Offense (AF)": 5008 }, "1": { "Flex (AF)": 5008, "Flex (MS)": 5010, "Flex (HP+)": 5001 }, "2": { "Defense (HP+)": 5001, "Defense (HP)": 5011, "Defense (Tenacity + Slow Resist)": 5013 } };
|
11
8
|
/**
|
12
9
|
* 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 69 runes in the game.
|
13
10
|
*/
|
14
|
-
|
11
|
+
export const RuneSetsByRuneNamesNum = { PrimaryRuneTreesByRuneNamesNum, SecondaryRuneTreesByRuneNamesNum, KeystoneIdsNum, StatRuneIdsNum, RuneIdsNum, RuneHSetsByRuneNamesNum, StatRuneHSetsByRuneNamesNum };
|
@@ -1,19 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.getRuneTreeIdByName = exports.isRuneTreeId = exports.RuneTreeIds = void 0;
|
4
|
-
const RuneTreeNames_1 = require("./RuneTreeNames");
|
5
|
-
exports.RuneTreeIds = {
|
1
|
+
import { RuneTreeNames } from './RuneTreeNames';
|
2
|
+
export const RuneTreeIds = {
|
6
3
|
'Precision': '8000',
|
7
4
|
'Domination': '8100',
|
8
5
|
'Sorcery': '8200',
|
9
6
|
'Resolve': '8400',
|
10
7
|
'Inspiration': '8300',
|
11
8
|
};
|
12
|
-
function isRuneTreeId(id) {
|
13
|
-
return typeof id == 'string' && id in
|
9
|
+
export function isRuneTreeId(id) {
|
10
|
+
return typeof id == 'string' && id in RuneTreeNames;
|
14
11
|
}
|
15
|
-
|
16
|
-
|
17
|
-
return exports.RuneTreeIds[name];
|
12
|
+
export function getRuneTreeIdByName(name) {
|
13
|
+
return RuneTreeIds[name];
|
18
14
|
}
|
19
|
-
exports.getRuneTreeIdByName = getRuneTreeIdByName;
|
@@ -1,19 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.getRuneTreeIdNumByName = exports.isRuneTreeIdNum = exports.RuneTreeIdsNum = void 0;
|
4
|
-
const RuneTreeNames_1 = require("./RuneTreeNames");
|
5
|
-
exports.RuneTreeIdsNum = {
|
1
|
+
import { RuneTreeNames } from './RuneTreeNames';
|
2
|
+
export const RuneTreeIdsNum = {
|
6
3
|
Precision: 8000,
|
7
4
|
Domination: 8100,
|
8
5
|
Sorcery: 8200,
|
9
6
|
Resolve: 8400,
|
10
7
|
Inspiration: 8300,
|
11
8
|
};
|
12
|
-
function isRuneTreeIdNum(id) {
|
13
|
-
return typeof id == 'number' && id in
|
9
|
+
export function isRuneTreeIdNum(id) {
|
10
|
+
return typeof id == 'number' && id in RuneTreeNames;
|
14
11
|
}
|
15
|
-
|
16
|
-
|
17
|
-
return exports.RuneTreeIdsNum[name];
|
12
|
+
export function getRuneTreeIdNumByName(name) {
|
13
|
+
return RuneTreeIdsNum[name];
|
18
14
|
}
|
19
|
-
exports.getRuneTreeIdNumByName = getRuneTreeIdNumByName;
|
@@ -1,19 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.getRuneTreeNameById = exports.isRuneTreeName = exports.RuneTreeNames = void 0;
|
4
|
-
const RuneTreeIds_1 = require("./RuneTreeIds");
|
5
|
-
exports.RuneTreeNames = {
|
1
|
+
import { RuneTreeIds } from './RuneTreeIds';
|
2
|
+
export const RuneTreeNames = {
|
6
3
|
'8000': 'Precision',
|
7
4
|
'8100': 'Domination',
|
8
5
|
'8200': 'Sorcery',
|
9
6
|
'8400': 'Resolve',
|
10
7
|
'8300': 'Inspiration',
|
11
8
|
};
|
12
|
-
function isRuneTreeName(name) {
|
13
|
-
return typeof name == 'string' && name in
|
9
|
+
export function isRuneTreeName(name) {
|
10
|
+
return typeof name == 'string' && name in RuneTreeIds;
|
14
11
|
}
|
15
|
-
|
16
|
-
|
17
|
-
return exports.RuneTreeNames[id];
|
12
|
+
export function getRuneTreeNameById(id) {
|
13
|
+
return RuneTreeNames[id];
|
18
14
|
}
|
19
|
-
exports.getRuneTreeNameById = getRuneTreeNameById;
|
@@ -1,11 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isRuneTreeType = exports.RuneTreeTypes = void 0;
|
4
|
-
exports.RuneTreeTypes = {
|
1
|
+
export const RuneTreeTypes = {
|
5
2
|
'Primary': 'Primary',
|
6
3
|
'Secondary': 'Secondary',
|
7
4
|
};
|
8
|
-
function isRuneTreeType(type) {
|
9
|
-
return typeof type == 'string' && type in
|
5
|
+
export function isRuneTreeType(type) {
|
6
|
+
return typeof type == 'string' && type in RuneTreeTypes;
|
10
7
|
}
|
11
|
-
exports.isRuneTreeType = isRuneTreeType;
|
@@ -1,13 +1,9 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isSkillSlot = exports.SkillSlots = void 0;
|
4
|
-
exports.SkillSlots = {
|
1
|
+
export const SkillSlots = {
|
5
2
|
1: 1,
|
6
3
|
2: 2,
|
7
4
|
3: 3,
|
8
5
|
4: 4,
|
9
6
|
};
|
10
|
-
function isSkillSlot(value) {
|
11
|
-
return value in
|
7
|
+
export function isSkillSlot(value) {
|
8
|
+
return value in SkillSlots;
|
12
9
|
}
|
13
|
-
exports.isSkillSlot = isSkillSlot;
|
package/core/constants/Skills.js
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isSkill = exports.Skills = void 0;
|
4
|
-
exports.Skills = {
|
1
|
+
export const Skills = {
|
5
2
|
'Q': 'Q',
|
6
3
|
'W': 'W',
|
7
4
|
'E': 'E',
|
8
5
|
'R': 'R',
|
9
6
|
};
|
10
|
-
function isSkill(skill) {
|
11
|
-
return typeof skill == 'string' && skill in
|
7
|
+
export function isSkill(skill) {
|
8
|
+
return typeof skill == 'string' && skill in Skills;
|
12
9
|
}
|
13
|
-
exports.isSkill = isSkill;
|
@@ -1,4 +1 @@
|
|
1
|
-
"
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpellIds = void 0;
|
4
|
-
exports.SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder", "2201": "SummonerCherryHold", "2202": "SummonerCherryFlash" };
|
1
|
+
export const SpellIds = { "1": "SummonerBoost", "3": "SummonerExhaust", "4": "SummonerFlash", "6": "SummonerHaste", "7": "SummonerHeal", "11": "SummonerSmite", "12": "SummonerTeleport", "13": "SummonerMana", "14": "SummonerDot", "21": "SummonerBarrier", "30": "SummonerPoroRecall", "31": "SummonerPoroThrow", "32": "SummonerSnowball", "39": "SummonerSnowURFSnowball_Mark", "54": "Summoner_UltBookPlaceholder", "55": "Summoner_UltBookSmitePlaceholder", "2201": "SummonerCherryHold", "2202": "SummonerCherryFlash" };
|
@@ -1,4 +1 @@
|
|
1
|
-
"
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpellIdsByName = void 0;
|
4
|
-
exports.SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "Flash": "SummonerFlash", "Flee": "SummonerCherryHold", "Ignite": "SummonerDot", "Exhaust": "SummonerExhaust", "Ghost": "SummonerHaste", "Heal": "SummonerHeal", "Clarity": "SummonerMana", "To the King!": "SummonerPoroRecall", "Poro Toss": "SummonerPoroThrow", "Smite": "SummonerSmite", "Mark": "SummonerSnowball", "Teleport": "SummonerTeleport", "Placeholder": "Summoner_UltBookPlaceholder", "Placeholder and Attack-Smite": "Summoner_UltBookSmitePlaceholder" };
|
1
|
+
export const SpellIdsByName = { "Barrier": "SummonerBarrier", "Cleanse": "SummonerBoost", "Flash": "SummonerFlash", "Flee": "SummonerCherryHold", "Ignite": "SummonerDot", "Exhaust": "SummonerExhaust", "Ghost": "SummonerHaste", "Heal": "SummonerHeal", "Clarity": "SummonerMana", "To the King!": "SummonerPoroRecall", "Poro Toss": "SummonerPoroThrow", "Smite": "SummonerSmite", "Mark": "SummonerSnowball", "Teleport": "SummonerTeleport", "Placeholder": "Summoner_UltBookPlaceholder", "Placeholder and Attack-Smite": "Summoner_UltBookSmitePlaceholder" };
|
@@ -1,4 +1 @@
|
|
1
|
-
"
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpellKeys = void 0;
|
4
|
-
exports.SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "SummonerCherryFlash": "2202", "SummonerCherryHold": "2201", "SummonerDot": "14", "SummonerExhaust": "3", "SummonerFlash": "4", "SummonerHaste": "6", "SummonerHeal": "7", "SummonerMana": "13", "SummonerPoroRecall": "30", "SummonerPoroThrow": "31", "SummonerSmite": "11", "SummonerSnowURFSnowball_Mark": "39", "SummonerSnowball": "32", "SummonerTeleport": "12", "Summoner_UltBookPlaceholder": "54", "Summoner_UltBookSmitePlaceholder": "55" };
|
1
|
+
export const SpellKeys = { "SummonerBarrier": "21", "SummonerBoost": "1", "SummonerCherryFlash": "2202", "SummonerCherryHold": "2201", "SummonerDot": "14", "SummonerExhaust": "3", "SummonerFlash": "4", "SummonerHaste": "6", "SummonerHeal": "7", "SummonerMana": "13", "SummonerPoroRecall": "30", "SummonerPoroThrow": "31", "SummonerSmite": "11", "SummonerSnowURFSnowball_Mark": "39", "SummonerSnowball": "32", "SummonerTeleport": "12", "Summoner_UltBookPlaceholder": "54", "Summoner_UltBookSmitePlaceholder": "55" };
|
@@ -1,4 +1 @@
|
|
1
|
-
"
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpellKeysNum = void 0;
|
4
|
-
exports.SpellKeysNum = { "SummonerBarrier": 21, "SummonerBoost": 1, "SummonerCherryFlash": 2202, "SummonerCherryHold": 2201, "SummonerDot": 14, "SummonerExhaust": 3, "SummonerFlash": 4, "SummonerHaste": 6, "SummonerHeal": 7, "SummonerMana": 13, "SummonerPoroRecall": 30, "SummonerPoroThrow": 31, "SummonerSmite": 11, "SummonerSnowURFSnowball_Mark": 39, "SummonerSnowball": 32, "SummonerTeleport": 12, "Summoner_UltBookPlaceholder": 54, "Summoner_UltBookSmitePlaceholder": 55 };
|
1
|
+
export const SpellKeysNum = { "SummonerBarrier": 21, "SummonerBoost": 1, "SummonerCherryFlash": 2202, "SummonerCherryHold": 2201, "SummonerDot": 14, "SummonerExhaust": 3, "SummonerFlash": 4, "SummonerHaste": 6, "SummonerHeal": 7, "SummonerMana": 13, "SummonerPoroRecall": 30, "SummonerPoroThrow": 31, "SummonerSmite": 11, "SummonerSnowURFSnowball_Mark": 39, "SummonerSnowball": 32, "SummonerTeleport": 12, "Summoner_UltBookPlaceholder": 54, "Summoner_UltBookSmitePlaceholder": 55 };
|
@@ -1,4 +1 @@
|
|
1
|
-
"
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SpellNames = void 0;
|
4
|
-
exports.SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite", "2201": "Flee", "2202": "Flash" };
|
1
|
+
export const SpellNames = { "1": "Cleanse", "3": "Exhaust", "4": "Flash", "6": "Ghost", "7": "Heal", "11": "Smite", "12": "Teleport", "13": "Clarity", "14": "Ignite", "21": "Barrier", "30": "To the King!", "31": "Poro Toss", "32": "Mark", "39": "Mark", "54": "Placeholder", "55": "Placeholder and Attack-Smite", "2201": "Flee", "2202": "Flash" };
|
@@ -1,11 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isTeamId = exports.TeamIds = void 0;
|
4
|
-
exports.TeamIds = {
|
1
|
+
export const TeamIds = {
|
5
2
|
100: 100,
|
6
3
|
200: 200,
|
7
4
|
};
|
8
|
-
function isTeamId(value) {
|
9
|
-
return value in
|
5
|
+
export function isTeamId(value) {
|
6
|
+
return value in TeamIds;
|
10
7
|
}
|
11
|
-
exports.isTeamId = isTeamId;
|
@@ -1,13 +1,9 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isTowerType = exports.TowerTypes = void 0;
|
4
|
-
exports.TowerTypes = {
|
1
|
+
export const TowerTypes = {
|
5
2
|
'OUTER_TURRET': 'OUTER_TURRET',
|
6
3
|
'INNER_TURRET': 'INNER_TURRET',
|
7
4
|
'BASE_TURRET': 'BASE_TURRET',
|
8
5
|
'NEXUS_TURRET': 'NEXUS_TURRET',
|
9
6
|
};
|
10
|
-
function isTowerType(value) {
|
11
|
-
return typeof value == 'string' && value in
|
7
|
+
export function isTowerType(value) {
|
8
|
+
return typeof value == 'string' && value in TowerTypes;
|
12
9
|
}
|
13
|
-
exports.isTowerType = isTowerType;
|
@@ -1,14 +1,10 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isWardType = exports.WardTypes = void 0;
|
4
|
-
exports.WardTypes = {
|
1
|
+
export const WardTypes = {
|
5
2
|
'UNDEFINED': 'UNDEFINED',
|
6
3
|
'YELLOW_TRINKET': 'YELLOW_TRINKET',
|
7
4
|
'CONTROL_WARD': 'CONTROL_WARD',
|
8
5
|
'SIGHT_WARD': 'SIGHT_WARD',
|
9
6
|
'BLUE_TRINKET': 'BLUE_TRINKET',
|
10
7
|
};
|
11
|
-
function isWardType(value) {
|
12
|
-
return typeof value == 'string' && value in
|
8
|
+
export function isWardType(value) {
|
9
|
+
return typeof value == 'string' && value in WardTypes;
|
13
10
|
}
|
14
|
-
exports.isWardType = isWardType;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionIds_1 = require("../../constants/Champions/ChampionIds");
|
5
|
-
function getChampionIdByKey(key) {
|
6
|
-
return ChampionIds_1.ChampionIds[key];
|
1
|
+
import { ChampionIds } from '../../constants/Champions/ChampionIds';
|
2
|
+
export function getChampionIdByKey(key) {
|
3
|
+
return ChampionIds[key];
|
7
4
|
}
|
8
|
-
exports.getChampionIdByKey = getChampionIdByKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionIdsByName_1 = require("../../constants/Champions/ChampionIdsByName");
|
5
|
-
function getChampionIdByName(name) {
|
6
|
-
return ChampionIdsByName_1.ChampionIdsByName[name];
|
1
|
+
import { ChampionIdsByName } from '../../constants/Champions/ChampionIdsByName';
|
2
|
+
export function getChampionIdByName(name) {
|
3
|
+
return ChampionIdsByName[name];
|
7
4
|
}
|
8
|
-
exports.getChampionIdByName = getChampionIdByName;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionKeys_1 = require("../../constants/Champions/ChampionKeys");
|
5
|
-
function getChampionKeyById(id) {
|
6
|
-
return ChampionKeys_1.ChampionKeys[id];
|
1
|
+
import { ChampionKeys } from '../../constants/Champions/ChampionKeys';
|
2
|
+
export function getChampionKeyById(id) {
|
3
|
+
return ChampionKeys[id];
|
7
4
|
}
|
8
|
-
exports.getChampionKeyById = getChampionKeyById;
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const ChampionKeys_1 = require("../../constants/Champions/ChampionKeys");
|
6
|
-
function getChampionKeyByName(name) {
|
7
|
-
return ChampionKeys_1.ChampionKeys[ChampionIdsByName_1.ChampionIdsByName[name]];
|
1
|
+
import { ChampionIdsByName } from '../../constants/Champions/ChampionIdsByName';
|
2
|
+
import { ChampionKeys } from '../../constants/Champions/ChampionKeys';
|
3
|
+
export function getChampionKeyByName(name) {
|
4
|
+
return ChampionKeys[ChampionIdsByName[name]];
|
8
5
|
}
|
9
|
-
exports.getChampionKeyByName = getChampionKeyByName;
|
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const ChampionNames_1 = require("../../constants/Champions/ChampionNames");
|
6
|
-
function getChampionNameById(id) {
|
7
|
-
return ChampionNames_1.ChampionNames[ChampionKeys_1.ChampionKeys[id]];
|
1
|
+
import { ChampionKeys } from '../../constants/Champions/ChampionKeys';
|
2
|
+
import { ChampionNames } from '../../constants/Champions/ChampionNames';
|
3
|
+
export function getChampionNameById(id) {
|
4
|
+
return ChampionNames[ChampionKeys[id]];
|
8
5
|
}
|
9
|
-
exports.getChampionNameById = getChampionNameById;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionNames_1 = require("../../constants/Champions/ChampionNames");
|
5
|
-
function getChampionNameByKey(key) {
|
6
|
-
return ChampionNames_1.ChampionNames[key];
|
1
|
+
import { ChampionNames } from '../../constants/Champions/ChampionNames';
|
2
|
+
export function getChampionNameByKey(key) {
|
3
|
+
return ChampionNames[key];
|
7
4
|
}
|
8
|
-
exports.getChampionNameByKey = getChampionNameByKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionKeys_1 = require("../../constants/Champions/ChampionKeys");
|
5
|
-
function isChampionId(id) {
|
6
|
-
return typeof id == 'string' && id in ChampionKeys_1.ChampionKeys;
|
1
|
+
import { ChampionKeys } from '../../constants/Champions/ChampionKeys';
|
2
|
+
export function isChampionId(id) {
|
3
|
+
return typeof id == 'string' && id in ChampionKeys;
|
7
4
|
}
|
8
|
-
exports.isChampionId = isChampionId;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionNames_1 = require("../../constants/Champions/ChampionNames");
|
5
|
-
function isChampionKey(key) {
|
6
|
-
return key in ChampionNames_1.ChampionNames;
|
1
|
+
import { ChampionNames } from '../../constants/Champions/ChampionNames';
|
2
|
+
export function isChampionKey(key) {
|
3
|
+
return key in ChampionNames;
|
7
4
|
}
|
8
|
-
exports.isChampionKey = isChampionKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionNames_1 = require("../../constants/Champions/ChampionNames");
|
5
|
-
function isChampionKeyNum(key) {
|
6
|
-
return key in ChampionNames_1.ChampionNames;
|
1
|
+
import { ChampionNames } from '../../constants/Champions/ChampionNames';
|
2
|
+
export function isChampionKeyNum(key) {
|
3
|
+
return key in ChampionNames;
|
7
4
|
}
|
8
|
-
exports.isChampionKeyNum = isChampionKeyNum;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ChampionIdsByName_1 = require("../../constants/Champions/ChampionIdsByName");
|
5
|
-
function isChampionName(name) {
|
6
|
-
return typeof name == 'string' && name in ChampionIdsByName_1.ChampionIdsByName;
|
1
|
+
import { ChampionIdsByName } from '../../constants/Champions/ChampionIdsByName';
|
2
|
+
export function isChampionName(name) {
|
3
|
+
return typeof name == 'string' && name in ChampionIdsByName;
|
7
4
|
}
|
8
|
-
exports.isChampionName = isChampionName;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ItemKeys_1 = require("../../constants/Items/ItemKeys");
|
5
|
-
function getItemKeyByName(name) {
|
6
|
-
return ItemKeys_1.ItemKeys[name];
|
1
|
+
import { ItemKeys } from '../../constants/Items/ItemKeys';
|
2
|
+
export function getItemKeyByName(name) {
|
3
|
+
return ItemKeys[name];
|
7
4
|
}
|
8
|
-
exports.getItemKeyByName = getItemKeyByName;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ItemNames_1 = require("../../constants/Items/ItemNames");
|
5
|
-
function getItemNameByKey(key) {
|
6
|
-
return ItemNames_1.ItemNames[key];
|
1
|
+
import { ItemNames } from '../../constants/Items/ItemNames';
|
2
|
+
export function getItemNameByKey(key) {
|
3
|
+
return ItemNames[key];
|
7
4
|
}
|
8
|
-
exports.getItemNameByKey = getItemNameByKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const BootsItemNames_1 = require("../../constants/Items/BootsItemNames");
|
5
|
-
function isBootsItemKey(key) {
|
6
|
-
return key in BootsItemNames_1.BootsItemNames;
|
1
|
+
import { BootsItemNames } from '../../constants/Items/BootsItemNames';
|
2
|
+
export function isBootsItemKey(key) {
|
3
|
+
return key in BootsItemNames;
|
7
4
|
}
|
8
|
-
exports.isBootsItemKey = isBootsItemKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const BootsItemNames_1 = require("../../constants/Items/BootsItemNames");
|
5
|
-
function isBootsItemKeyNum(key) {
|
6
|
-
return key in BootsItemNames_1.BootsItemNames;
|
1
|
+
import { BootsItemNames } from '../../constants/Items/BootsItemNames';
|
2
|
+
export function isBootsItemKeyNum(key) {
|
3
|
+
return key in BootsItemNames;
|
7
4
|
}
|
8
|
-
exports.isBootsItemKeyNum = isBootsItemKeyNum;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const BootsItemKeys_1 = require("../../constants/Items/BootsItemKeys");
|
5
|
-
function isBootsItemName(name) {
|
6
|
-
return typeof name == 'string' && name in BootsItemKeys_1.BootsItemKeys;
|
1
|
+
import { BootsItemKeys } from '../../constants/Items/BootsItemKeys';
|
2
|
+
export function isBootsItemName(name) {
|
3
|
+
return typeof name == 'string' && name in BootsItemKeys;
|
7
4
|
}
|
8
|
-
exports.isBootsItemName = isBootsItemName;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ItemNames_1 = require("../../constants/Items/ItemNames");
|
5
|
-
function isItemKey(key) {
|
6
|
-
return key in ItemNames_1.ItemNames;
|
1
|
+
import { ItemNames } from '../../constants/Items/ItemNames';
|
2
|
+
export function isItemKey(key) {
|
3
|
+
return key in ItemNames;
|
7
4
|
}
|
8
|
-
exports.isItemKey = isItemKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ItemNames_1 = require("../../constants/Items/ItemNames");
|
5
|
-
function isItemKeyNum(key) {
|
6
|
-
return key in ItemNames_1.ItemNames;
|
1
|
+
import { ItemNames } from '../../constants/Items/ItemNames';
|
2
|
+
export function isItemKeyNum(key) {
|
3
|
+
return key in ItemNames;
|
7
4
|
}
|
8
|
-
exports.isItemKeyNum = isItemKeyNum;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const ItemKeys_1 = require("../../constants/Items/ItemKeys");
|
5
|
-
function isItemName(name) {
|
6
|
-
return typeof name == 'string' && name in ItemKeys_1.ItemKeys;
|
1
|
+
import { ItemKeys } from '../../constants/Items/ItemKeys';
|
2
|
+
export function isItemName(name) {
|
3
|
+
return typeof name == 'string' && name in ItemKeys;
|
7
4
|
}
|
8
|
-
exports.isItemName = isItemName;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
|
5
|
-
function isLegendaryItemKey(key) {
|
6
|
-
return key in LegendaryItemNames_1.LegendaryItemNames;
|
1
|
+
import { LegendaryItemNames } from '../../constants/Items/LegendaryItemNames';
|
2
|
+
export function isLegendaryItemKey(key) {
|
3
|
+
return key in LegendaryItemNames;
|
7
4
|
}
|
8
|
-
exports.isLegendaryItemKey = isLegendaryItemKey;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const LegendaryItemNames_1 = require("../../constants/Items/LegendaryItemNames");
|
5
|
-
function isLegendaryItemKeyNum(key) {
|
6
|
-
return key in LegendaryItemNames_1.LegendaryItemNames;
|
1
|
+
import { LegendaryItemNames } from '../../constants/Items/LegendaryItemNames';
|
2
|
+
export function isLegendaryItemKeyNum(key) {
|
3
|
+
return key in LegendaryItemNames;
|
7
4
|
}
|
8
|
-
exports.isLegendaryItemKeyNum = isLegendaryItemKeyNum;
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const LegendaryItemKeys_1 = require("../../constants/Items/LegendaryItemKeys");
|
5
|
-
function isLegendaryItemName(name) {
|
6
|
-
return typeof name == 'string' && name in LegendaryItemKeys_1.LegendaryItemKeys;
|
1
|
+
import { LegendaryItemKeys } from '../../constants/Items/LegendaryItemKeys';
|
2
|
+
export function isLegendaryItemName(name) {
|
3
|
+
return typeof name == 'string' && name in LegendaryItemKeys;
|
7
4
|
}
|
8
|
-
exports.isLegendaryItemName = isLegendaryItemName;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
const tier1BootsItemKey = 1001;
|
2
|
+
const slightlyMagicalBootsItemKey = 2422;
|
3
|
+
const tier1Boots = {
|
4
|
+
[tier1BootsItemKey]: tier1BootsItemKey,
|
5
|
+
[slightlyMagicalBootsItemKey]: slightlyMagicalBootsItemKey,
|
6
|
+
};
|
7
|
+
export function isTier2Boots(itemKey) {
|
8
|
+
return !(itemKey in tier1Boots);
|
9
|
+
}
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const NonStatRuneIds_1 = require("../../constants/Runes/NonStatRuneIds");
|
5
|
-
function getNonStatRuneIdByName(name) {
|
6
|
-
return NonStatRuneIds_1.NonStatRuneIds[name];
|
1
|
+
import { NonStatRuneIds } from '../../constants/Runes/NonStatRuneIds';
|
2
|
+
export function getNonStatRuneIdByName(name) {
|
3
|
+
return NonStatRuneIds[name];
|
7
4
|
}
|
8
|
-
exports.getNonStatRuneIdByName = getNonStatRuneIdByName;
|