TargetRule beta
Interface of @v12-engine/engine/ai
ts
export interface TargetRuleOne rule of who is worth hitting first (MicroOptions.targets): what it picks out, how much it adds, when it counts. Plain data
Members
match
ts
match: string;What it picks out: a role (caster, hero, siege, worker, healer), building, a tag (ranged, the game's own), or a unit type by id
weight
ts
weight?: number;What it adds to the worth of what it picks out: 1 when left out. Rules add up; a foe no rule names is worth 1
when
ts
when?: AiCondition;When it counts: a condition (AiCondition, as data or a function). Always when left out