v2.1.0: fixed shops sometimes generating an empty spot instead of a bag

This commit is contained in:
Evan Debenham
2023-05-30 12:29:15 -04:00
parent 82ee7805c8
commit 9a8d007133

View File

@@ -190,8 +190,10 @@ public class ShopRoom extends SpecialRoom {
itemsToSpawn.add( new Alchemize().quantity(Random.IntRange(2, 3)));
itemsToSpawn.add(ChooseBag(Dungeon.hero.belongings));
Bag bag = ChooseBag(Dungeon.hero.belongings);
if (bag != null) {
itemsToSpawn.add(bag);
}
itemsToSpawn.add( new PotionOfHealing() );
itemsToSpawn.add( Generator.randomUsingDefaults( Generator.Category.POTION ) );