Reverted power node build time multiplier / No mono global selection

This commit is contained in:
Anuken
2025-07-15 10:58:20 -04:00
parent 086933614b
commit 95a6850ce5
5 changed files with 7 additions and 5 deletions

View File

@@ -306,10 +306,10 @@ public class DesktopInput extends InputHandler{
commandBuildings.clear();
if(input.keyDown(Binding.selectAcrossScreen)){
camera.bounds(Tmp.r1);
selectedUnits.set(selectedCommandUnits(Tmp.r1.x, Tmp.r1.y, Tmp.r1.width, Tmp.r1.height));
selectedUnits.set(selectedCommandUnits(Tmp.r1.x, Tmp.r1.y, Tmp.r1.width, Tmp.r1.height).removeAll(u -> !u.type.controlSelectGlobal));
}else {
for(var unit : player.team().data().units){
if(unit.isCommandable()){
if(unit.isCommandable() && unit.type.controlSelectGlobal){
selectedUnits.add(unit);
}
}
@@ -325,7 +325,7 @@ public class DesktopInput extends InputHandler{
selectedUnits.set(selectedCommandUnits(Tmp.r1.x, Tmp.r1.y, Tmp.r1.width, Tmp.r1.height, u -> u instanceof Payloadc));
}else {
for(var unit : player.team().data().units){
if(unit.isCommandable() && unit instanceof Payloadc){
if(unit.isCommandable() && unit instanceof Payloadc){
selectedUnits.add(unit);
}
}