summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 55af5c9b5a..65f87c3a50 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1776,15 +1776,12 @@ bool is_throwable( const item_def &wpn, size_type bodysize )
//
bool item_is_rod( const item_def &item )
{
- return (item.base_type == OBJ_STAVES
- && item.sub_type >= STAFF_SMITING && item.sub_type < STAFF_AIR);
+ return (item.base_type == OBJ_STAVES && item.sub_type >= STAFF_SMITING);
}
bool item_is_staff( const item_def &item )
{
- // Isn't De Morgan's law wonderful. -- bwr
- return (item.base_type == OBJ_STAVES
- && (item.sub_type < STAFF_SMITING || item.sub_type >= STAFF_AIR));
+ return (item.base_type == OBJ_STAVES && !item_is_rod(item));
}
//