StatDef beta
Interface of @v12-engine/engine
ts
export interface StatDefA stat of a game's own, next to the engine's
Members
default
ts
default?: number;What every unit has of it unless its type says. 0 when left out
description
ts
description?: string;Shown when the pointer is over it
format
ts
format?: 'number' | 'decimal' | 'percent';How it is shown: a whole number, a decimal, or a part of one as a percentage. A whole number when left out
id
ts
id: string;The stat's id, which units, changes and abilities name it by
max
ts
max?: number;The highest the stat goes, whatever changes it; no upper bound when left out
min
ts
min?: number;It never goes below or above these, whatever changes it
name
ts
name: string;What the player sees the stat called