From 8a065628d4cb0bee52a4c49acf7f689a965cf254 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 2 Aug 2008 14:50:59 +0000 Subject: 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 --- crawl-ref/source/misc.cc | 3 ++- crawl-ref/source/player.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source') 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 -- cgit v1.2.3-54-g00ecf