Champion class
A representation of a League of Legends champion.
Signature:
export declare class Champion
Constructor
new Champion (client: Client, data: ChampionData, damage: SpellDamageData, meraki: MerakiChampion)
Constructs a new instance of the Champion
class.
Parameters:
Parameter | Type | Description |
---|---|---|
client | Client | The client creating this instance. |
data | ChampionData | The raw champion data from data dragon. |
damage | SpellDamageData | The raw champion data from community dragon |
meraki | MerakiChampion | The raw champion data from meraki analytics |
Properties
allyTips
An array of tips to play as/along this champion.
Type: String
attackType
The type of this champion's basic attacks - RANGED or MELEE.
Type: String
blurb
A shortened version of the champion's lore.
Type: String
classes
The champion classes this champion belongs to, such as - Fighter, Tank, Assassin, etc.
Type: String
defaultLoadingScreen
The champion's default skin loading screen art.
Type: String
defaultSplashArt
The champion's default skin splash art.
Type: String
enemyTips
An array of tips to play against this champion.
Type: String
icon
A URL to the champion's icon.
Type: String
id
The ID of the champion. To get the ID, in the champion's name
- Capitalize the words
- Remove any spaces and special characters
- The words after a
'
- such as in Kai'sa, remain lowercase.
Examples:
- Kayn -> Kayn
- Cho'Gath -> Chogath
- Dr. Mundo -> DrMundo
There are 2 exceptions to this rule.
- Wukong -> MonkeyKing
- Renata Glasc -> Renata
Type: String
key
The key - a 3-digit number, that is used to identify the champion.
Type: Number
lore
The complete lore of the champion.
Type: String
name
The name of the champion.
Type: String
passive
The champion's passive ability summarized.
Type: ChampionPassive
pricing
The in-game pricing of the champion.
Type: ChampionPricing
ratings
The champion's magic, defense, attack, difficulty ratings.
Type: ChampionRating
releaseDate
The date this champion was released on.
Type: String
releasePatch
The patch this champion was introduced to the live servers.
Type: String
resource
The resource represented by the bar below this champion's health bar in game.
Type: String
skins
A collection of the available skins for this champion. The default skin always has the id - 0
.
Type: Collection < Number, ChampionSkin >
spells
The champion's spells (abilities), mapped by the key they are assigned to, by default - Q, W, E, R, respectively.
Type: Collection < 'Q' | 'W' | 'E' | 'R', ChampionSpell >
sprite
The sprite information of the champion.
Type: ChampionSprite
stats
A collection of the champion's base stats.
Type: Collection < Stats, ChampionStat >
title
A title given to the champion based on their lore.
Type: String