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
src/com/shatteredpixel/shatteredpixeldungeon/levels

View File

@ -59,8 +59,8 @@ public class CavesLevel extends RegularLevel {
} }
@Override @Override
protected boolean build() { protected boolean assignRoomType() {
if (!super.build()) return false; super.assignRoomType();
if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14) if (!Blacksmith.Quest.spawn( rooms ) && Dungeon.depth == 14)
return false; return false;

View File

@ -54,7 +54,7 @@ public class CityLevel extends RegularLevel {
} }
@Override @Override
protected void assignRoomType() { protected boolean assignRoomType() {
super.assignRoomType(); super.assignRoomType();
for (Room r : rooms) { for (Room r : rooms) {
@ -62,6 +62,8 @@ public class CityLevel extends RegularLevel {
r.type = Type.PASSAGE; r.type = Type.PASSAGE;
} }
} }
return true;
} }
@Override @Override

View File

@ -55,7 +55,7 @@ public class PrisonLevel extends RegularLevel {
} }
@Override @Override
protected void assignRoomType() { protected boolean assignRoomType() {
super.assignRoomType(); super.assignRoomType();
for (Room r : rooms) { for (Room r : rooms) {
@ -63,6 +63,8 @@ public class PrisonLevel extends RegularLevel {
r.type = Type.PASSAGE; r.type = Type.PASSAGE;
} }
} }
return true;
} }
@Override @Override

View File

@ -148,7 +148,8 @@ public abstract class RegularLevel extends Level {
//sorry warden, no lucky sungrass or blandfruit seeds for you! //sorry warden, no lucky sungrass or blandfruit seeds for you!
specials.remove( Room.Type.GARDEN ); specials.remove( Room.Type.GARDEN );
} }
assignRoomType(); if (!assignRoomType())
return false;
paint(); paint();
paintWater(); paintWater();
@ -178,7 +179,7 @@ public abstract class RegularLevel extends Level {
return true; return true;
} }
protected void assignRoomType() { protected boolean assignRoomType() {
int specialRooms = 0; int specialRooms = 0;
@ -266,6 +267,8 @@ public abstract class RegularLevel extends Level {
count++; count++;
} }
} }
return true;
} }
protected void paintWater() { protected void paintWater() {