diff --git a/douwco_hivemind/src/Creeps/Worker.cpp b/douwco_hivemind/src/Creeps/Worker.cpp index 09c4431..a737a0d 100644 --- a/douwco_hivemind/src/Creeps/Worker.cpp +++ b/douwco_hivemind/src/Creeps/Worker.cpp @@ -51,7 +51,7 @@ void DouwcoHivemind::Worker::loop() { } void DouwcoHivemind::Worker::getEnergy() { - if (foundContainer || Screeps::Game.time()%100==0) collectEnergyFromContainers(); + if (foundContainer) collectEnergyFromContainers(); else harvestSource(); } diff --git a/screepsxx b/screepsxx index b81be2b..0eca2f2 160000 --- a/screepsxx +++ b/screepsxx @@ -1 +1 @@ -Subproject commit b81be2be5d0eb6f6a19e5a0abf8bf199a61ec7e5 +Subproject commit 0eca2f2867dfab810eedec5ae76efea87592abac