Skip to content

StatSum beta ​

Interface of @v12-engine/engine

ts
export interface StatSum

What adds up a unit's stats in the sum: what a stat source is handed (StatField.add)

Members ​

add ​

ts
add(change: StatChange, times?: number): void;

Adds a change to the stats, times over (1 when left out)

get ​

ts
get(stat: StatKey): number;

What a stat comes to so far: all that was added to it, by the parts it was made bigger or smaller by