v0.6.0: items no longer spawn in entrance rooms
This commit is contained in:
parent
6c5110df32
commit
aca178e884
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user