Skip to content

gainStats beta ​

Function of @v12-engine/engine

ts
export declare function gainStats(world: World, entity: Entity, change: StatChange): void;

Gives a unit stats for good, as a tome does: added to what it gained before, kept with it in a save, its health and mana raised with them. For the tomes pack's tome effect and a game's own rules (a shrine that makes a unit stronger); it works in a game with the tomes pack (tomesPack), which adds what was gained to the stats