simplify the worker a little.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user