diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-28 04:06:19 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-12-28 04:06:19 +0000 |
commit | f04482906f23fe8b8d9855f2c5de7172b1e6b785 (patch) | |
tree | 67cacbda63a80395aeb73d55bde8470c5dbb9b86 /crawl-ref/source/item_use.cc | |
parent | baaffd2035334a855a45fb2df176c57eb43b2c97 (diff) | |
download | crawl-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.cc | 8 |
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())) { |