From 3ccb84a86f21de5797a5a2480711233fb38ea9d5 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Mon, 29 Dec 2008 04:38:32 +0000 Subject: Changes to monster spell messages: * If the monster's casting would be affected by Silence then attempt to indicate that the monster is using words. * Allow for different messages for targeted spells vs untargeted spells. * Provide some special messages for the Animate Dead spell. * Don't let sphinxes gesture or point. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8007 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'crawl-ref/source/player.cc') 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); -- cgit v1.2.3-54-g00ecf