HeroDef beta
Interface of @v12-engine/engine
export interface HeroDefWhat makes a unit a hero: it gains levels, grows with them and learns abilities
Members
callings
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
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
growth: StatChange;What every level after the first adds
innate
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
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
learns: string[];Abilities the hero can put points into
maxLevel
maxLevel?: number;The level it stops at. 10 when left out
meter
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
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