v0.7.0: added a safety check to new wndbag functionality

This commit is contained in:
Evan Debenham 2018-06-09 19:11:32 -04:00
parent 6a5152ea20
commit 7c764141fe

View File

@ -376,7 +376,7 @@ public class WndBag extends WndTabbed {
bg.ra = +0.3f;
bg.ga = -0.15f;
} else if (!item.isIdentified()) {
if (item.cursedKnown){
if ((item instanceof EquipableItem || item instanceof Wand) && item.cursedKnown){
bg.ba = 0.3f;
} else {
bg.ra = 0.3f;