lol-constants
Version:
League of Legends constants, functions, and types. Provides a plathera of functions to easily convert between ID, Name, and Key for champions, items, summoner spells, and runes.
14 lines (13 loc) • 13.7 kB
JavaScript
export const Runes = { 8005: { id: 8005, key: "PressTheAttack", name: "Press the Attack", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8008, 8021, 8010] }, 8008: { id: 8008, key: "LethalTempo", name: "Lethal Tempo", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8021, 8010] }, 8009: { id: 8009, key: "PresenceOfMind", name: "Presence of Mind", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9101, 9111] }, 8010: { id: 8010, key: "Conqueror", name: "Conqueror", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8008, 8021] }, 8014: { id: 8014, key: "CoupDeGrace", name: "Coup de Grace", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8017, 8299] }, 8017: { id: 8017, key: "CutDown", name: "Cut Down", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8014, 8299] }, 8021: { id: 8021, key: "FleetFootwork", name: "Fleet Footwork", treeId: 8000, isKeystone: true, slot: 0, horizontal: [8005, 8008, 8010] }, 8105: { id: 8105, key: "RelentlessHunter", name: "Relentless Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8135, 8106] }, 8106: { id: 8106, key: "UltimateHunter", name: "Ultimate Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8135, 8105] }, 8112: { id: 8112, key: "Electrocute", name: "Electrocute", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8128, 9923] }, 8126: { id: 8126, key: "CheapShot", name: "Cheap Shot", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8139, 8143] }, 8128: { id: 8128, key: "DarkHarvest", name: "Dark Harvest", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8112, 9923] }, 8135: { id: 8135, key: "TreasureHunter", name: "Treasure Hunter", treeId: 8100, isKeystone: false, slot: 3, horizontal: [8105, 8106] }, 8137: { id: 8137, key: "SixthSense", name: "Sixth Sense", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8140, 8141] }, 8139: { id: 8139, key: "TasteOfBlood", name: "Taste of Blood", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8126, 8143] }, 8140: { id: 8140, key: "GrislyMementos", name: "Grisly Mementos", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8137, 8141] }, 8141: { id: 8141, key: "DeepWard", name: "Deep Ward", treeId: 8100, isKeystone: false, slot: 2, horizontal: [8137, 8140] }, 8143: { id: 8143, key: "SuddenImpact", name: "Sudden Impact", treeId: 8100, isKeystone: false, slot: 1, horizontal: [8126, 8139] }, 8210: { id: 8210, key: "Transcendence", name: "Transcendence", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8234, 8233] }, 8214: { id: 8214, key: "SummonAery", name: "Summon Aery", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8229, 8230] }, 8224: { id: 8224, key: "NullifyingOrb", name: "Axiom Arcanist", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8226, 8275] }, 8226: { id: 8226, key: "ManaflowBand", name: "Manaflow Band", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8224, 8275] }, 8229: { id: 8229, key: "ArcaneComet", name: "Arcane Comet", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8214, 8230] }, 8230: { id: 8230, key: "PhaseRush", name: "Phase Rush", treeId: 8200, isKeystone: true, slot: 0, horizontal: [8214, 8229] }, 8232: { id: 8232, key: "Waterwalking", name: "Waterwalking", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8237, 8236] }, 8233: { id: 8233, key: "AbsoluteFocus", name: "Absolute Focus", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8210, 8234] }, 8234: { id: 8234, key: "Celerity", name: "Celerity", treeId: 8200, isKeystone: false, slot: 2, horizontal: [8210, 8233] }, 8236: { id: 8236, key: "GatheringStorm", name: "Gathering Storm", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8237, 8232] }, 8237: { id: 8237, key: "Scorch", name: "Scorch", treeId: 8200, isKeystone: false, slot: 3, horizontal: [8232, 8236] }, 8242: { id: 8242, key: "Unflinching", name: "Unflinching", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8451, 8453] }, 8275: { id: 8275, key: "NimbusCloak", name: "Nimbus Cloak", treeId: 8200, isKeystone: false, slot: 1, horizontal: [8224, 8226] }, 8299: { id: 8299, key: "LastStand", name: "Last Stand", treeId: 8000, isKeystone: false, slot: 3, horizontal: [8014, 8017] }, 8304: { id: 8304, key: "MagicalFootwear", name: "Magical Footwear", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8306, 8321] }, 8306: { id: 8306, key: "HextechFlashtraption", name: "Hextech Flashtraption", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8304, 8321] }, 8313: { id: 8313, key: "PerfectTiming", name: "Triple Tonic", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8352, 8345] }, 8316: { id: 8316, key: "JackOfAllTrades", name: "Jack Of All Trades", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8347, 8410] }, 8321: { id: 8321, key: "CashBack", name: "Cash Back", treeId: 8300, isKeystone: false, slot: 1, horizontal: [8306, 8304] }, 8345: { id: 8345, key: "BiscuitDelivery", name: "Biscuit Delivery", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8313, 8352] }, 8347: { id: 8347, key: "CosmicInsight", name: "Cosmic Insight", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8410, 8316] }, 8351: { id: 8351, key: "GlacialAugment", name: "Glacial Augment", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8360, 8369] }, 8352: { id: 8352, key: "TimeWarpTonic", name: "Time Warp Tonic", treeId: 8300, isKeystone: false, slot: 2, horizontal: [8313, 8345] }, 8360: { id: 8360, key: "UnsealedSpellbook", name: "Unsealed Spellbook", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8351, 8369] }, 8369: { id: 8369, key: "FirstStrike", name: "First Strike", treeId: 8300, isKeystone: true, slot: 0, horizontal: [8351, 8360] }, 8401: { id: 8401, key: "ShieldBash", name: "Shield Bash", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8446, 8463] }, 8410: { id: 8410, key: "ApproachVelocity", name: "Approach Velocity", treeId: 8300, isKeystone: false, slot: 3, horizontal: [8347, 8316] }, 8429: { id: 8429, key: "Conditioning", name: "Conditioning", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8444, 8473] }, 8437: { id: 8437, key: "GraspOfTheUndying", name: "Grasp of the Undying", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8439, 8465] }, 8439: { id: 8439, key: "Aftershock", name: "Aftershock", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8437, 8465] }, 8444: { id: 8444, key: "SecondWind", name: "Second Wind", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8429, 8473] }, 8446: { id: 8446, key: "Demolish", name: "Demolish", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8463, 8401] }, 8451: { id: 8451, key: "Overgrowth", name: "Overgrowth", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8453, 8242] }, 8453: { id: 8453, key: "Revitalize", name: "Revitalize", treeId: 8400, isKeystone: false, slot: 3, horizontal: [8451, 8242] }, 8463: { id: 8463, key: "FontOfLife", name: "Font of Life", treeId: 8400, isKeystone: false, slot: 1, horizontal: [8446, 8401] }, 8465: { id: 8465, key: "Guardian", name: "Guardian", treeId: 8400, isKeystone: true, slot: 0, horizontal: [8437, 8439] }, 8473: { id: 8473, key: "BonePlating", name: "Bone Plating", treeId: 8400, isKeystone: false, slot: 2, horizontal: [8429, 8444] }, 9101: { id: 9101, key: "AbsorbLife", name: "Absorb Life", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9111, 8009] }, 9103: { id: 9103, key: "LegendBloodline", name: "Legend: Bloodline", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9104, 9105] }, 9104: { id: 9104, key: "LegendAlacrity", name: "Legend: Alacrity", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9105, 9103] }, 9105: { id: 9105, key: "LegendHaste", name: "Legend: Haste", treeId: 8000, isKeystone: false, slot: 2, horizontal: [9104, 9103] }, 9111: { id: 9111, key: "Triumph", name: "Triumph", treeId: 8000, isKeystone: false, slot: 1, horizontal: [9101, 8009] }, 9923: { id: 9923, key: "HailOfBlades", name: "Hail of Blades", treeId: 8100, isKeystone: true, slot: 0, horizontal: [8112, 8128] } };
export const runeKeys = { Electrocute: 8112, DarkHarvest: 8128, HailOfBlades: 9923, CheapShot: 8126, TasteOfBlood: 8139, SuddenImpact: 8143, SixthSense: 8137, GrislyMementos: 8140, DeepWard: 8141, TreasureHunter: 8135, RelentlessHunter: 8105, UltimateHunter: 8106, GlacialAugment: 8351, UnsealedSpellbook: 8360, FirstStrike: 8369, HextechFlashtraption: 8306, MagicalFootwear: 8304, CashBack: 8321, PerfectTiming: 8313, TimeWarpTonic: 8352, BiscuitDelivery: 8345, CosmicInsight: 8347, ApproachVelocity: 8410, JackOfAllTrades: 8316, PressTheAttack: 8005, LethalTempo: 8008, FleetFootwork: 8021, Conqueror: 8010, AbsorbLife: 9101, Triumph: 9111, PresenceOfMind: 8009, LegendAlacrity: 9104, LegendHaste: 9105, LegendBloodline: 9103, CoupDeGrace: 8014, CutDown: 8017, LastStand: 8299, GraspOfTheUndying: 8437, Aftershock: 8439, Guardian: 8465, Demolish: 8446, FontOfLife: 8463, ShieldBash: 8401, Conditioning: 8429, SecondWind: 8444, BonePlating: 8473, Overgrowth: 8451, Revitalize: 8453, Unflinching: 8242, SummonAery: 8214, ArcaneComet: 8229, PhaseRush: 8230, NullifyingOrb: 8224, ManaflowBand: 8226, NimbusCloak: 8275, Transcendence: 8210, Celerity: 8234, AbsoluteFocus: 8233, Scorch: 8237, Waterwalking: 8232, GatheringStorm: 8236 };
export const runeNames = { Electrocute: 8112, "Dark Harvest": 8128, "Hail of Blades": 9923, "Cheap Shot": 8126, "Taste of Blood": 8139, "Sudden Impact": 8143, "Sixth Sense": 8137, "Grisly Mementos": 8140, "Deep Ward": 8141, "Treasure Hunter": 8135, "Relentless Hunter": 8105, "Ultimate Hunter": 8106, "Glacial Augment": 8351, "Unsealed Spellbook": 8360, "First Strike": 8369, "Hextech Flashtraption": 8306, "Magical Footwear": 8304, "Cash Back": 8321, "Triple Tonic": 8313, "Time Warp Tonic": 8352, "Biscuit Delivery": 8345, "Cosmic Insight": 8347, "Approach Velocity": 8410, "Jack Of All Trades": 8316, "Press the Attack": 8005, "Lethal Tempo": 8008, "Fleet Footwork": 8021, Conqueror: 8010, "Absorb Life": 9101, Triumph: 9111, "Presence of Mind": 8009, "Legend: Alacrity": 9104, "Legend: Haste": 9105, "Legend: Bloodline": 9103, "Coup de Grace": 8014, "Cut Down": 8017, "Last Stand": 8299, "Grasp of the Undying": 8437, Aftershock: 8439, Guardian: 8465, Demolish: 8446, "Font of Life": 8463, "Shield Bash": 8401, Conditioning: 8429, "Second Wind": 8444, "Bone Plating": 8473, Overgrowth: 8451, Revitalize: 8453, Unflinching: 8242, "Summon Aery": 8214, "Arcane Comet": 8229, "Phase Rush": 8230, "Axiom Arcanist": 8224, "Manaflow Band": 8226, "Nimbus Cloak": 8275, Transcendence: 8210, Celerity: 8234, "Absolute Focus": 8233, Scorch: 8237, Waterwalking: 8232, "Gathering Storm": 8236 };
export const RunesArr = Object.values(Runes);
export const StatRunes = { 5001: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0 }, 5005: { id: 5005, name: "Attack Speed", description: "+10% Attack Speed", value: 0.1 }, 5007: { id: 5007, name: "Ability Haste", description: "+8 Ability Haste", value: 8 }, 5008: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9 }, 5010: { id: 5010, name: "Move Speed", description: "+2% Move Speed", value: 0.02 }, 5011: { id: 5011, name: "Health", description: "+65 Health", value: 65 }, 5013: { id: 5013, name: "Tenacity and Slow Resist", description: "+10% Tenacity and Slow Resist", value: 0.1 } };
export const StatRunesInSlot = { 5001: { 1: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0, slot: 1, horizontal: [5008, 5010] }, 2: { id: 5001, name: "Health Scaling", description: "+10–180 Health (based on level)", value: 0, slot: 2, horizontal: [5011, 5013] } }, 5005: { 0: { id: 5005, name: "Attack Speed", description: "+10% Attack Speed", value: 0.1, slot: 0, horizontal: [5008, 5007] } }, 5007: { 0: { id: 5007, name: "Ability Haste", description: "+8 Ability Haste", value: 8, slot: 0, horizontal: [5008, 5005] } }, 5008: { 0: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9, slot: 0, horizontal: [5005, 5007] }, 1: { id: 5008, name: "Adaptive Force", description: "+9 Adaptive Force", value: 9, slot: 1, horizontal: [5010, 5001] } }, 5010: { 1: { id: 5010, name: "Move Speed", description: "+2% Move Speed", value: 0.02, slot: 1, horizontal: [5008, 5001] } }, 5011: { 2: { id: 5011, name: "Health", description: "+65 Health", value: 65, slot: 2, horizontal: [5001, 5013] } }, 5013: { 2: { id: 5013, name: "Tenacity and Slow Resist", description: "+10% Tenacity and Slow Resist", value: 0.1, slot: 2, horizontal: [5001, 5011] } } };
export const StatRunesInSlotArr = [StatRunesInSlot[5008][0], StatRunesInSlot[5008][1], StatRunesInSlot[5005][0], StatRunesInSlot[5007][0], StatRunesInSlot[5010][1], StatRunesInSlot[5001][1], StatRunesInSlot[5001][2], StatRunesInSlot[5011][2], StatRunesInSlot[5013][2],];
export const statRuneNames = { "Adaptive Force": 5008, "Attack Speed": 5005, "Ability Haste": 5007, "Move Speed": 5010, "Health Scaling": 5001, Health: 5011, "Tenacity and Slow Resist": 5013 };
export const StatRunesArr = Object.values(StatRunes);
export const RuneTrees = { 8000: { id: 8000, key: "Precision", name: "Precision" }, 8100: { id: 8100, key: "Domination", name: "Domination" }, 8200: { id: 8200, key: "Sorcery", name: "Sorcery" }, 8300: { id: 8300, key: "Inspiration", name: "Inspiration" }, 8400: { id: 8400, key: "Resolve", name: "Resolve" } };
export const runeTreeKeys = { Domination: 8100, Inspiration: 8300, Precision: 8000, Resolve: 8400, Sorcery: 8200 };
export const runeTreeNames = { Domination: 8100, Inspiration: 8300, Precision: 8000, Resolve: 8400, Sorcery: 8200 };
export const RuneTreesArr = Object.values(RuneTrees);