diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 04:38:32 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-29 04:38:32 +0000 |
commit | 3ccb84a86f21de5797a5a2480711233fb38ea9d5 (patch) | |
tree | f9179f655db052cf8b002614cde1ac8bfd706891 /crawl-ref/source/player.cc | |
parent | 8f4023a8f1efa5f683e92244341149b6cc46a338 (diff) | |
download | crawl-ref-3ccb84a86f21de5797a5a2480711233fb38ea9d5.tar.gz crawl-ref-3ccb84a86f21de5797a5a2480711233fb38ea9d5.zip |
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
Diffstat (limited to 'crawl-ref/source/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 23 |
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); |