mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-10 15:19:24 +07:00
Tweaks
This commit is contained in:
parent
6e4b02db5a
commit
9788f9b981
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);
|
||||
Room spawn = array.random();
|
||||
Room spawn = array.random(rand);
|
||||
for(int i = 0; i < connections; i++){
|
||||
array.random().connect(array.random());
|
||||
array.random(rand).connect(array.random(rand));
|
||||
}
|
||||
|
||||
for(Room room : array){
|
||||
@ -184,13 +184,20 @@ public class TestPlanetGenerator extends BasicGenerator implements PlanetGenerat
|
||||
tech();
|
||||
|
||||
pass((x, y) -> {
|
||||
if(floor == Blocks.sporeMoss && rand.chance(0.9)){
|
||||
floor = Blocks.moss;
|
||||
}
|
||||
|
||||
//random stuff
|
||||
|
||||
for(int i = 0; i < 4; i++){
|
||||
Tile near = world.tile(x + Geometry.d4[i].x, y + Geometry.d4[i].y);
|
||||
if(near != null && near.block() != Blocks.air){
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
@ -1,3 +1,3 @@
|
||||
org.gradle.daemon=true
|
||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||
archash=8a274592626265cb59a71d26bea94b38f703092a
|
||||
archash=b0cce39a1f4ea1c4c4a07ce750d5c30f451b34c2
|
||||
|
Loading…
Reference in New Issue
Block a user