v0.6.0: limited the max size of the rat king room

This commit is contained in:
Evan Debenham 2017-05-02 19:05:31 -04:00
parent 6fc1118b73
commit 7d2e5e4646

View File

@ -28,10 +28,24 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Item;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room;
import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EmptyRoom;
import com.watabou.utils.Random;
public class RatKingRoom extends SpecialRoom {
@Override
public boolean canConnect(Room r) {
//never at the end of a connection room, or at the entrance
return r instanceof EmptyRoom && super.canConnect(r);
}
//reduced max size to limit chest numbers.
// normally would gen with 8-28, this limits it to 8-16
@Override
public int maxHeight() { return 7; }
public int maxWidth() { return 7; }
public void paint(Level level ) {
Painter.fill( level, this, Terrain.WALL );