v0.9.1: tweaked cave room logic, larger and a bit more chaotic now.

This commit is contained in:
Evan Debenham 2020-10-19 14:56:25 -04:00
parent 81ea918406
commit acfc24b97c

View File

@ -33,7 +33,7 @@ public class CaveRoom extends PatchRoom {
@Override @Override
public float[] sizeCatProbs() { public float[] sizeCatProbs() {
return new float[]{9, 3, 1}; return new float[]{4, 2, 1};
} }
@Override @Override
@ -44,13 +44,13 @@ public class CaveRoom extends PatchRoom {
door.set( Door.Type.REGULAR ); door.set( Door.Type.REGULAR );
} }
//fill scales from ~25% at 4x4, to ~55% at 18x18 //fill scales from ~30% at 4x4, to ~60% at 18x18
// normal ~25% to ~35% // normal ~30% to ~40%
// large ~35% to ~45% // large ~40% to ~50%
// giant ~45% to ~55% // giant ~50% to ~60%
float fill = 0.25f + (width()*height())/1024f; float fill = 0.30f + (width()*height())/1024f;
setupPatch(level, fill, 4, true); setupPatch(level, fill, 3, true);
cleanDiagonalEdges(); cleanDiagonalEdges();
for (int i = top + 1; i < bottom; i++) { for (int i = top + 1; i < bottom; i++) {