Added health bars to block info / Fixed block info refresh bug
This commit is contained in:
@@ -69,10 +69,6 @@ public class MapGenerator extends Generator{
|
||||
|
||||
for(int x = 0; x < data.width(); x++){
|
||||
for(int y = 0; y < data.height(); y++){
|
||||
if(Mathf.chance(0.05) && tiles[x][y].floor() == Blocks.stone && tiles[x][y].block() == Blocks.air){
|
||||
tiles[x][y].setBlock(Blocks.rock);
|
||||
}
|
||||
|
||||
final double scl = 10;
|
||||
final int mag = 3;
|
||||
int newX = Mathf.clamp((int)(simplex.octaveNoise2D(1, 1, 1.0 / scl, x, y) * mag + x), 0, data.width()-1);
|
||||
@@ -84,7 +80,7 @@ public class MapGenerator extends Generator{
|
||||
}
|
||||
|
||||
if(enemySpawns > enemies.size){
|
||||
throw new IllegalArgumentException("Enemy spawn pool greater than map spawn #.");
|
||||
throw new IllegalArgumentException("Enemy spawn pool greater than map spawn number.");
|
||||
}
|
||||
|
||||
if(enemySpawns != -1){
|
||||
|
||||
Reference in New Issue
Block a user