summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-10 13:20:23 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-10 13:20:23 +0000
commitf499e23cede8ad97a11f1bbb08ad422bed9fe928 (patch)
treee4459abe7e43737f87761bb2ddae49453e789694 /crawl-ref/source/itemprop.cc
parent223f7f7080ce49ca31b7653a7922c3cf9a92727c (diff)
downloadcrawl-ref-f499e23cede8ad97a11f1bbb08ad422bed9fe928.tar.gz
crawl-ref-f499e23cede8ad97a11f1bbb08ad422bed9fe928.zip
Melded equipment may no longer be cursed, uncursed, or enchanted.
I'm still dithering on identify. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7433 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index d78fa65b36..6dd7c22b4b 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1361,6 +1361,10 @@ bool is_enchantable_armour(const item_def &arm, bool uncurse)
if (arm.base_type != OBJ_ARMOUR)
return (false);
+ // Melded armour cannot be enchanted.
+ if (!you_tran_can_wear(arm) && item_is_equipped(arm))
+ return (false);
+
// Artefacts or highly enchanted armour cannot be enchanted, only
// uncursed.
if (is_artefact(arm) || (arm.plus >= 2