summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/goditem.cc
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-06-23 08:13:34 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-06-23 08:13:34 +0100
commitad4adc2651f876369313020e45ba8f45ebaaca26 (patch)
tree9834557d5d3772de14b632d5bbbfa459661d31c4 /crawl-ref/source/goditem.cc
parent470e7f1a3f4d94feaf8b57d4d36e58db4af6082b (diff)
downloadcrawl-ref-ad4adc2651f876369313020e45ba8f45ebaaca26.tar.gz
crawl-ref-ad4adc2651f876369313020e45ba8f45ebaaca26.zip
Zin hates the new Box of Beasts
It's chaotic and magical; this flags it as such and causes penance if you use it. The chimera will also become unfriendly.
Diffstat (limited to 'crawl-ref/source/goditem.cc')
-rw-r--r--crawl-ref/source/goditem.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/goditem.cc b/crawl-ref/source/goditem.cc
index 7de56b33de..dc40ceee6f 100644
--- a/crawl-ref/source/goditem.cc
+++ b/crawl-ref/source/goditem.cc
@@ -274,6 +274,9 @@ bool is_chaotic_item(const item_def& item)
case OBJ_RODS:
retval = _is_bookrod_type(item, is_chaotic_spell);
break;
+ case OBJ_MISCELLANY:
+ retval = (item.sub_type == MISC_BOX_OF_BEASTS);
+ break;
default:
break;
}