summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-02 14:50:59 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-02 14:50:59 +0000
commit8a065628d4cb0bee52a4c49acf7f689a965cf254 (patch)
tree5944ba152ff3e90b368aae66d02c96be559a58ce /crawl-ref
parent2f502ad2e18856b2207756b98d2b54fc6e5764b3 (diff)
downloadcrawl-ref-8a065628d4cb0bee52a4c49acf7f689a965cf254.tar.gz
crawl-ref-8a065628d4cb0bee52a4c49acf7f689a965cf254.zip
Properly indicate claws in your_hand().
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6751 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/misc.cc3
-rw-r--r--crawl-ref/source/player.cc4
2 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc
index c04de8e539..297cf4c531 100644
--- a/crawl-ref/source/misc.cc
+++ b/crawl-ref/source/misc.cc
@@ -2649,7 +2649,8 @@ std::string your_hand(bool plural)
case TRAN_NONE:
case TRAN_STATUE:
case TRAN_LICH:
- result = you.has_usable_claws() ? "claw" : "hand";
+ result = (you.has_usable_claws()) ? "claw" : "hand";
+ break;
case TRAN_ICE_BEAST:
result = "hand";
break;
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 668adb2e5a..b19996612c 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6584,8 +6584,8 @@ int player::has_claws(bool allow_tran) const
// these are the only other sources for claws
if (species == SP_TROLL || species == SP_GHOUL)
return 3;
- else
- return mutation[MUT_CLAWS];
+
+ return player_mutation_level(MUT_CLAWS);
}
bool player::has_usable_claws(bool allow_tran) const