v0.2.3f: tweaked behaviour of last shop level, also fixed bug involving shop generation.
This commit is contained in:
parent
520131fb2d
commit
78fd89cb01
|
@ -52,6 +52,7 @@ public class LastShopLevel extends RegularLevel {
|
||||||
protected boolean build() {
|
protected boolean build() {
|
||||||
|
|
||||||
feeling = Feeling.CHASM;
|
feeling = Feeling.CHASM;
|
||||||
|
viewDistance = 4;
|
||||||
|
|
||||||
initRooms();
|
initRooms();
|
||||||
|
|
||||||
|
@ -113,8 +114,7 @@ public class LastShopLevel extends RegularLevel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (roomShop == null || shopSquare < 30
|
if (roomShop == null || shopSquare < 54) {
|
||||||
|| ((roomShop.width()-1)*(roomShop.height()-1) < ShopPainter.spaceNeeded())) {
|
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
roomShop.type = Imp.Quest.isCompleted() ? Room.Type.SHOP : Room.Type.STANDARD;
|
roomShop.type = Imp.Quest.isCompleted() ? Room.Type.SHOP : Room.Type.STANDARD;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user