diff options
author | Neil Moore <neil@s-z.org> | 2014-07-20 22:38:03 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-20 22:49:20 -0400 |
commit | 035fa3e61758175e9a971d315aba5141a682ac67 (patch) | |
tree | dee9adf780b02b2e0a01a32af85ff18e3c4f4afa /crawl-ref/source/player-act.cc | |
parent | 333664be5c07955e162e2bad790af781b60ad929 (diff) | |
download | crawl-ref-035fa3e61758175e9a971d315aba5141a682ac67.tar.gz crawl-ref-035fa3e61758175e9a971d315aba5141a682ac67.zip |
Put "you" in the pronoun declension table.
Pretending it is a gender for simplicity. Better might be to rename
gender_type to pronoun_type, and rename pronoun_type to pronoun_case or
something similar.
Diffstat (limited to 'crawl-ref/source/player-act.cc')
-rw-r--r-- | crawl-ref/source/player-act.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crawl-ref/source/player-act.cc b/crawl-ref/source/player-act.cc index bc04ff89cb..e0a17477ac 100644 --- a/crawl-ref/source/player-act.cc +++ b/crawl-ref/source/player-act.cc @@ -28,6 +28,7 @@ #include "libutil.h" #include "misc.h" #include "monster.h" +#include "mon-util.h" // for decline_pronoun #include "player-stats.h" #include "religion.h" #include "spl-damage.h" @@ -510,16 +511,9 @@ string player::name(description_level_type dt, bool) const } } -string player::pronoun(pronoun_type pro, bool) const +string player::pronoun(pronoun_type pro, bool /*force_visible*/) const { - switch (pro) - { - default: - case PRONOUN_SUBJECTIVE: return "you"; - case PRONOUN_POSSESSIVE: return "your"; - case PRONOUN_REFLEXIVE: return "yourself"; - case PRONOUN_OBJECTIVE: return "you"; - } + return decline_pronoun(GENDER_YOU, pro); } string player::conj_verb(const string &verb) const |