diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 20:16:44 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-22 20:16:44 +0000 |
commit | e3be83aeba89076ac1b2c9e0cccbd2cfcfcdae82 (patch) | |
tree | 0177d9c5d79ff32504a8937eebdd9204ff54b289 /crawl-ref/source/randart.cc | |
parent | 207469bbbcd4d46f625872e832907c4861d54793 (diff) | |
download | crawl-ref-e3be83aeba89076ac1b2c9e0cccbd2cfcfcdae82.tar.gz crawl-ref-e3be83aeba89076ac1b2c9e0cccbd2cfcfcdae82.zip |
Make sure blessed blades don't get treated as unrandarts, either.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4487 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, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index eacef86ad5..a722c2cef4 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -1786,8 +1786,9 @@ bool make_item_blessed_blade( item_def &item ) if (is_artefact(item)) return (false); - // mark as an artefact + // mark as a random artefact item.flags |= ISFLAG_ARTEFACT_MASK; + item.flags &= ~ISFLAG_UNRANDART; ASSERT(!item.props.exists( KNOWN_PROPS_KEY )); item.props[KNOWN_PROPS_KEY].new_vector(SV_BOOL).resize(RA_PROPERTIES); |