v0.3.0c: centralized general sign placement logic, fixed a bug where traps would sometimes appear over signs.
This commit is contained in:
committed by
Evan Debenham
parent
8a6b970c1f
commit
976ff5cb96
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user