forked from VladThePaler/screeps.behaviour-action-pattern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreep.setup.miner.js
45 lines (45 loc) · 970 Bytes
/
creep.setup.miner.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
let setup = new Creep.Setup('miner');
module.exports = setup;
setup.minControllerLevel = 1;
setup.default = {
fixedBody: {
[CARRY]: 1,
[MOVE]: 1,
[WORK]: 3,
},
multiBody: [WORK, MOVE],
minAbsEnergyAvailable: 500,
minEnergyAvailable: 0.3,
maxMulti: 2,
maxCount: room => room.sources.length
};
setup.low = {
fixedBody: [WORK, WORK, MOVE],
multiBody: [WORK],
minAbsEnergyAvailable: 250,
minEnergyAvailable: 0.9,
maxMulti: 3,
maxCount: room => room.sources.length,
};
setup.high = {
fixedBody: {
[CARRY]: 1,
[MOVE]: 1,
[WORK]: 4,
},
multiBody: [WORK, MOVE],
minAbsEnergyAvailable: 500,
minEnergyAvailable: 0.1,
maxMulti: 2,
maxCount: room => room.sources.length
};
setup.RCL = {
1: setup.low,
2: setup.low,
3: setup.default,
4: setup.default,
5: setup.default,
6: setup.default,
7: setup.default,
8: setup.high
};