v2.2.0: fixed barren land challenge affecting broader levelgen
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user