Skip to content

Commit

Permalink
tweak drone priority and also have it scale by drone count
Browse files Browse the repository at this point in the history
  • Loading branch information
shibdib committed Jan 11, 2020
1 parent 60da62b commit b60853e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let globals = function () {
// Harvesters
stationaryHarvester: 2,
// Workers=
drone: 5,
drone: 3,
waller: 3,
upgrader: 4,
mineralHarvester: 7,
Expand Down
2 changes: 1 addition & 1 deletion src/module.creepSpawning.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ module.exports.miscCreepQueue = function (room) {
let amount = ROOM_SOURCE_SPACE[room.name] || 3;
if (TEN_CPU || room.energy < 5000) amount = 1;
if (drones.length < amount) {
queueCreep(room, priority, {role: 'drone', localCache: true})
queueCreep(room, priority + drones.length, {role: 'drone', localCache: true})
}
}
//LabTech
Expand Down

0 comments on commit b60853e

Please sign in to comment.