summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-31 14:08:54 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-31 14:08:54 +0100
commit8d8a727b80167a76d8282614fff1610fd9625a61 (patch)
treed3f96e793325bb5ac7568fd321f4f089274865e6 /crawl-ref/source/itemprop.cc
parentfdfbfdeb226cb33da8198cb3da6b6f39d7118dfc (diff)
downloadcrawl-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.cc6
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)