diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-31 14:08:54 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-31 14:08:54 +0100 |
commit | 8d8a727b80167a76d8282614fff1610fd9625a61 (patch) | |
tree | d3f96e793325bb5ac7568fd321f4f089274865e6 /crawl-ref/source/itemprop.cc | |
parent | fdfbfdeb226cb33da8198cb3da6b6f39d7118dfc (diff) | |
download | crawl-ref-8d8a727b80167a76d8282614fff1610fd9625a61.tar.gz crawl-ref-8d8a727b80167a76d8282614fff1610fd9625a61.zip |
IOOD vs shields: blocks (boo!) and reflection (yay!)
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index bf47f3ab96..88b579114d 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2462,6 +2462,12 @@ bool shield_reflects(const item_def &shield) return (get_armour_ego_type(shield) == SPARM_REFLECTION); } +void ident_reflector(item_def *item) +{ + if (!is_artefact(*item)) + set_ident_flags(*item, ISFLAG_KNOW_TYPE); +} + std::string item_base_name(const item_def &item) { switch (item.base_type) |