v0.4.1: fixed cursed items sometimes not being known from crypts

This commit is contained in:
Evan Debenham 2016-07-23 15:55:32 -04:00 committed by Evan Debenham
parent 99babc1950
commit df3a840d83

View File

@ -77,7 +77,7 @@ public class CryptPainter extends Painter {
if (!prize.cursed){ if (!prize.cursed){
prize.upgrade(); prize.upgrade();
//curse the armor, unless it has a glyph //curse the armor, unless it has a glyph
if (prize.glyph == null){ if (!prize.hasGoodGlyph()){
prize.cursed = prize.cursedKnown = true; prize.cursed = prize.cursedKnown = true;
prize.inscribe(Armor.Glyph.randomCurse()); prize.inscribe(Armor.Glyph.randomCurse());
} }