v0.4.1: fixed items being incorrectly generated on the final shop floor

This commit is contained in:
Evan Debenham 2016-06-25 00:02:34 -04:00
parent d300038244
commit 28fdc38a73

View File

@ -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() );