MicroReport beta
Interface of @v12-engine/engine/ai
export interface MicroReportThe fights as the report shows them (AiReport.micro): each squad in one, its foes, its odds, whom it hits; the units that fled; the heroes and what each learns next; who shops for what
Members
cast
cast: number;Abilities cast last think
fights
fights: {
squad: string;
foes: number;
odds: number;
target?: {
id: number;
type: string;
since: number;
};
kiting: number[];
siege: number[];
}[];The fights, one for each squad in one, with its foes, its odds, whom it hits and its units that kited or shot a building this think
fleeing
fleeing: {
unit: number;
type: string;
health: number;
to: [number, number];
since: number;
why: 'hurt' | 'injured';
}[];The units that fled, each with its id, type, health, where to, since when and why
heroes
heroes: {
id: number;
type: string;
level: number;
next?: string;
}[];The heroes, each with its id, type, level and the ability it learns next
hiring
hiring: {
by: number;
place: number;
unit: string;
since: number;
}[];Who is on their way to hire what: the unit sent, the place, the unit type, since when
shopping
shopping: {
hero: number;
item: string;
shop: number;
since: number;
}[];The heroes on their way to buy, each with the hero's id, the item, the shop's id and since when
slipped
slipped?: number;Thinks whose fights it left alone, slips of its profile's mistakes