Skip to content

Commit

Permalink
v0.6.3a: fixed health potions being craftable with no-potions challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
00-Evan committed Feb 19, 2018
1 parent c892fb3 commit f9c46b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

import com.shatteredpixel.shatteredpixeldungeon.Assets;
import com.shatteredpixel.shatteredpixeldungeon.Badges;
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
Expand Down Expand Up @@ -385,7 +386,8 @@ public Item brew(ArrayList<Item> ingredients) {
}

while (result instanceof PotionOfHealing
&& Random.Int(10) < Dungeon.LimitedDrops.COOKING_HP.count) {
&& (Dungeon.isChallenged(Challenges.NO_HEALING)
|| Random.Int(10) < Dungeon.LimitedDrops.COOKING_HP.count)) {
result = Generator.random(Generator.Category.POTION);
}

Expand Down

0 comments on commit f9c46b3

Please sign in to comment.