diff options
author | Neil Moore <neil@s-z.org> | 2013-09-28 21:38:25 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-09-28 21:44:21 -0400 |
commit | 5c3fee8af3eb63993bcdb2a4a8fb51cdd768572b (patch) | |
tree | a7a08baa646299d4e3b07300254be42ac6b1d942 /crawl-ref/source/stash.cc | |
parent | c437711bc0e3a6dd3cfef2e493926b0e8330c7fc (diff) | |
download | crawl-ref-5c3fee8af3eb63993bcdb2a4a8fb51cdd768572b.tar.gz crawl-ref-5c3fee8af3eb63993bcdb2a4a8fb51cdd768572b.zip |
Use qualname, not basename, in stash annotation (#3062)
This was supposed to match singulars when the item was plural, but
scrolls and potions did not include their subtype in DESC_BASENAME.
This still won't let you search for "arrow of flame", since
DESC_QUALNAME does not include brands.
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r-- | crawl-ref/source/stash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index c6866f593b..1fecc891ef 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -90,7 +90,7 @@ string stash_annotate_item(const char *s, const item_def *item, bool exclusive) if (item->quantity > 1) { text += "\n"; - text += item->name(DESC_BASENAME); + text += item->name(DESC_QUALNAME); } return text; |