diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index 915223cf6d..e418f1dc7d 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -2672,6 +2672,13 @@ bool is_shield_incompatible(const item_def &weapon, const item_def *shield) && !is_range_weapon(weapon)); } +bool shield_reflects(const item_def &shield) +{ + ASSERT(is_shield(shield)); + + return (get_armour_ego_type(shield) == SPARM_REFLECTION); +} + std::string item_base_name(const item_def &item) { switch (item.base_type) |