v0.6.4: unique items are now unsellable, regardless of their price

This commit is contained in:
Evan Debenham 2018-04-01 13:48:02 -04:00
parent 67bdd5b5fc
commit 394da27dbc

View File

@ -391,7 +391,7 @@ public class WndBag extends WndTabbed {
enable( false );
} else {
enable(
mode == Mode.FOR_SALE && (item.price() > 0) && (!item.isEquipped( Dungeon.hero ) || !item.cursed) ||
mode == Mode.FOR_SALE && !item.unique && (item.price() > 0) && (!item.isEquipped( Dungeon.hero ) || !item.cursed) ||
mode == Mode.UPGRADEABLE && item.isUpgradable() ||
mode == Mode.UNIDENTIFED && !item.isIdentified() ||
mode == Mode.UNIDED_OR_CURSED && ((item instanceof EquipableItem || item instanceof Wand) && (!item.isIdentified() || item.cursed)) ||