UNPKG

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.

26 lines (25 loc) 629 B
export const ChampionClasses = { // # Fighter 'Juggernaut': 'Juggernaut', 'Diver': 'Diver', // # Mage 'Burst': 'Burst', 'Battlemage': 'Battlemage', 'Artillery': 'Artillery', // # Marskman 'Marksman': 'Marksman', // # Controller 'Enchanter': 'Enchanter', 'Catcher': 'Catcher', // # Slayer 'Assassin': 'Assassin', 'Skirmisher': 'Skirmisher', // # Tank 'Vanguard': 'Vanguard', 'Warden': 'Warden', // # Specialist 'Specialist': 'Specialist', }; export function isChampionClass(title) { return typeof title == 'string' && title in ChampionClasses; }