Command center name added / Regression fix
This commit is contained in:
@@ -531,3 +531,4 @@ block.bridge-conduit.name=Bridge Conduit
|
|||||||
block.rotary-pump.name=Rotary Pump
|
block.rotary-pump.name=Rotary Pump
|
||||||
block.nuclear-reactor.name=Nuclear Reactor
|
block.nuclear-reactor.name=Nuclear Reactor
|
||||||
block.interceptor-factory.name=Interceptor Factory
|
block.interceptor-factory.name=Interceptor Factory
|
||||||
|
block.command-center.name=Command Center
|
||||||
|
|||||||
@@ -278,9 +278,11 @@ public class BlockFx extends FxList implements ContentList{
|
|||||||
Draw.reset();
|
Draw.reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
commandSend = new Effect(30, e -> {
|
commandSend = new Effect(28, e -> {
|
||||||
|
Draw.color(Palette.command);
|
||||||
Lines.stroke(e.fout() * 2f);
|
Lines.stroke(e.fout() * 2f);
|
||||||
Lines.poly(e.x, e.y, 40, 4f + e.fin() * 120f);
|
Lines.poly(e.x, e.y, 40, 4f + e.finpow() * 120f);
|
||||||
|
Draw.color();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ public class OverlayRenderer{
|
|||||||
Vector2 vec = Graphics.world(input.getMouseX(), input.getMouseY());
|
Vector2 vec = Graphics.world(input.getMouseX(), input.getMouseY());
|
||||||
Tile tile = world.tileWorld(vec.x, vec.y);
|
Tile tile = world.tileWorld(vec.x, vec.y);
|
||||||
|
|
||||||
if(tile != null && tile.block() != Blocks.air && tile.getTeam() == players[0].getTeam()){
|
if(tile != null && tile.block() != Blocks.air && tile.target().getTeam() == players[0].getTeam()){
|
||||||
Tile target = tile.target();
|
Tile target = tile.target();
|
||||||
|
|
||||||
if(showBlockDebug && target.entity != null){
|
if(showBlockDebug && target.entity != null){
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package io.anuke.mindustry.graphics;
|
|||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
|
|
||||||
public class Palette{
|
public class Palette{
|
||||||
|
public static final Color command = Color.valueOf("eab678");
|
||||||
|
|
||||||
public static final Color bulletYellow = Color.valueOf("ffeec9");
|
public static final Color bulletYellow = Color.valueOf("ffeec9");
|
||||||
public static final Color bulletYellowBack = Color.valueOf("f9c87a");
|
public static final Color bulletYellowBack = Color.valueOf("f9c87a");
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import io.anuke.mindustry.entities.TileEntity;
|
|||||||
import io.anuke.mindustry.entities.units.BaseUnit;
|
import io.anuke.mindustry.entities.units.BaseUnit;
|
||||||
import io.anuke.mindustry.entities.units.UnitCommand;
|
import io.anuke.mindustry.entities.units.UnitCommand;
|
||||||
import io.anuke.mindustry.gen.Call;
|
import io.anuke.mindustry.gen.Call;
|
||||||
|
import io.anuke.mindustry.graphics.Palette;
|
||||||
import io.anuke.mindustry.world.Block;
|
import io.anuke.mindustry.world.Block;
|
||||||
import io.anuke.mindustry.world.Tile;
|
import io.anuke.mindustry.world.Tile;
|
||||||
import io.anuke.mindustry.world.meta.BlockFlag;
|
import io.anuke.mindustry.world.meta.BlockFlag;
|
||||||
@@ -26,7 +27,7 @@ import static io.anuke.mindustry.Vars.*;
|
|||||||
|
|
||||||
public class CommandCenter extends Block{
|
public class CommandCenter extends Block{
|
||||||
protected TextureRegion[] commandRegions = new TextureRegion[UnitCommand.values().length];
|
protected TextureRegion[] commandRegions = new TextureRegion[UnitCommand.values().length];
|
||||||
protected Color topColor = Color.valueOf("eab678");
|
protected Color topColor = Palette.command;
|
||||||
protected Color bottomColor = Color.valueOf("5e5e5e");
|
protected Color bottomColor = Color.valueOf("5e5e5e");
|
||||||
protected Effect effect = BlockFx.commandSend;
|
protected Effect effect = BlockFx.commandSend;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user