Fixed world processors being targetable
This commit is contained in:
@@ -3816,6 +3816,7 @@ public class Blocks{
|
|||||||
requirements(Category.logic, BuildVisibility.editorOnly, with());
|
requirements(Category.logic, BuildVisibility.editorOnly, with());
|
||||||
|
|
||||||
//TODO customizable IPT
|
//TODO customizable IPT
|
||||||
|
targetable = false;
|
||||||
instructionsPerTick = 8;
|
instructionsPerTick = 8;
|
||||||
forceDark = true;
|
forceDark = true;
|
||||||
privileged = true;
|
privileged = true;
|
||||||
|
|||||||
@@ -3140,7 +3140,7 @@ public class UnitTypes{
|
|||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
buildSpeed = 0.8f;
|
buildSpeed = 0.8f;
|
||||||
drag = 0.08f;
|
drag = 0.08f;
|
||||||
speed = 5.3f;
|
speed = 5.4f;
|
||||||
rotateSpeed = 7f;
|
rotateSpeed = 7f;
|
||||||
accel = 0.09f;
|
accel = 0.09f;
|
||||||
itemCapacity = 60;
|
itemCapacity = 60;
|
||||||
@@ -3197,7 +3197,7 @@ public class UnitTypes{
|
|||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
buildSpeed = 1.1f;
|
buildSpeed = 1.1f;
|
||||||
drag = 0.08f;
|
drag = 0.08f;
|
||||||
speed = 6.5f;
|
speed = 6.6f;
|
||||||
rotateSpeed = 8f;
|
rotateSpeed = 8f;
|
||||||
accel = 0.09f;
|
accel = 0.09f;
|
||||||
itemCapacity = 90;
|
itemCapacity = 90;
|
||||||
@@ -3266,7 +3266,7 @@ public class UnitTypes{
|
|||||||
mineTier = 4;
|
mineTier = 4;
|
||||||
buildSpeed = 1.4f;
|
buildSpeed = 1.4f;
|
||||||
drag = 0.08f;
|
drag = 0.08f;
|
||||||
speed = 7.3f;
|
speed = 7.4f;
|
||||||
rotateSpeed = 8f;
|
rotateSpeed = 8f;
|
||||||
accel = 0.08f;
|
accel = 0.08f;
|
||||||
itemCapacity = 110;
|
itemCapacity = 110;
|
||||||
|
|||||||
@@ -1264,6 +1264,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
|||||||
return items;
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean displayable(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void display(Table table){
|
public void display(Table table){
|
||||||
//display the block stuff
|
//display the block stuff
|
||||||
|
|||||||
@@ -479,7 +479,7 @@ public class PlacementFragment extends Fragment{
|
|||||||
Tile hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
|
Tile hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
|
||||||
if(hoverTile != null){
|
if(hoverTile != null){
|
||||||
//if the tile has a building, display it
|
//if the tile has a building, display it
|
||||||
if(hoverTile.build != null){
|
if(hoverTile.build != null && hoverTile.build.displayable()){
|
||||||
hoverTile.build.updateFlow = true;
|
hoverTile.build.updateFlow = true;
|
||||||
return hoverTile.build;
|
return hoverTile.build;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -381,6 +381,11 @@ public class LogicBlock extends Block{
|
|||||||
return !privileged;
|
return !privileged;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean displayable(){
|
||||||
|
return accessible();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void damage(float damage){
|
public void damage(float damage){
|
||||||
if(!privileged){
|
if(!privileged){
|
||||||
|
|||||||
Reference in New Issue
Block a user