From 4c3709a9d9b1fa5867be4a994afd92298929f385 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 18 Mar 2018 21:33:39 -0400 Subject: [PATCH] v0.6.4: firebloom no longer spawns in the random plants room --- .../levels/rooms/standard/PlantsRoom.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/PlantsRoom.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/PlantsRoom.java index 2223d744b..4a74cf4aa 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/PlantsRoom.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/standard/PlantsRoom.java @@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Generator; import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter; +import com.shatteredpixel.shatteredpixeldungeon.plants.Firebloom; import com.shatteredpixel.shatteredpixeldungeon.plants.Plant; import com.watabou.utils.Point; import com.watabou.utils.Random; @@ -97,8 +98,11 @@ public class PlantsRoom extends StandardRoom { super.paint(level); } - //TODO: sungrass, blandfruit, and starflower seeds can grow here, perhaps that's too good. private static Plant.Seed randomSeed(){ - return (Plant.Seed) Generator.random(Generator.Category.SEED); + Plant.Seed result; + do { + result = (Plant.Seed) Generator.random(Generator.Category.SEED); + } while (result instanceof Firebloom.Seed); + return result; } }