v0.9.3: fixed seeds disappearing after falling with barren land challenge
This commit is contained in:
@@ -23,6 +23,7 @@ package com.shatteredpixel.shatteredpixeldungeon.scenes;
|
|||||||
|
|
||||||
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.SPDSettings;
|
import com.shatteredpixel.shatteredpixeldungeon.SPDSettings;
|
||||||
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
import com.shatteredpixel.shatteredpixeldungeon.ShatteredPixelDungeon;
|
||||||
@@ -397,7 +398,7 @@ public class GameScene extends PixelScene {
|
|||||||
int pos = Dungeon.level.randomRespawnCell( null );
|
int pos = Dungeon.level.randomRespawnCell( null );
|
||||||
if (item instanceof Potion) {
|
if (item instanceof Potion) {
|
||||||
((Potion)item).shatter( pos );
|
((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 );
|
Dungeon.level.plant( (Plant.Seed)item, pos );
|
||||||
} else if (item instanceof Honeypot) {
|
} else if (item instanceof Honeypot) {
|
||||||
Dungeon.level.drop(((Honeypot) item).shatter(null, pos), pos);
|
Dungeon.level.drop(((Honeypot) item).shatter(null, pos), pos);
|
||||||
|
|||||||
Reference in New Issue
Block a user