Skip to content

invalidateStats beta ​

Function of @v12-engine/engine

ts
export declare function invalidateStats(world: World, entity?: Entity): void;

Says the stats of an entity, or of every entity when none is said, are to be added up again the next time they are asked for: what a stats hook or a buff's change reads changed (an ally came near, a flag of the game's). What the engine knows about (buffs, items, levels, research, the time of day) it notices by itself