summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 21:37:37 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-06 21:37:37 +0000
commitb4d50875d584b6b65964e57a45f3a9e0a59a465c (patch)
tree189219e585904cde4caa5dee824c75e37cbdd7d0 /crawl-ref/source/item_use.cc
parent1395f15a3e6ee7e9b934da41b694c9beef71abda (diff)
downloadcrawl-ref-b4d50875d584b6b65964e57a45f3a9e0a59a465c.tar.gz
crawl-ref-b4d50875d584b6b65964e57a45f3a9e0a59a465c.zip
Automatically inscribe randart weapons/armour with their properties when
wielding/wearing it for the first time. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6786 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 7b6c27254b..d19029aea2 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -552,6 +552,8 @@ void wield_effects(int item_wield_2, bool showMsgs)
{
i_dam = randart_wpn_property(item, RAP_BRAND);
use_randart(item_wield_2);
+ if (Options.autoinscribe_randarts && !was_known)
+ add_autoinscription( item, randart_auto_inscription(item));
}
else
{