-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr.role.filler.js
41 lines (33 loc) · 1.07 KB
/
pr.role.filler.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
/*
* Module code goes here. Use 'module.exports' to export things:
* module.exports.thing = 'a thing';
*
* You can import it from another modules like this:
* var mod = require('pr.role.filler');
* mod.thing == 'a thing'; // true
*/
var logger = require("screeps.logger");
logger = new logger("pr.role.filler");
let processClass = require("INeRT.process");
let threadClass = require("INeRT.thread");
let worker = require("pr.role.worker");
class filler extends worker {
init() {
super.init();
this.allowRefils = false;
this.enabledEnergyTasks = [
new global.TaskOptIn([global.Task.PICKUPENERGYSPAWN], 20, false),
new global.TaskOptIn([global.Task.PICKUPENERGYCONT, global.Task.PICKUP], 10, false),
];
this.enabledWorkTasks = [
new global.TaskOptIn(global.Task.FILLSPAWNS, 20, false),
];
this.creepClass = "filler";
this.creepRole = "filler";
this.spawnPriority = 3;
this.requiredParts = {
CARRY:5
};
}
}
module.exports = filler;