Skip to content

HeroDef beta ​

Interface of @v12-engine/engine

ts
export interface HeroDef

What makes a unit a hero: it gains levels, grows with them and learns abilities

Members ​

callings ​

ts
callings?: Record<string, 1 | 2 | 3>;

What it is good at, by calling (CallingDef, the game's: heroesPack({ callings })), each with a strength from 1 to 3: { stalker: 3, roamer: 2 }. They lock nothing: the shop's suggestions and filters, the tooltips and the computer players go by them

forms ​

ts
forms?: Record<string, HeroForm>;

The forms it takes (a morph effect's into), by unit type: what it learns in each (HeroForm). A form is a hero's type of its own (its stats, its growth, its look); this says what of the hero's it takes along

growth ​

ts
growth: StatChange;

What every level after the first adds

innate ​

ts
innate?: string;

Its innate: an ability it has from level 1, for no point, that grows with it: its level is the hero's (up to the ability's own maxLevel where it says one), or goes up at the hero levels of innateLevels. A passive most often (its buffs, its triggers), or one it casts

innateLevels ​

ts
innateLevels?: number[];

The hero levels its innate goes up a level at, from its first: [1, 6, 11, 16] has it at level 2 from the hero's sixth. The hero's own level, when left out

learns ​

ts
learns: string[];

Abilities the hero can put points into

maxLevel ​

ts
maxLevel?: number;

The level it stops at. 10 when left out

meter ​

ts
meter?: string;

A buff whose stacks are shown next to its health and mana, as so many points out of as many as it can have

spells ​

ts
spells?: string[];

Abilities it has from the start and does not learn: the two spells every hero brings along. No mana, and nothing shortens their cooldown