diff options
author | Johanna Ploog <j-p-e-g@sourceforge.net> | 2011-02-09 21:48:58 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@sourceforge.net> | 2011-02-10 23:36:45 +0100 |
commit | 2d5e12cd06e94dcedf6febbd1e85881bebc98c3a (patch) | |
tree | 6a556fd7be1101a0fc76f4bfa5d05530e7a4eb67 /crawl-ref/source/items.h | |
parent | c5d78aa50413e3c4da651add3c4af626ba9b80f4 (diff) | |
download | crawl-ref-2d5e12cd06e94dcedf6febbd1e85881bebc98c3a.tar.gz crawl-ref-2d5e12cd06e94dcedf6febbd1e85881bebc98c3a.zip |
Don't set cosmetic flags for artefacts; tidy up specialness check.
Get rid of the "name contains runed" type of checks in favour of
checking directly against COSMETIC_MASK. We don't hide artefacts
anymore, anyway.
Also, there's no point to setting cosmetic flags for artefacts
because the item name uses the artefact appearance instead, and
codewise it just causes confusion.
Diffstat (limited to 'crawl-ref/source/items.h')
-rw-r--r-- | crawl-ref/source/items.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/items.h b/crawl-ref/source/items.h index be3cf39517..9163e58a1f 100644 --- a/crawl-ref/source/items.h +++ b/crawl-ref/source/items.h @@ -75,6 +75,7 @@ bool player_on_single_stack(); void pickup_menu(int item_link); void pickup(bool partial_quantity = false); +bool item_is_branded(const item_def& item); int item_name_specialness(const item_def& item); void item_list_on_square(std::vector<const item_def*>& items, int obj, bool force_squelch = false); |