v0.9.1b: fixed cached rations appearing in shop rooms

This commit is contained in:
Evan Debenham 2021-01-03 13:24:52 -05:00
parent 4d59fa6682
commit 9ae3f199e7

View File

@ -423,8 +423,8 @@ public abstract class RegularLevel extends Level {
int tries = 100;
do {
cell = randomDropCell(SpecialRoom.class);
} while (tries-- > 0 && room(cell) instanceof SecretRoom);
if (!(room(cell) instanceof SecretRoom) && cell != -1) {
} while (tries-- > 0 && (room(cell) instanceof SecretRoom || room(cell) instanceof ShopRoom));
if (!(room(cell) instanceof SecretRoom || room(cell) instanceof ShopRoom) && cell != -1) {
if (map[cell] == Terrain.HIGH_GRASS || map[cell] == Terrain.FURROWED_GRASS) {
map[cell] = Terrain.GRASS;
losBlocking[cell] = false;