Skip to content

setHeroLevel beta ​

Function of @v12-engine/engine

ts
export declare function setHeroLevel(world: World, entity: Entity, level: number): void;

Puts a hero at a level as if it had got there: the points to spend, the stats that grew, the experience of that level. No message, no event and no beforeXp: for a hero that starts a map at that level, not one that earns it. Never down