v0.2.3d: further tweaks, now actually fixes blacksmith bug

This commit is contained in:
Evan Debenham 2015-01-14 23:16:13 -05:00
parent 58c3317b72
commit e4ea5685ba
4 changed files with 13 additions and 6 deletions

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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() {