screeps-api
    Preparing search index...

    Interface CreepBodyPart

    A single part of a Creep.body.

    interface CreepBodyPart {
        $name: string;
        boost?: MineralBoostResource;
        hits: number;
        name: BodyPartType;
        type: BodyPartType;
    }
    Index

    Properties

    $name: string

    Index key of this part in the creep's body.

    This is added by the web client. It does not appear to be present in API responses and will be removed in v3.0.

    The boost applied to this part. Missing/undefined on unboosted parts.

    hits: number

    The current number of hit points of this part.

    If it hits zero, the part becomes unusable until at least 1 hit is restored. Maximum is 100 using default game settings.

    This field does not exist in data returned by the API and will be removed in v3.0. Use type instead.

    Determines the capabilities/stats conferred by this body part