v2.2.0: fixed barren land challenge affecting broader levelgen

This commit is contained in:
Evan Debenham
2023-10-11 13:46:11 -04:00
parent e9e71ca262
commit e5e6d73b19
@@ -975,10 +975,6 @@ 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) {
@@ -993,6 +989,11 @@ public abstract class Level implements Bundlable {
set(pos, Terrain.GRASS, this);
GameScene.updateMap(pos);
}
//we have to get this far as grass placement has RNG implications in levelgen
if (Dungeon.isChallenged(Challenges.NO_HERBALISM)){
return null;
}
plant = seed.couch( pos, this );
plants.put( pos, plant );