Skip to content

AbilitySlot beta ​

Interface of @v12-engine/client

ts
export interface AbilitySlot

One of the things a hero can do, in the panel of a hero

Members ​

aiming ​

ts
aiming: boolean;

It is waiting for a target

caster ​

ts
caster: number;

Whose it is: its tooltip is worked out from their stats (see client.abilityTip)

charged ​

ts
charged?: boolean;

Charged: the next cast does its other thing. It shows its other picture, and stands out

charges ​

ts
charges?: number;

Uses left, of an ability with charges (AbilityDef.charges): the number in its corner, over its mana

cooldown ​

ts
cooldown: number;

Part of the cooldown that is still to go, 0..1, and how many seconds that is

description ​

ts
description?: string;

What the ability does, in words, for its tooltip

disabled ​

ts
disabled: boolean;

Cannot be used right now: not learned, on cooldown, or not enough mana

icon ​

ts
icon?: string;

Its picture (IconSet.abilities); the name is shown where none is given

id ​

ts
id: string;

The ability's id (AbilityDef.id)

key ​

ts
key: string;

The key that casts it. None for what is always on

learnable ​

ts
learnable: boolean;

A point can go into it right now

learnKey ​

ts
learnKey: string;

The key that puts a point into it, as shown. None for what is not learnt by points

level ​

ts
level: number;

The level the hero has in it, 0 for one not learnt

mana ​

ts
mana?: number;

Mana one cast costs at its level; none for an ability that costs none

maxLevel ​

ts
maxLevel: number;

The highest level it can reach

name ​

ts
name: string;

The ability's name as the player reads it

passive ​

ts
passive: boolean;

Whether it is always on, not something to cast

seconds ​

ts
seconds: number;

Seconds of its cooldown that are still to go