Skip to content

AbilityTip beta ​

Interface of @v12-engine/client

ts
export interface AbilityTip

What a tooltip of an ability shows, worked out for its caster; the HUD draws it, and GameView.hud.abilityTip replaces the drawing

Members ​

castTime ​

ts
castTime?: number;

Seconds it takes to cast

cooldown ​

ts
cooldown?: number;

Seconds until it can be cast again after a cast, with the caster's haste

health ​

ts
health?: number;

Health a cast costs at its level; none when it costs none

hotkey ​

ts
hotkey?: string;

The key that casts it, none for what is always on

icon ​

ts
icon?: string;

The ability's picture, by an icon's name or a URL; none when it has none

id ​

ts
id: string;

The ability's id (AbilityDef.id)

level ​

ts
level: number;

Its level now (0 for one not learned yet), and the most it goes to

mana ​

ts
mana?: number;

What a cast costs, at its level

maxLevel ​

ts
maxLevel: number;

The highest level the ability can be learned to

name ​

ts
name: string;

The ability's name shown at the top of the tooltip

notes ​

ts
notes: string[];

Lines under it: why it cannot be cast now, what the next level does

passive ​

ts
passive: boolean;

Whether the ability is always on rather than cast, so that it has no hotkey, cost or cooldown

range ​

ts
range?: number;

How far the target may be for a cast, in cells; none for an ability with no range

text ​

ts
text: TextSegment[];

What it does, worked out for the caster: words, and values to show as values