v0.9.1b: fixed cached rations appearing in shop rooms
This commit is contained in:
parent
4d59fa6682
commit
9ae3f199e7
|
@ -423,8 +423,8 @@ public abstract class RegularLevel extends Level {
|
||||||
int tries = 100;
|
int tries = 100;
|
||||||
do {
|
do {
|
||||||
cell = randomDropCell(SpecialRoom.class);
|
cell = randomDropCell(SpecialRoom.class);
|
||||||
} while (tries-- > 0 && room(cell) instanceof SecretRoom);
|
} while (tries-- > 0 && (room(cell) instanceof SecretRoom || room(cell) instanceof ShopRoom));
|
||||||
if (!(room(cell) instanceof SecretRoom) && cell != -1) {
|
if (!(room(cell) instanceof SecretRoom || room(cell) instanceof ShopRoom) && cell != -1) {
|
||||||
if (map[cell] == Terrain.HIGH_GRASS || map[cell] == Terrain.FURROWED_GRASS) {
|
if (map[cell] == Terrain.HIGH_GRASS || map[cell] == Terrain.FURROWED_GRASS) {
|
||||||
map[cell] = Terrain.GRASS;
|
map[cell] = Terrain.GRASS;
|
||||||
losBlocking[cell] = false;
|
losBlocking[cell] = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user