From aacf582e109785c69297e29f189be0aea58ee4bd Mon Sep 17 00:00:00 2001 From: Douwe Ravers Date: Wed, 1 Jul 2026 00:38:15 +0200 Subject: [PATCH] simplify the worker a little. --- douwco_hivemind/src/Creeps/Worker.cpp | 2 +- screepsxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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