makeHero beta
Function of @v12-engine/engine
ts
export declare function makeHero(world: World, entity: Entity): void;Makes a unit just made a hero, as its type says (UnitTypeDef.hero): level 1, a point to spend, the abilities it can learn (none learned), the spells it starts with and its innate (HeroDef.innate), those it has not got already. What World.spawn does for a hero's type, and morph for what becomes one