Tweaks
This commit is contained in:
Binary file not shown.
@@ -155,9 +155,9 @@ public class TestPlanetGenerator extends BasicGenerator implements PlanetGenerat
|
|||||||
}
|
}
|
||||||
|
|
||||||
int connections = rand.random(Math.max(rooms - 1, 1), rooms + 3);
|
int connections = rand.random(Math.max(rooms - 1, 1), rooms + 3);
|
||||||
Room spawn = array.random();
|
Room spawn = array.random(rand);
|
||||||
for(int i = 0; i < connections; i++){
|
for(int i = 0; i < connections; i++){
|
||||||
array.random().connect(array.random());
|
array.random(rand).connect(array.random(rand));
|
||||||
}
|
}
|
||||||
|
|
||||||
for(Room room : array){
|
for(Room room : array){
|
||||||
@@ -184,13 +184,20 @@ public class TestPlanetGenerator extends BasicGenerator implements PlanetGenerat
|
|||||||
tech();
|
tech();
|
||||||
|
|
||||||
pass((x, y) -> {
|
pass((x, y) -> {
|
||||||
|
if(floor == Blocks.sporeMoss && rand.chance(0.9)){
|
||||||
|
floor = Blocks.moss;
|
||||||
|
}
|
||||||
|
|
||||||
|
//random stuff
|
||||||
|
|
||||||
for(int i = 0; i < 4; i++){
|
for(int i = 0; i < 4; i++){
|
||||||
Tile near = world.tile(x + Geometry.d4[i].x, y + Geometry.d4[i].y);
|
Tile near = world.tile(x + Geometry.d4[i].x, y + Geometry.d4[i].y);
|
||||||
if(near != null && near.block() != Blocks.air){
|
if(near != null && near.block() != Blocks.air){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(Mathf.chance(0.01) && !floor.asFloor().isLiquid && block == Blocks.air){
|
|
||||||
|
if(rand.chance(0.01) && !floor.asFloor().isLiquid && block == Blocks.air){
|
||||||
block = dec.get(floor, floor.asFloor().decoration);
|
block = dec.get(floor, floor.asFloor().decoration);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=8a274592626265cb59a71d26bea94b38f703092a
|
archash=b0cce39a1f4ea1c4c4a07ce750d5c30f451b34c2
|
||||||
|
|||||||
Reference in New Issue
Block a user