v0.6.0: no herbalism challenge now removes plants directly
This commit is contained in:
parent
b2adb24fb8
commit
dca6a6e65f
|
@ -709,6 +709,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) {
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user