v0.2.3: fixed a bug where petals would spawn for a cursed rose

This commit is contained in:
Evan Debenham 2014-12-21 21:01:53 -05:00
parent ac7975d9f3
commit 4695f8d3c5

View File

@ -215,7 +215,7 @@ public abstract class Level implements Bundlable {
}
DriedRose rose = Dungeon.hero.belongings.getItem( DriedRose.class );
if (rose != null){
if (rose != null && !rose.cursed){
//this way if a rose is dropped later in the game, player still has a chance to max it out.
int petalsNeeded = (int) Math.ceil((float)((Dungeon.depth / 2) - rose.droppedPetals) / 3);