AiHints beta
Interface of @v12-engine/engine/ai
export interface AiHintsWhat a game declares of a unit type for the computer player (UnitTypeDef.ai), where what the kit infers from the definition is wrong or cannot be known: its roles, words of the game's own about it, what it answers, how much it is worth hitting. A declared role is in place of the inferred ones, not beside them
Members
counters
counters?: CounterHint[];What it is good against: tags, roles or type ids (['air', 'siege']), each with a weight where a word is not enough ({ target: 'air', weight: 1 }). Read by the matchups (Strength.matchup, odds, counterFor)
placement
placement?: PlacementName;Where the build plan puts it (PlacementName): atEdge for a tower, behind for supply, cluster beside its own kind. Over the brain's table; the role's default when left out
priority
priority?: number;How much it is worth hitting first, in a fight: 1 when left out. Read by the micro of C2
role
role?: AiRole | AiRole[];What it is for (AiRole), one or several: in place of what the kit would infer
strength
strength?: number;How strong it is at full health, in place of the kit's formula (defaultStrength) and of any formula the brain was given: for a type whose numbers mislead (a unit that is all spells). Scaled by the health a unit has left
tags
tags?: string[];Words of the game's own about it ('ranged', 'cavalry'), for a brain's queries (UnitSet.withTag). Beside the inferred ones