diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-04 07:42:48 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-12-04 07:42:48 +0000 |
commit | 360ab04717002167dea8848b04aeb12c7ea3f382 (patch) | |
tree | 04c97f1ed374a116632e5d4e92114ceaf954ebef /crawl-ref/source/mon-util.cc | |
parent | 4c38f6bad4736492e6c0ca19fd8794e436342079 (diff) | |
download | crawl-ref-360ab04717002167dea8848b04aeb12c7ea3f382.tar.gz crawl-ref-360ab04717002167dea8848b04aeb12c7ea3f382.zip |
Make the royal jelly's name and pronoun come out right now that it's a unique.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7744 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 77cb23bbdf..8421a7eb0a 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1979,6 +1979,9 @@ static std::string _str_monam(const monsters& mon, description_level_type desc, break; } } + else + { + } // Some monsters might want the name of a different creature. int nametype = mon.type; @@ -2069,6 +2072,20 @@ static std::string _str_monam(const monsters& mon, description_level_type desc, result.insert(1, "n"); } + if (mons_is_unique(mon.type) && starts_with(result, "the ")) + { + switch (desc) + { + case DESC_CAP_THE: + case DESC_CAP_A: + result = upcase_first(result); + break; + + default: + break; + } + } + // All done. return result; } @@ -2976,6 +2993,9 @@ const char *mons_pronoun(monster_type mon_type, pronoun_type variant, case MONS_ERESHKIGAL: gender = GENDER_FEMALE; break; + case MONS_ROYAL_JELLY: + gender = GENDER_NEUTER; + break; default: gender = GENDER_MALE; break; |