v0.6.0: adjusted level shape properties slightly
This commit is contained in:
parent
cf744924eb
commit
c388463db2
|
@ -127,8 +127,8 @@ public abstract class RegularLevel extends Level {
|
||||||
protected Builder builder(){
|
protected Builder builder(){
|
||||||
return new LoopBuilder()
|
return new LoopBuilder()
|
||||||
.setLoopShape( 2 ,
|
.setLoopShape( 2 ,
|
||||||
Random.Float(0.6f, 0.9f),
|
Random.Float(0.55f, 0.85f),
|
||||||
Random.Int(4) == 0 ? 0.25f : 0);
|
Random.Float(0f, 0.5f));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected abstract Painter painter();
|
protected abstract Painter painter();
|
||||||
|
|
|
@ -173,8 +173,10 @@ public abstract class RegularBuilder extends Builder {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Random.Float() < 0.33f) branchable.addAll(connectingRoomsThisBranch);
|
for (int j = 0; j <connectingRoomsThisBranch.size(); j++){
|
||||||
if (r.maxConnections(Room.ALL) > 1) {
|
if (Random.Int(3) <= 1) branchable.add(connectingRoomsThisBranch.get(j));
|
||||||
|
}
|
||||||
|
if (r.maxConnections(Room.ALL) > 1 && Random.Int(3) == 0) {
|
||||||
if (r instanceof StandardRoom){
|
if (r instanceof StandardRoom){
|
||||||
for (int j = 0; j < ((StandardRoom) r).sizeCat.connectionWeight(); j++){
|
for (int j = 0; j < ((StandardRoom) r).sizeCat.connectionWeight(); j++){
|
||||||
branchable.add(r);
|
branchable.add(r);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user