v2.5.0: fixed cases where traps rooms could spawn large enough to make getting the chest + supply ration impossible

This commit is contained in:
Evan Debenham
2024-06-30 14:24:02 -04:00
parent 0c889a8a9b
commit 6a6e049f4f

View File

@@ -46,6 +46,15 @@ import com.watabou.utils.Reflection;
public class TrapsRoom extends SpecialRoom {
//size is a bit limited to prevent too many or too few traps
@Override
public int minWidth() { return 6; }
public int maxWidth() { return 8; }
@Override
public int minHeight() { return 6; }
public int maxHeight() { return 8; }
public void paint( Level level ) {
Painter.fill( level, this, Terrain.WALL );