Small Colored Shields Improvement. (#2193)

When a player places a force projector, the color of its edges will be the color of the player.
This commit is contained in:
Summet
2020-06-27 18:06:13 +03:00
committed by GitHub
parent 313cadb763
commit 63717bdf51

View File

@@ -16,7 +16,7 @@ import mindustry.world.*;
import mindustry.world.consumers.*;
import mindustry.world.meta.*;
import static mindustry.Vars.tilesize;
import static mindustry.Vars.*;
public class ForceProjector extends Block{
public final int timerUse = timers++;
@@ -72,7 +72,7 @@ public class ForceProjector extends Block{
Draw.color(Pal.gray);
Lines.stroke(3f);
Lines.poly(x * tilesize, y * tilesize, 6, radius);
Draw.color(Pal.accent);
Draw.color(player.team().color);
Lines.stroke(1f);
Lines.poly(x * tilesize, y * tilesize, 6, radius);
Draw.color();