mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-13 12:16:53 +07:00
Removed bars
This commit is contained in:
parent
8986b89d67
commit
29bcb8e07c
@ -180,8 +180,8 @@ public class OverlayRenderer{
|
|||||||
y = (int) (y + 0.0001f);
|
y = (int) (y + 0.0001f);
|
||||||
}
|
}
|
||||||
|
|
||||||
drawEncloser(x, y - 8f, 1f);
|
//drawEncloser(x, y - 8f, 1f);
|
||||||
drawBar(Palette.healthstats, x, y - 8f, unit.healthf());
|
//drawBar(Palette.healthstats, x, y - 8f, unit.healthf());
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawBar(Color color, float x, float y, float finion){
|
void drawBar(Color color, float x, float y, float finion){
|
||||||
|
@ -127,7 +127,7 @@ public class FortressGenerator{
|
|||||||
int maxIndex = (int)(1 + ((float)gen.sector.difficulty / maxDifficulty * (structures.length-2)));
|
int maxIndex = (int)(1 + ((float)gen.sector.difficulty / maxDifficulty * (structures.length-2)));
|
||||||
|
|
||||||
for(int i = maxIndex/2; i < maxIndex; i++){
|
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;
|
float baseChance = 0.8f / selected.size;
|
||||||
|
@ -98,7 +98,7 @@ public class Conveyor extends Block{
|
|||||||
byte rotation = tile.getRotation();
|
byte rotation = tile.getRotation();
|
||||||
|
|
||||||
int frame = entity.clogHeat <= 0.5f ? (int) ((Timers.time() / 4f) % 4) : 0;
|
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);
|
tilesize * entity.blendsclx, tilesize * entity.blendscly, rotation*90);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,6 +234,7 @@ public class Drill extends Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isValid(Tile tile){
|
protected boolean isValid(Tile tile){
|
||||||
|
if(tile == null) return false;
|
||||||
ItemStack drops = tile.floor().drops;
|
ItemStack drops = tile.floor().drops;
|
||||||
return drops != null && drops.item.hardness <= tier;
|
return drops != null && drops.item.hardness <= tier;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user