simplify the worker a little.
This commit is contained in:
@@ -51,7 +51,7 @@ void DouwcoHivemind::Worker::loop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DouwcoHivemind::Worker::getEnergy() {
|
void DouwcoHivemind::Worker::getEnergy() {
|
||||||
if (foundContainer || Screeps::Game.time()%100==0) collectEnergyFromContainers();
|
if (foundContainer) collectEnergyFromContainers();
|
||||||
else harvestSource();
|
else harvestSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Submodule screepsxx updated: b81be2be5d...0eca2f2867
Reference in New Issue
Block a user