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 11:34:57 -07:00
committed by GitHub
parent 86d50e9147
commit db897d037d
5 changed files with 7 additions and 5 deletions

View File

@@ -388,11 +388,11 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
if(commander.isCommanding()){
commander.clearCommand();
}else if(player.unit().type.commandLimit > 0){
}else if(player.unit().type.commandLimit > 0 && player.unit().type.commandRadius > 0){
//TODO try out some other formations
commander.commandNearby(new CircleFormation());
Fx.commandSend.at(player);
Fx.commandSend.at(player, player.unit().type.commandRadius);
}
}