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.cc15
1 files changed, 2 insertions, 13 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 58b01629f0..011e8b06c3 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -697,24 +697,13 @@ void set_equip_race( item_def &item, unsigned long flags )
break;
case OBJ_ARMOUR:
- // not hides, dragon armour, crystal plate, or barding
- if ((item.sub_type >= ARM_DRAGON_HIDE
- && item.sub_type <= ARM_SWAMP_DRAGON_ARMOUR)
- || item.sub_type == ARM_CENTAUR_BARDING
- || item.sub_type == ARM_NAGA_BARDING)
- {
+ if (item.sub_type > ARM_MAX_RACIAL)
return;
- }
break;
case OBJ_MISSILES:
- if (item.sub_type == MI_STONE
- || item.sub_type == MI_LARGE_ROCK
- || item.sub_type == MI_SLING_BULLET
- || item.sub_type == MI_THROWING_NET)
- {
+ if (item.sub_type > MI_MAX_RACIAL)
return;
- }
break;
default: