screeps/creeps.config.js

27 lines
733 B
JavaScript
Raw Normal View History

2016-07-05 14:36:43 +00:00
var roleHarvester = require('role.harvester');
var roleUpgrader = require('role.upgrader');
var roleBuilder = require('role.builder');
var roleGuard = require('role.guard');
module.exports = {
harvester: {
bodyParts: [WORK,WORK, CARRY,CARRY, MOVE, MOVE],
minimumCreeps: 4,
role: roleHarvester
},
builder: {
bodyParts: [WORK, CARRY, CARRY, CARRY, MOVE, MOVE],
minimumCreeps: 0,
role: roleBuilder
},
upgrader: {
bodyParts: [WORK, CARRY, WORK, MOVE, CARRY, MOVE, MOVE],
minimumCreeps: 4,
role: roleUpgrader
},
guard: {
bodyParts: [TOUGH, MOVE, ATTACK, MOVE, ATTACK],
minimumCreeps: 0,
role: roleGuard,
}
};