From f04482906f23fe8b8d9855f2c5de7172b1e6b785 Mon Sep 17 00:00:00 2001 From: dolorous Date: Fri, 28 Dec 2007 04:06:19 +0000 Subject: 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 --- crawl-ref/source/item_use.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source') 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())) { -- cgit v1.2.3-54-g00ecf