Display liquid tooltips
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 226 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -2705,7 +2705,7 @@ public class UnitTypes{
|
|||||||
mineTier = 1;
|
mineTier = 1;
|
||||||
buildSpeed = 0.8f;
|
buildSpeed = 0.8f;
|
||||||
drag = 0.06f;
|
drag = 0.06f;
|
||||||
speed = 2.5f;
|
speed = 2.9f;
|
||||||
rotateSpeed = 9f;
|
rotateSpeed = 9f;
|
||||||
accel = 0.1f;
|
accel = 0.1f;
|
||||||
itemCapacity = 40;
|
itemCapacity = 40;
|
||||||
@@ -2763,7 +2763,7 @@ public class UnitTypes{
|
|||||||
mineTier = 2;
|
mineTier = 2;
|
||||||
buildSpeed = 1.4f;
|
buildSpeed = 1.4f;
|
||||||
drag = 0.06f;
|
drag = 0.06f;
|
||||||
speed = 2.6f;
|
speed = 2.8f;
|
||||||
rotateSpeed = 5f;
|
rotateSpeed = 5f;
|
||||||
accel = 0.11f;
|
accel = 0.11f;
|
||||||
itemCapacity = 70;
|
itemCapacity = 70;
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
|||||||
pass((x, y) -> {
|
pass((x, y) -> {
|
||||||
|
|
||||||
if(block != Blocks.air){
|
if(block != Blocks.air){
|
||||||
//TODO use d4 instead of d8 for no out-of-reach ores?
|
|
||||||
if(nearAir(x, y)){
|
if(nearAir(x, y)){
|
||||||
if(block == Blocks.carbonWall && noise(x + 78, y, 4, 0.7f, 33f, 1f) > 0.52f){
|
if(block == Blocks.carbonWall && noise(x + 78, y, 4, 0.7f, 33f, 1f) > 0.52f){
|
||||||
block = Blocks.graphiticWall;
|
block = Blocks.graphiticWall;
|
||||||
|
|||||||
@@ -476,7 +476,7 @@ public class PlacementFragment extends Fragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
//if the tile has a drop, display the drop
|
//if the tile has a drop, display the drop
|
||||||
if(hoverTile.drop() != null || hoverTile.wallDrop() != null){
|
if(hoverTile.drop() != null || hoverTile.wallDrop() != null || hoverTile.floor().liquidDrop != null){
|
||||||
return hoverTile;
|
return hoverTile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,16 @@ public class Floor extends Block{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public TextureRegion getDisplayIcon(Tile tile){
|
||||||
|
return liquidDrop == null ? super.getDisplayIcon(tile) : liquidDrop.uiIcon;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getDisplayName(Tile tile){
|
||||||
|
return liquidDrop == null ? super.getDisplayName(tile) : liquidDrop.localizedName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void createIcons(MultiPacker packer){
|
public void createIcons(MultiPacker packer){
|
||||||
super.createIcons(packer);
|
super.createIcons(packer);
|
||||||
|
|||||||
Reference in New Issue
Block a user