From bea44e6c4331e7ff932eab4c7d96f61c1d2d3fe6 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 22 Nov 2007 02:36:43 +0000 Subject: 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 --- crawl-ref/source/transfor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/transfor.cc') diff --git a/crawl-ref/source/transfor.cc b/crawl-ref/source/transfor.cc index 8bcf271a64..3dc1d8e6a9 100644 --- a/crawl-ref/source/transfor.cc +++ b/crawl-ref/source/transfor.cc @@ -623,7 +623,7 @@ bool can_equip( equipment_type use_which, bool ignore_temporary ) if (use_which == EQ_BOOTS && !player_has_feet()) return (false); - if (use_which == EQ_GLOVES && you.mutation[MUT_CLAWS] >= 3) + if (use_which == EQ_GLOVES && you.has_claws(false) >= 3) return (false); if (!ignore_temporary) -- cgit v1.2.3-54-g00ecf