summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r--crawl-ref/source/player.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc
index 526e6358eb..4fc49dc56a 100644
--- a/crawl-ref/source/player.cc
+++ b/crawl-ref/source/player.cc
@@ -6295,6 +6295,29 @@ std::string player::foot_name(bool plural, bool *can_plural) const
return str;
}
+std::string player::arm_name(bool plural, bool *can_plural) const
+{
+ if (transform_changed_physiology())
+ return hand_name(plural, can_plural);
+
+ if (can_plural != NULL)
+ *can_plural = true;
+
+ std::string str = "arm";
+
+ if (player_genus(GENPC_DRACONIAN) || you.species == SP_NAGA)
+ str = "scaled arm";
+ else if (you.species == SP_KENKU)
+ str = "feathered arm";
+ else if (you.species == SP_MUMMY)
+ str = "bandaged wrapped arm";
+
+ if (plural)
+ str = pluralise(str);
+
+ return (str);
+}
+
int player::id() const
{
return (-1);