diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 22:16:30 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 22:16:30 +0000 |
commit | db37e43a07959371149a08dda64db664455b4d59 (patch) | |
tree | cb6e2392bb371ec618785c622d33235c5710aef8 /crawl-ref/source/randart.cc | |
parent | 0b8e38c4f5fbfbfa72180c48de2027ff9851bb67 (diff) | |
download | crawl-ref-db37e43a07959371149a08dda64db664455b4d59.tar.gz crawl-ref-db37e43a07959371149a08dda64db664455b4d59.zip |
Properly disallow randart versions of mundane items.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9417 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r-- | crawl-ref/source/randart.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index 6f22c01433..4bf9da03d8 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -2130,6 +2130,9 @@ bool make_item_blessed_blade( item_def &item ) bool make_item_randart( item_def &item ) { + if (item_is_mundane(item)) + return (false); + if (item.base_type != OBJ_WEAPONS && item.base_type != OBJ_ARMOUR && item.base_type != OBJ_JEWELLERY |