AbilityTip beta
Interface of @v12-engine/client
export interface AbilityTipWhat a tooltip of an ability shows, worked out for its caster; the HUD draws it, and GameView.hud.abilityTip replaces the drawing
Members
castTime
castTime?: number;Seconds it takes to cast
cooldown
cooldown?: number;Seconds until it can be cast again after a cast, with the caster's haste
health
health?: number;Health a cast costs at its level; none when it costs none
hotkey
hotkey?: string;The key that casts it, none for what is always on
icon
icon?: string;The ability's picture, by an icon's name or a URL; none when it has none
id
id: string;The ability's id (AbilityDef.id)
level
level: number;Its level now (0 for one not learned yet), and the most it goes to
mana
mana?: number;What a cast costs, at its level
maxLevel
maxLevel: number;The highest level the ability can be learned to
name
name: string;The ability's name shown at the top of the tooltip
notes
notes: string[];Lines under it: why it cannot be cast now, what the next level does
passive
passive: boolean;Whether the ability is always on rather than cast, so that it has no hotkey, cost or cooldown
range
range?: number;How far the target may be for a cast, in cells; none for an ability with no range
text
text: TextSegment[];What it does, worked out for the caster: words, and values to show as values