v0.2.3d: further tweaks, now actually fixes blacksmith bug
This commit is contained in:
parent
58c3317b72
commit
e4ea5685ba
|
@ -59,8 +59,8 @@ public class CavesLevel extends RegularLevel {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected boolean build() {
|
||||
if (!super.build()) return false;
|
||||
protected boolean assignRoomType() {
|
||||
super.assignRoomType();
|
||||
|
||||
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
|
||||
return false;
|
||||
|
|
|
@ -54,7 +54,7 @@ public class CityLevel extends RegularLevel {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void assignRoomType() {
|
||||
protected boolean assignRoomType() {
|
||||
super.assignRoomType();
|
||||
|
||||
for (Room r : rooms) {
|
||||
|
@ -62,6 +62,8 @@ public class CityLevel extends RegularLevel {
|
|||
r.type = Type.PASSAGE;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -55,7 +55,7 @@ public class PrisonLevel extends RegularLevel {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected void assignRoomType() {
|
||||
protected boolean assignRoomType() {
|
||||
super.assignRoomType();
|
||||
|
||||
for (Room r : rooms) {
|
||||
|
@ -63,6 +63,8 @@ public class PrisonLevel extends RegularLevel {
|
|||
r.type = Type.PASSAGE;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -148,7 +148,8 @@ public abstract class RegularLevel extends Level {
|
|||
//sorry warden, no lucky sungrass or blandfruit seeds for you!
|
||||
specials.remove( Room.Type.GARDEN );
|
||||
}
|
||||
assignRoomType();
|
||||
if (!assignRoomType())
|
||||
return false;
|
||||
|
||||
paint();
|
||||
paintWater();
|
||||
|
@ -178,7 +179,7 @@ public abstract class RegularLevel extends Level {
|
|||
return true;
|
||||
}
|
||||
|
||||
protected void assignRoomType() {
|
||||
protected boolean assignRoomType() {
|
||||
|
||||
int specialRooms = 0;
|
||||
|
||||
|
@ -266,6 +267,8 @@ public abstract class RegularLevel extends Level {
|
|||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected void paintWater() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user