Skip to content

Commit

Permalink
Allowed naval RTS AI
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 29, 2025
1 parent bf4f5ed commit bcb7cda
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions core/src/mindustry/ai/types/CommandAI.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,6 @@ public void defaultBehavior(){
}
}

//acquiring naval targets isn't supported yet, so use the fallback dumb AI
if(unit.team.isAI() && unit.team.rules().rtsAi && unit.type.naval){
if(fallback == null) fallback = new GroundAI();

if(fallback.unit() != unit) fallback.unit(unit);
fallback.updateUnit();
return;
}

updateVisuals();
updateTargeting();

Expand Down

0 comments on commit bcb7cda

Please sign in to comment.