From 8d408bcec276c6900302ddb079f17da88456acd3 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 16 Sep 2007 21:51:20 +0000 Subject: Applying patches by dolorous: 1794789: Move "Xom is BORED" message into god channel 1795785: remove redundant check for potions of blood 1795673: claw-related clean-ups and enforcing consistency in transformations and claws (Lich and Statue retain claws, Ice Beast doesn't). I also added a check for hooves and claws mutation for the % and [ you_can_wear output. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2114 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/item_use.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/item_use.cc') diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index ffaefc2522..c7d90978d9 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -754,6 +754,18 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary) return (false); } + if (sub_type == ARM_GLOVES) + { + if (you.species == SP_TROLL || you.species == SP_GHOUL + || you.mutation[MUT_CLAWS] >= 3) + { + if (verbose) + mpr( "You can't wear gloves with your huge claws!" ); + + return (false); + } + } + if (sub_type == ARM_BOOTS) { if (you.species == SP_NAGA || you.species == SP_CENTAUR) -- cgit v1.2.3-54-g00ecf