From 6c8a9de4b6901d011d7fe9205d28462955873759 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 7 May 2021 16:56:03 -0400 Subject: [PATCH] v0.9.3: fixed seeds disappearing after falling with barren land challenge --- .../shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java index c9ae75caf..fc5d74100 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java @@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.scenes; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.shatteredpixel.shatteredpixeldungeon.Badges; +import com.shatteredpixel.shatteredpixeldungeon.Challenges; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.SPDSettings; import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon; @@ -397,7 +398,7 @@ public class GameScene extends PixelScene { int pos = Dungeon.level.randomRespawnCell( null ); if (item instanceof Potion) { ((Potion)item).shatter( pos ); - } else if (item instanceof Plant.Seed) { + } else if (item instanceof Plant.Seed && !Dungeon.isChallenged(Challenges.NO_HERBALISM)) { Dungeon.level.plant( (Plant.Seed)item, pos ); } else if (item instanceof Honeypot) { Dungeon.level.drop(((Honeypot) item).shatter(null, pos), pos);