Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -684,8 +684,8 @@ public class UnitType extends UnlockableContent{
|
||||
|
||||
if(pathCost == null){
|
||||
pathCost =
|
||||
example instanceof WaterMovec ? ControlPathfinder.costNaval :
|
||||
allowLegStep ? ControlPathfinder.costLegs :
|
||||
naval ? ControlPathfinder.costNaval :
|
||||
allowLegStep || example instanceof Crawlc ? ControlPathfinder.costLegs :
|
||||
hovering ? ControlPathfinder.costHover :
|
||||
ControlPathfinder.costGround;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import arc.graphics.g2d.*;
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.content.*;
|
||||
import mindustry.entities.*;
|
||||
import mindustry.entities.units.*;
|
||||
@@ -55,9 +54,11 @@ public class RegenProjector extends Block{
|
||||
|
||||
x *= tilesize;
|
||||
y *= tilesize;
|
||||
x += offset;
|
||||
y += offset;
|
||||
|
||||
Drawf.dashSquare(baseColor, x, y, range * tilesize);
|
||||
indexer.eachBlock(Vars.player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
|
||||
indexer.eachBlock(player.team(), Tmp.r1.setCentered(x, y, range * tilesize), b -> true, t -> {
|
||||
Drawf.selected(t, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f)));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user