From 0845c41a447404ea8bf5e56480694fda8c2b28ea Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 7 Aug 2015 14:11:10 -0400 Subject: [PATCH] v0.3.1: fixed a bug where potions of healing would not spawn from alchemy, made spawn rate less generous. --- src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java index 1be21bf41..17783f205 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Heap.java @@ -422,7 +422,7 @@ public class Heap implements Bundlable { if (Random.Int(1000/bonus) == 0) return new PotionOfExperience(); - while (potion instanceof PotionOfHealing && Random.Int(15) - Dungeon.limitedDrops.cookingHP.count >= 0) + while (potion instanceof PotionOfHealing && Random.Int(10) < Dungeon.limitedDrops.cookingHP.count) potion = Generator.random( Generator.Category.POTION ); if (potion instanceof PotionOfHealing)