AiRole beta
TypeAlias of @v12-engine/engine/ai
ts
export type AiRole = 'worker' | 'gatherer' | 'topper' | 'hall' | 'supply' | 'barracks' | 'altar' | 'workshop' | 'tower' | 'shop' | 'soldier' | 'hero' | 'caster' | 'healer' | 'siege' | 'air' | 'scout' | 'detector' | (string & {});What a unit type is for, to a computer player: the engine's roles, or a word of the game's own. A type can have several (a ghoul is a gatherer and a soldier)
worker: gathers and builds;gatherer: gathers (a worker is one too);topper: what is put up on a deposit of the money to gather it there (builtOn) -hall: takes deposits and trains workers;supply: provides supply and trains nothing;barracks: trains soldiers;altar: trains or revives heroes;workshop: researches;tower: a building that attacks;shop: sells or hires -soldier: a unit that fights and is no hero;hero;caster: fights with mana;healer: has an ability that heals;siege: attacks that splash, fell or are aimed at the ground;air: flies;scout: the fastest of the soldiers;detector: finds the invisible