Skip to content

MeleeWant beta ​

Interface of @v12-engine/engine/ai

ts
export interface MeleeWant

One rung of the melee player's ladder of wants: what to have, by role, how many, how important, money to spare, when. counter and tier are worked out each think (the file's comment); any other role is the first type of it the player can make

Members ​

count ​

ts
count?: number;

How many of it to have: 1 when left out

id ​

ts
id: string;

The want's id on the build plan (melee.barracks): what the report shows, what without leaves out

priority ​

ts
priority: number;

How important it is to the purse: a want of more goes first and may spend what is held for one of less

role ​

ts
role: AiRole | 'counter' | 'tier' | 'expand';

A role of the kit's (hall, barracks, altar, workshop, tower), or one worked out: counter (the building its best answer to their army needs), tier (the next tier of its hall), expand (another hall by a free mine once the mine at home runs low, FJ1)

spare ​

ts
spare?: number;

Money to keep spare before it is paid for (a luxury waits until there is this much over its price)

when ​

ts
when?: AiConditionData;

Only while this holds (AiConditionData): { units: { role: 'barracks' } } for the next tier