Skip to content

FormOptions beta ​

Interface of @v12-engine/engine

ts
export interface FormOptions

How a hero takes a form (takeForm): what it learns there and at what levels, what of its own it keeps, for how long, what turns it back. learns, levels and keeps are read as a HeroForm's; with learns left out, what the hero's type says of the form (HeroDef.forms) is taken, or else what the form's own type learns

Members ​

back ​

ts
back?: MorphBack[];

What turns it back: its time and its death when left out

by ​

ts
by?: string;

The ability that made it, kept in the form: cast again there, it turns it back where back has ability

cooldowns ​

ts
cooldowns?: FormCooldowns;

What becomes of the cooldowns going in and out (HeroForm.cooldowns): the time away runs the put away down when left out

duration ​

ts
duration?: number;

Seconds it lasts: until something else turns it back when left out

keeps ​

ts
keeps?: string[];

Its own abilities the form leaves in place, by id (HeroForm.keeps): an ultimate, a passive

learns ​

ts
learns?: string[];

What it learns in the form, by id (HeroForm.learns)

levels ​

ts
levels?: Record<string, string | number> | number[];

The level each of learns starts at, by id (HeroForm.levels): one of its own whose level it has, or a number (another hero's, taken over). A list is by place in learns, numbers alone