Skip to content

Commit

Permalink
Now drone is building when the resources are not enough
Browse files Browse the repository at this point in the history
  • Loading branch information
KenaMirror authored and KenaMirror committed Feb 18, 2025
1 parent 88c135e commit 89d9ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/omaloon/ai/drone/UtilityDroneAI.java
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ private boolean tryBuild(Dronec drone, boolean shouldReallyBuild, boolean isServ

boolean withinOwner = owner.within(currentPlan, ownerRange);
boolean isConstructing = withinOwner && currentPlan.tile().build instanceof ConstructBuild;
if(totalSkipped == plans.size && !isConstructing)
return false;
//not enough resources
// if(totalSkipped == plans.size && !isConstructing)
// return false;

float myRange = unit.type.buildRange;
float moveToRange = myRange * buildRangeScl;
Expand Down

0 comments on commit 89d9ff5

Please sign in to comment.