Added small movments when waiting on new target preventing blocking a source.
This commit is contained in:
@@ -20,8 +20,7 @@
|
||||
void DouwcoHivemind::Supplier::depositEnergy()
|
||||
{
|
||||
auto structure = getEnergyStructureTarget();
|
||||
if (!structure)
|
||||
return;
|
||||
if (!structure) return;
|
||||
|
||||
if (isNearTo(structure->pos(), 1))
|
||||
{
|
||||
@@ -39,6 +38,7 @@ std::unique_ptr<Screeps::Structure> DouwcoHivemind::Supplier::getEnergyStructure
|
||||
if (!roomObj)
|
||||
{
|
||||
searchEnergyStructure();
|
||||
if(target_id.empty()) creep.move(rand()%5);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user