v0.3.2c: fixed a crash in levelgen
This commit is contained in:
parent
8bf7794bb6
commit
ef44eaad08
|
@ -79,7 +79,7 @@ public class CavesLevel extends RegularLevel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean assignRoomType() {
|
protected boolean assignRoomType() {
|
||||||
super.assignRoomType();
|
if (!super.assignRoomType()) return false;
|
||||||
|
|
||||||
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
|
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class CityLevel extends RegularLevel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean assignRoomType() {
|
protected boolean assignRoomType() {
|
||||||
super.assignRoomType();
|
if (!super.assignRoomType()) return false;
|
||||||
|
|
||||||
for (Room r : rooms) {
|
for (Room r : rooms) {
|
||||||
if (r.type == Type.TUNNEL) {
|
if (r.type == Type.TUNNEL) {
|
||||||
|
|
|
@ -74,7 +74,7 @@ public class PrisonLevel extends RegularLevel {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean assignRoomType() {
|
protected boolean assignRoomType() {
|
||||||
super.assignRoomType();
|
if (!super.assignRoomType()) return false;
|
||||||
|
|
||||||
for (Room r : rooms) {
|
for (Room r : rooms) {
|
||||||
if (r.type == Type.TUNNEL) {
|
if (r.type == Type.TUNNEL) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user