ChampionStat class


A representation of the champion's base stats.

Signature:

export declare class ChampionStat 

Constructor

new ChampionStat (base: number, increment: number)

Constructs a new instance of the ChampionStat class.

Parameters:

ParameterTypeDescription
baseNumberThe base value of the stat.
incrementNumberThe value at which this stat increases every level.

Properties

base

The base value of the stat - the value at level 1.

Type: Number


increment

The value at which this stat increases every level (the scaling).

Type: Number


Methods

.at ()

A utility to calculate the base value of this stat at a certain level.

Signature:

at(level: number): number;

Parameters:

ParameterTypeDescription
levelNumberThe level at which the base value of this stat is needed.

Return type: Number