v0.6.0: no herbalism challenge now removes plants directly

This commit is contained in:
Evan Debenham 2017-05-16 15:51:41 -04:00
parent b2adb24fb8
commit dca6a6e65f
2 changed files with 5 additions and 1 deletions

View File

@ -710,6 +710,10 @@ public abstract class Level implements Bundlable {
public Plant plant( Plant.Seed seed, int pos ) {
if (Dungeon.isChallenged(Challenges.NO_HERBALISM)){
return null;
}
Plant plant = plants.get( pos );
if (plant != null) {
plant.wither();

View File

@ -79,7 +79,7 @@ public class SpecialRoom extends Room {
runSpecials.remove( CryptRoom.class );
}
if (Dungeon.isChallenged( Challenges.NO_HERBALISM )){
//sorry warden, no lucky sungrass or blandfruit seeds for you!
//Would be a bit mean to spawn these with no plants in them
runSpecials.remove( FoliageRoom.class );
}