v0.9.1: further tweaked default size of the regular builder main path
This commit is contained in:
parent
0bfcd5e4a3
commit
c37c25fd84
|
@ -34,7 +34,7 @@ import com.watabou.utils.Random;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.LinkedHashSet;
|
import java.util.LinkedHashSet;
|
||||||
|
|
||||||
//Introduces the concept of a major path, and branches
|
//Introduces the concept of a main path, and branches
|
||||||
// with tunnels padding rooms placed in them
|
// with tunnels padding rooms placed in them
|
||||||
public abstract class RegularBuilder extends Builder {
|
public abstract class RegularBuilder extends Builder {
|
||||||
|
|
||||||
|
@ -48,10 +48,11 @@ public abstract class RegularBuilder extends Builder {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
//path length is the percentage of pathable rooms that are on
|
//path length is the percentage of pathable rooms that are on the main path
|
||||||
protected float pathLength = 0.33f;
|
protected float pathLength = 0.25f;
|
||||||
//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, 2, 1};
|
protected float[] pathLenJitterChances = new float[]{0, 0, 0, 1};
|
||||||
|
//default is 25% of multi connection rooms, plus 3
|
||||||
|
|
||||||
public RegularBuilder setPathLength( float len, float[] jitter ){
|
public RegularBuilder setPathLength( float len, float[] jitter ){
|
||||||
pathLength = len;
|
pathLength = len;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user