v0.6.0: items no longer spawn in entrance rooms

This commit is contained in:
Evan Debenham 2017-04-17 03:25:59 -04:00 committed by Evan Debenham
parent 6c5110df32
commit aca178e884

View File

@ -364,7 +364,7 @@ public abstract class RegularLevel extends Level {
protected int randomDropCell() {
while (true) {
Room room = randomRoom( StandardRoom.class );
if (room != null) {
if (room != null && room != roomEntrance) {
int pos = pointToCell(room.random());
if (passable[pos]) {
return pos;