From 28fdc38a73769283115382b7fc5068bde6f61f18 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 25 Jun 2016 00:02:34 -0400 Subject: [PATCH] v0.4.1: fixed items being incorrectly generated on the final shop floor --- src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index 033f041dd..54423f946 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -196,7 +196,7 @@ public abstract class Level implements Bundlable { mapped = new boolean[LENGTH]; Arrays.fill( mapped, false ); - if (!Dungeon.bossLevel()) { + if (!(Dungeon.bossLevel() || Dungeon.depth == 21) /*final shop floor*/) { addItemToSpawn( Generator.random( Generator.Category.FOOD ) ); if (Dungeon.posNeeded()) { addItemToSpawn( new PotionOfStrength() );