v0.3.0c: centralized general sign placement logic, fixed a bug where traps would sometimes appear over signs.

This commit is contained in:
Evan Debenham
2015-06-05 11:24:36 -04:00
committed by Evan Debenham
parent 8a6b970c1f
commit 976ff5cb96
9 changed files with 18 additions and 56 deletions
@@ -168,6 +168,16 @@ public abstract class RegularLevel extends Level {
return true;
}
protected void placeSign(){
while (true) {
int pos = roomEntrance.random();
if (pos != entrance || traps.get(pos) == null) {
map[pos] = Terrain.SIGN;
break;
}
}
}
protected boolean initRooms() {