HeroForm beta
Interface of @v12-engine/engine
export interface HeroFormWhat a hero is in one of its forms (HeroDef.forms): the abilities it learns there by id (learns), the level each starts at (levels: that of one of the hero's own, or a number), and what of its own the form leaves in place (keeps). Everything else of its own is put away until it turns back
// Nidalee's cougar: Takedown at Rocket Grab's level and Pounce at Void Swarm's, Swipe learned in the form; the
// aspect (it made the form) and the ultimate stay as they are
forms: { cougar: { learns: ['takedown', 'pounce', 'swipe'], levels: { takedown: 'rocketGrab', pounce: 'voidSwarm' }, keeps: ['heartbreaker'] } }The shorter shape, a list alone with neither levels nor keeps, is read by slot: the first at the level of the first the hero learns as itself, the second of the second, and so on (Q is Q), a point put into one in the form going to the hero's own at that slot too
Members
cooldowns
cooldowns?: FormCooldowns;What becomes of the cooldowns of what the form puts away and of what it brings, when the hero goes in and out of it within the time of a cooldown:
- left out: what the hero puts away runs down by the time it is away, and comes back with what is left; what the form brings starts ready each time. The default -
'keep': what is put away comes back exactly as it was left, the time away not counted: a form is not a way to wait out a cooldown -'reset': what is put away comes back ready, its cooldown 0: a form is a way to get them back -'shared': an ability of the form whose level is one of the hero's own (levelsby id, or by slot in the shorter shape) has one cooldown with it: it starts with the cooldown of the one it takes the place of, and gives its own, what it has by then (cast in the form or run down), back as the hero turns back. The rest as when left out
What the form keeps in place (keeps, the ability that made it, the spells) is one ability in both and is never touched by any of them
keeps
keeps?: string[];The hero's own abilities the form leaves in place, by id: castable in the form as they are, level and cooldown (an ultimate, a passive); learned there, those it learns as itself. The ability that made the form and the spells it brought along (HeroDef.spells) are kept unsaid
learns
learns?: string[];The abilities it learns in the form, by id: what the HUD's card and hero panel show there, and what its points go into, in this order (the hero's own it keeps after them). One of the hero's own named here is kept as it is. What the form's type learns (its hero.learns) when left out
levels
levels?: Record<string, string | number>;The level each of learns starts at in the form, by id: the id of one of the hero's own abilities, whose level it has (a point put into it in the form goes to that one too), or a number. 0 for what is not said: learned in the form