Skip to content

ReadyFacts beta ​

Interface of @v12-engine/engine

ts
export interface ReadyFacts

What there is to know about an ability and its user, for whether it can be used right now

Members ​

charges ​

ts
charges?: number;

Uses left, of an ability with charges (chargesLeft): none, and it is not ready

cooldown ​

ts
cooldown: number;

Seconds until it can be used again

decided ​

ts
decided?: Message | null;

What the simulation's canCast hook decided instead, when it told the screen: a reason, or null for none

grounded ​

ts
grounded?: boolean;

A buff keeps it from rushing or jumping of its own (BuffDef.grounded), and the ability would (a dash, a blink)

health ​

ts
health: number;

The caster's health now, for abilities that cost health

healthPerMana ​

ts
healthPerMana?: number;

Health it pays for each point of mana an ability costs, in place of the mana (BuffDef.paysWithHealth): none, or left out, for one that pays with mana

item ​

ts
item?: boolean;

It comes from something carried: items ask for no mana, and silence does not stop them

level ​

ts
level: number;

0 for one not learned yet

mana ​

ts
mana: number;

The caster's mana now, to meet the ability's mana cost

maxHealth ​

ts
maxHealth: number;

The caster's largest health, which a health cost may not take below

noManaCosts ​

ts
noManaCosts?: boolean;

The debug switch that makes abilities cost nothing

silenced ​

ts
silenced?: boolean;

Whether the caster is silenced, which stops its spells but not items or brought-along spells

spell ​

ts
spell?: boolean;

One of the spells the hero brought along rather than learned: silence does not stop those either