Fixed antialiasing
|
Before Width: | Height: | Size: 483 KiB After Width: | Height: | Size: 691 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 126 KiB |
|
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 284 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 224 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 252 KiB |
|
Before Width: | Height: | Size: 704 KiB After Width: | Height: | Size: 867 KiB |
@@ -1,5 +1,6 @@
|
||||
package mindustry.entities.units;
|
||||
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.util.*;
|
||||
import mindustry.entities.*;
|
||||
@@ -17,6 +18,10 @@ public class AIController implements UnitController{
|
||||
protected Teamc target;
|
||||
protected Interval timer = new Interval(4);
|
||||
|
||||
{
|
||||
timer.reset(0, Mathf.random(40f));
|
||||
}
|
||||
|
||||
protected void targetClosestAllyFlag(BlockFlag flag){
|
||||
Tile target = Geometry.findClosest(unit.x(), unit.y(), indexer.getAllied(unit.team(), flag));
|
||||
if(target != null) this.target = target.entity;
|
||||
|
||||