v0.6.4: firebloom no longer spawns in the random plants room

This commit is contained in:
Evan Debenham 2018-03-18 21:33:39 -04:00
parent 1e714e43d2
commit 4c3709a9d9

View File

@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.Generator;
import com.shatteredpixel.shatteredpixeldungeon.levels.Level; import com.shatteredpixel.shatteredpixeldungeon.levels.Level;
import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain; import com.shatteredpixel.shatteredpixeldungeon.levels.Terrain;
import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter; import com.shatteredpixel.shatteredpixeldungeon.levels.painters.Painter;
import com.shatteredpixel.shatteredpixeldungeon.plants.Firebloom;
import com.shatteredpixel.shatteredpixeldungeon.plants.Plant; import com.shatteredpixel.shatteredpixeldungeon.plants.Plant;
import com.watabou.utils.Point; import com.watabou.utils.Point;
import com.watabou.utils.Random; import com.watabou.utils.Random;
@ -97,8 +98,11 @@ public class PlantsRoom extends StandardRoom {
super.paint(level); super.paint(level);
} }
//TODO: sungrass, blandfruit, and starflower seeds can grow here, perhaps that's too good.
private static Plant.Seed randomSeed(){ 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;
} }
} }