Skip to content

Composition beta ​

TypeAlias of @v12-engine/engine/ai

ts
export type Composition = Record<string, number>;

The army a computer player wants, as shares by unit type id or tag (the kit's ranged, melee, hitsAir, a game's own): { footman: 2, rifleman: 1 } is two footmen to a rifleman. A tag's share is split among the types that have it; a type named gets its own beside. Types it cannot train yet are left out until it can