Clash Blueprint Engine API
    Preparing search index...

    Interface TroopDefinition

    Data-driven troop stats. Distances are in tiles, speed in tiles/second, dps in hit points/second. Like buildings, troops are resolved through a catalog port so a data pack can add or rebalance them without code changes.

    interface TroopDefinition {
        attackRange: number;
        damagePerSecond: number;
        favoriteTarget?: string;
        hitpoints: number;
        housingSpace: number;
        id: string;
        ignoresWalls: boolean;
        movement: MovementType;
        moveSpeed: number;
        name: string;
    }
    Index
    attackRange: number

    Attack reach in tiles (melee ≈ 1).

    damagePerSecond: number
    favoriteTarget?: string

    Preferred target category; falls back to nearest building when absent.

    hitpoints: number
    housingSpace: number
    id: string
    ignoresWalls: boolean

    Air troops and wall-jumpers (e.g. Hog Rider) are not stopped by walls.

    movement: MovementType
    moveSpeed: number

    Tiles per second.

    name: string