-
Notifications
You must be signed in to change notification settings - Fork 105
/
Deposit.js
51 lines (44 loc) · 1.2 KB
/
Deposit.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* 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.
*
* @class
* @extends {RoomObject}
*
* @see {@link https://docs.screeps.com/api/#Deposit}
*/
Deposit = function () {
};
Deposit.prototype = {
/**
* The amount of game ticks until the next harvest action is possible.
*
* @see {@link https://docs.screeps.com/api/#Deposit.cooldown}
*
* @return {number}
*/
cooldown: 0,
/**
* The deposit type
* @see {@link https://docs.screeps.com/api/#Deposit.depositType}
*
* @return {string|RESOURCE_MIST|RESOURCE_BIOMASS|RESOURCE_METAL|RESOURCE_SILICON}
*/
depositType: "",
/**
* The cooldown of the last harvest operation on this deposit.
*
* @see {@link https://docs.screeps.com/api/#Deposit.lastCooldown}
*
* @return {number}
*/
lastCooldown: 0,
/**
* The amount of game ticks when this deposit will disappear.
*
* @see {@link https://docs.screeps.com/api/#Deposit.ticksToDecay}
*
* @return {number}
*/
ticksToDecay: 0,
};