AbilitySlot beta
Interface of @v12-engine/client
export interface AbilitySlotOne of the things a hero can do, in the panel of a hero
Members
aiming
aiming: boolean;It is waiting for a target
caster
caster: number;Whose it is: its tooltip is worked out from their stats (see client.abilityTip)
charged
charged?: boolean;Charged: the next cast does its other thing. It shows its other picture, and stands out
charges
charges?: number;Uses left, of an ability with charges (AbilityDef.charges): the number in its corner, over its mana
cooldown
cooldown: number;Part of the cooldown that is still to go, 0..1, and how many seconds that is
description
description?: string;What the ability does, in words, for its tooltip
disabled
disabled: boolean;Cannot be used right now: not learned, on cooldown, or not enough mana
icon
icon?: string;Its picture (IconSet.abilities); the name is shown where none is given
id
id: string;The ability's id (AbilityDef.id)
key
key: string;The key that casts it. None for what is always on
learnable
learnable: boolean;A point can go into it right now
learnKey
learnKey: string;The key that puts a point into it, as shown. None for what is not learnt by points
level
level: number;The level the hero has in it, 0 for one not learnt
mana
mana?: number;Mana one cast costs at its level; none for an ability that costs none
maxLevel
maxLevel: number;The highest level it can reach
name
name: string;The ability's name as the player reads it
passive
passive: boolean;Whether it is always on, not something to cast
seconds
seconds: number;Seconds of its cooldown that are still to go