v2.2.0: fixed barren land challenge affecting broader levelgen
This commit is contained in:
@@ -976,10 +976,6 @@ public abstract class Level implements Bundlable {
|
|||||||
|
|
||||||
public Plant plant( Plant.Seed seed, int pos ) {
|
public Plant plant( Plant.Seed seed, int pos ) {
|
||||||
|
|
||||||
if (Dungeon.isChallenged(Challenges.NO_HERBALISM)){
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
Plant plant = plants.get( pos );
|
Plant plant = plants.get( pos );
|
||||||
if (plant != null) {
|
if (plant != null) {
|
||||||
plant.wither();
|
plant.wither();
|
||||||
@@ -994,6 +990,11 @@ public abstract class Level implements Bundlable {
|
|||||||
GameScene.updateMap(pos);
|
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 );
|
plant = seed.couch( pos, this );
|
||||||
plants.put( pos, plant );
|
plants.put( pos, plant );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user