diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-22 02:36:43 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-22 02:36:43 +0000 |
commit | bea44e6c4331e7ff932eab4c7d96f61c1d2d3fe6 (patch) | |
tree | b39f4ce257b27d5a2be007cbc71bbc2dfecf7143 /crawl-ref/source/item_use.cc | |
parent | 9aea04f45a0902a19877de1f383264def728c862 (diff) | |
download | crawl-ref-bea44e6c4331e7ff932eab4c7d96f61c1d2d3fe6.tar.gz crawl-ref-bea44e6c4331e7ff932eab4c7d96f61c1d2d3fe6.zip |
make player::has_claws() and player::has_usable_claws() take a bool
indicating whether claws from transformations should be taken into
account; this removes the need for more special cases dealing with
trolls' and ghouls' built-in claws
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2891 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 9f310d87a4..ee503f170e 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -777,7 +777,7 @@ bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary) if (sub_type == ARM_GLOVES) { - if (you.has_claws() >= 3) + if (you.has_claws(false) >= 3) { if (verbose) mpr( "You can't wear gloves with your huge claws!" ); |