Skip to content

MicroReport beta ​

Interface of @v12-engine/engine/ai

ts
export interface MicroReport

The 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 ​

ts
cast: number;

Abilities cast last think

fights ​

ts
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 ​

ts
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 ​

ts
heroes: {
        id: number;
        type: string;
        level: number;
        next?: string;
    }[];

The heroes, each with its id, type, level and the ability it learns next

hiring ​

ts
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 ​

ts
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 ​

ts
slipped?: number;

Thinks whose fights it left alone, slips of its profile's mistakes