v0.6.0: adjusted level shape properties slightly

This commit is contained in:
Evan Debenham 2017-05-31 17:43:39 -04:00
parent cf744924eb
commit c388463db2
2 changed files with 6 additions and 4 deletions

View File

@ -127,8 +127,8 @@ public abstract class RegularLevel extends Level {
protected Builder builder(){
return new LoopBuilder()
.setLoopShape( 2 ,
Random.Float(0.6f, 0.9f),
Random.Int(4) == 0 ? 0.25f : 0);
Random.Float(0.55f, 0.85f),
Random.Float(0f, 0.5f));
}
protected abstract Painter painter();

View File

@ -173,8 +173,10 @@ public abstract class RegularBuilder extends Builder {
continue;
}
if (Random.Float() < 0.33f) branchable.addAll(connectingRoomsThisBranch);
if (r.maxConnections(Room.ALL) > 1) {
for (int j = 0; j <connectingRoomsThisBranch.size(); j++){
if (Random.Int(3) <= 1) branchable.add(connectingRoomsThisBranch.get(j));
}
if (r.maxConnections(Room.ALL) > 1 && Random.Int(3) == 0) {
if (r instanceof StandardRoom){
for (int j = 0; j < ((StandardRoom) r).sizeCat.connectionWeight(); j++){
branchable.add(r);