screeps-api
    Preparing search index...

    Interface StructureInvaderCore

    This NPC structure is a control center of NPC Strongholds, and also rules all invaders in the sector.

    https://docs.screeps.com/api/#StructureInvaderCore

    interface StructureInvaderCore {
        _id: string;
        _isDisabled: boolean;
        actionLog: {
            attackController: Position | null;
            reserveController: Position | null;
            transferEnergy: unknown;
            upgradeController: Position | null;
        };
        decayTime?: number;
        deployTime?: number
        | null;
        depositType?: DepositResource;
        effects?: { [index: number]: Effect } | null;
        hits: number;
        hitsMax: number;
        level: number;
        name?: string;
        nextExpandTime?: number;
        notifyWhenAttacked: boolean;
        population?: { [index: number]: { behavior: string; body: string } };
        room: string;
        spawning?: unknown;
        strongholdBehavior?: string;
        strongholdId: string;
        templateName?: string;
        type: "invaderCore";
        user: string;
        x: number;
        y: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    _id: string
    _isDisabled: boolean
    actionLog: {
        attackController: Position | null;
        reserveController: Position | null;
        transferEnergy: unknown;
        upgradeController: Position | null;
    }
    decayTime?: number

    Tick at which this L1+ core and its stronghold will disappear

    deployTime?: number | null

    Tick at which this L1+ core and its stronghold will activate

    depositType?: DepositResource
    effects?: { [index: number]: Effect } | null

    Temporary effects that are active on this object

    hits: number
    hitsMax: number
    level: number
    name?: string
    nextExpandTime?: number

    Tick at which this L1+ core will deploy another L0 core

    notifyWhenAttacked: boolean
    population?: { [index: number]: { behavior: string; body: string } }
    room: string
    spawning?: unknown
    strongholdBehavior?: string
    strongholdId: string
    templateName?: string
    type: "invaderCore"
    user: string

    ID of the user who owns this object.

    Note: NPCs do not have long-form hex ID strings like normal players:

    • Invader: "2"
    • SourceKeeper: "3"
    x: number
    y: number