Unit Command Radius (#5269)

* Unit Command Radius

* Make effect change with radius

* Fix command center effect

* Display true radius
This commit is contained in:
MEEP of Faith
2021-05-19 14:34:57 -04:00
committed by GitHub
parent 86d50e9147
commit db897d037d
5 changed files with 7 additions and 5 deletions
@@ -23,6 +23,7 @@ public class CommandCenter extends Block{
public TextureRegionDrawable[] commandRegions = new TextureRegionDrawable[UnitCommand.all.length];
public Color topColor = null, bottomColor = Color.valueOf("5e5e5e");
public Effect effect = Fx.commandSend;
public float effectSize = 150f;
public CommandCenter(String name){
super(name);
@@ -35,7 +36,7 @@ public class CommandCenter extends Block{
config(UnitCommand.class, (CommandBuild build, UnitCommand command) -> {
build.team.data().command = command;
effect.at(build);
effect.at(build, effectSize);
Events.fire(new CommandIssueEvent(build, command));
});
}