v0.3.0: cursed wands no longer lose levels

This commit is contained in:
Evan Debenham
2015-05-25 21:49:01 -04:00
parent ac3f9b758a
commit 99af72cfe3
@@ -255,12 +255,11 @@ public abstract class Wand extends Item {
} }
} }
if (Random.Float() < 0.3f){ upgrade(n);
upgrade( Random.Int(n) ); if (Random.Float() < 0.3f) {
cursed = true; cursed = true;
cursedKnown = false; cursedKnown = false;
} else }
upgrade(n);
return this; return this;
} }