Removed bars

This commit is contained in:
Anuken 2018-08-14 10:29:45 -04:00
parent 8986b89d67
commit 29bcb8e07c
4 changed files with 5 additions and 4 deletions

View File

@ -180,8 +180,8 @@ public class OverlayRenderer{
y = (int) (y + 0.0001f);
}
drawEncloser(x, y - 8f, 1f);
drawBar(Palette.healthstats, x, y - 8f, unit.healthf());
//drawEncloser(x, y - 8f, 1f);
//drawBar(Palette.healthstats, x, y - 8f, unit.healthf());
}
void drawBar(Color color, float x, float y, float finion){

View File

@ -127,7 +127,7 @@ public class FortressGenerator{
int maxIndex = (int)(1 + ((float)gen.sector.difficulty / maxDifficulty * (structures.length-2)));
for(int i = maxIndex/2; i < maxIndex; i++){
selected.add(structures[i]);
selected.add(structures[Math.min(i, structures.length-1)]);
}
float baseChance = 0.8f / selected.size;

View File

@ -98,7 +98,7 @@ public class Conveyor extends Block{
byte rotation = tile.getRotation();
int frame = entity.clogHeat <= 0.5f ? (int) ((Timers.time() / 4f) % 4) : 0;
Draw.rect(regions[entity.blendbits][frame], tile.drawx(), tile.drawy(),
Draw.rect(regions[Mathf.clamp(entity.blendbits, 0, regions.length - 1)][Mathf.clamp(frame, 0, regions[0].length - 1)], tile.drawx(), tile.drawy(),
tilesize * entity.blendsclx, tilesize * entity.blendscly, rotation*90);
}

View File

@ -234,6 +234,7 @@ public class Drill extends Block{
}
protected boolean isValid(Tile tile){
if(tile == null) return false;
ItemStack drops = tile.floor().drops;
return drops != null && drops.item.hardness <= tier;
}