Deposit

A rare resource deposit needed for producing commodities. Can be harvested by creeps with a WORK body part. Each harvest operation triggers a cooldown period, which becomes longer and longer over time.

Learn more about deposits from this article .

Cooldown 0.001 * totalHarvested ^ 1.2
Decay 50,000 ticks after appearing or last harvest operation

effects array

Applied effects, an array of objects with the following properties:

parameter type description
effect number

Effect ID of the applied effect. Can be either natural effect ID or Power ID.

level
optional
number

Power level of the applied effect. Absent if the effect is not a Power effect.

ticksRemaining number

How many ticks will the effect last.

Inherited from RoomObject
pos RoomPosition

An object representing the position of this object in the room.

Inherited from RoomObject
room Room

The link to the Room object. May be undefined in case if an object is a flag or a construction site and is placed in a room that is not visible to you.

cooldown number

The amount of game ticks until the next harvest action is possible.

depositType string

The deposit type, one of the following constants:

RESOURCE_MIST
RESOURCE_BIOMASS
RESOURCE_METAL
RESOURCE_SILICON

id string

A unique object identificator. You can use Game.getObjectById method to retrieve an object instance by its id .

lastCooldown number

The cooldown of the last harvest operation on this deposit.

ticksToDecay number

The amount of game ticks when this deposit will disappear.