diff options
author | Neil Moore <neil@s-z.org> | 2014-07-20 22:31:05 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-20 22:39:26 -0400 |
commit | 333664be5c07955e162e2bad790af781b60ad929 (patch) | |
tree | 7f2634c63f90a4a0bf000818eacded2807a8a90b /crawl-ref/source/attack.cc | |
parent | a692dc630d8867cd8f7096032f876bc1d15842ba (diff) | |
download | crawl-ref-333664be5c07955e162e2bad790af781b60ad929.tar.gz crawl-ref-333664be5c07955e162e2bad790af781b60ad929.zip |
Provide and use a public interface to pronoun declensions.
It's in mon-util.h for now but probably should go somewhere else.
Diffstat (limited to 'crawl-ref/source/attack.cc')
-rw-r--r-- | crawl-ref/source/attack.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/attack.cc b/crawl-ref/source/attack.cc index dbc9e974e2..a3e307dc8e 100644 --- a/crawl-ref/source/attack.cc +++ b/crawl-ref/source/attack.cc @@ -30,6 +30,7 @@ #include "mon-clone.h" #include "mon-death.h" #include "mon-poly.h" +#include "mon-util.h" // for decline_pronoun #include "monster.h" #include "libutil.h" #include "player.h" @@ -368,13 +369,7 @@ string attack::anon_name(description_level_type desc) */ string attack::anon_pronoun(pronoun_type pron) { - switch (pron) - { - default: - case PRONOUN_SUBJECTIVE: return "it"; - case PRONOUN_POSSESSIVE: return "its"; - case PRONOUN_REFLEXIVE: return "itself"; - } + return decline_pronoun(GENDER_NEUTER, pron); } /* Initializes an attack, setting up base variables and values |