diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-06-08 13:14:48 +0000 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-06-09 00:10:36 +0200 |
commit | ceac2e3ae97fdbb582aba5a8dd7c897dc7b86e11 (patch) | |
tree | ad006421466bd479188c5a925ab948a98ea3907f /crawl-ref/source/l_item.cc | |
parent | f050682451287adec41a294bbd1ef0d6792aac2d (diff) | |
download | crawl-ref-ceac2e3ae97fdbb582aba5a8dd7c897dc7b86e11.tar.gz crawl-ref-ceac2e3ae97fdbb582aba5a8dd7c897dc7b86e11.zip |
Searching for ego will also return items which may be branded.
Diffstat (limited to 'crawl-ref/source/l_item.cc')
-rw-r--r-- | crawl-ref/source/l_item.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/l_item.cc b/crawl-ref/source/l_item.cc index 3610aed557..91d6172333 100644 --- a/crawl-ref/source/l_item.cc +++ b/crawl-ref/source/l_item.cc @@ -519,10 +519,12 @@ IDEF(artefact) IDEF(branded) { - if (!item || !item->defined() || !item_type_known(*item)) + if (!item || !item->defined()) return (0); - lua_pushboolean(ls, item_is_branded(*item)); + lua_pushboolean(ls, item_is_branded(*item) + || item->flags & ISFLAG_COSMETIC_MASK + && !item_type_known(*item)); return (1); } |