Skip to content

StatChange beta ​

Interface of @v12-engine/engine

ts
export interface StatChange

Something that changes stats: stats is added, percent makes them bigger or smaller by a part of what they are with everything added. Parts from different places add up: two times +10% are +20%.

Members ​

percent ​

ts
percent?: Partial<Stats>;

Parts stats grow or shrink by, by stat: 0.1 is 10% more, and the parts add up before they are applied

stats ​

ts
stats?: Partial<Stats>;

Amounts added to stats, by stat