v0.6.3a: fixed health potions being craftable with no-potions challenge
This commit is contained in:
parent
c892fb30cf
commit
f9c46b3387
|
@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items.potions;
|
||||||
|
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
import com.shatteredpixel.shatteredpixeldungeon.Badges;
|
||||||
|
import com.shatteredpixel.shatteredpixeldungeon.Challenges;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
import com.shatteredpixel.shatteredpixeldungeon.Statistics;
|
||||||
|
@ -385,7 +386,8 @@ public class Potion extends Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (result instanceof PotionOfHealing
|
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);
|
result = Generator.random(Generator.Category.POTION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user