summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 21:51:20 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-16 21:51:20 +0000
commit8d408bcec276c6900302ddb079f17da88456acd3 (patch)
treec8ee030ed6d180a4f197da7782ebc5b811a64b08 /crawl-ref/source/item_use.cc
parent1179b3508f5782efb790562af87fde58859792ee (diff)
downloadcrawl-ref-8d408bcec276c6900302ddb079f17da88456acd3.tar.gz
crawl-ref-8d408bcec276c6900302ddb079f17da88456acd3.zip
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
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc12
1 files changed, 12 insertions, 0 deletions
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)