v0.9.1: slightly increased room interconnectedness

This commit is contained in:
Evan Debenham 2020-10-19 14:53:45 -04:00
parent 330c1bc506
commit 1e555ddd7f

View File

@ -49,9 +49,9 @@ public abstract class RegularBuilder extends Builder {
} }
//path length is the percentage of pathable rooms that are on //path length is the percentage of pathable rooms that are on
protected float pathLength = 0.5f; protected float pathLength = 0.33f;
//The chance weights for extra rooms to be added to the path //The chance weights for extra rooms to be added to the path
protected float[] pathLenJitterChances = new float[]{0, 1, 0}; protected float[] pathLenJitterChances = new float[]{0, 1, 2, 1};
public RegularBuilder setPathLength( float len, float[] jitter ){ public RegularBuilder setPathLength( float len, float[] jitter ){
pathLength = len; pathLength = len;
@ -68,7 +68,8 @@ public abstract class RegularBuilder extends Builder {
return this; return this;
} }
protected float extraConnectionChance = 0.2f; //each adjacency is processed twice, so this gives a ~50% chance to connect two adjacent rooms
protected float extraConnectionChance = 0.30f;
public RegularBuilder setExtraConnectionChance( float chance ){ public RegularBuilder setExtraConnectionChance( float chance ){
extraConnectionChance = chance; extraConnectionChance = chance;