diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-23 06:11:25 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-23 06:11:25 +0000 |
commit | 96598708cf55e8129ffaaf6b337db57ccd34dacd (patch) | |
tree | 62420311aac5358b20256a83bac4f4d27d5cd323 /crawl-ref/source/itemname.cc | |
parent | 37742bb98e496fe334c0e942a4f82bb145a5b656 (diff) | |
download | crawl-ref-96598708cf55e8129ffaaf6b337db57ccd34dacd.tar.gz crawl-ref-96598708cf55e8129ffaaf6b337db57ccd34dacd.zip |
Make the ignore_flags field of item_def::name() work with more flags.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6075 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r-- | crawl-ref/source/itemname.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc index 25e1266d1a..e420d368ec 100644 --- a/crawl-ref/source/itemname.cc +++ b/crawl-ref/source/itemname.cc @@ -1015,12 +1015,15 @@ std::string item_def::name_aux( description_level_type desc, const bool know_ego = know_brand; const bool know_cosmetic = !__know_pluses && !terse & !basename - && !qualname && !dbname; + && !qualname && !dbname + && !(ignore_flags & ISFLAG_COSMETIC_MASK); // So that know_cosmetic won't be affected by ignore_flags. const bool know_pluses = __know_pluses && !testbits(ignore_flags, ISFLAG_KNOW_PLUSES); + const bool know_racial = !(ignore_flags & ISFLAG_RACIAL_MASK); + const bool need_plural = !basename && !dbname; int brand; @@ -1088,7 +1091,7 @@ std::string item_def::name_aux( description_level_type desc, } } - if (!basename && !dbname) + if (!basename && !dbname && know_racial) // always give racial type (it does have game effects) buff << racial_description_string(*this, terse); |