summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-28 04:06:19 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-28 04:06:19 +0000
commitf04482906f23fe8b8d9855f2c5de7172b1e6b785 (patch)
tree67cacbda63a80395aeb73d55bde8470c5dbb9b86 /crawl-ref/source/item_use.cc
parentbaaffd2035334a855a45fb2df176c57eb43b2c97 (diff)
downloadcrawl-ref-f04482906f23fe8b8d9855f2c5de7172b1e6b785.tar.gz
crawl-ref-f04482906f23fe8b8d9855f2c5de7172b1e6b785.zip
Properly disallow wearing helmets with horns again (oops).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3120 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index f14002a9f4..7a89f1f20c 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -854,6 +854,14 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)
if (!is_hard_helmet( item ))
return (true);
+ if (you.mutation[MUT_HORNS])
+ {
+ if (verbose)
+ mpr("You can't wear that with your horns!");
+
+ return (false);
+ }
+
if (you.species == SP_KENKU
&& (ignore_temporary || !player_is_shapechanged()))
{