From 360ab04717002167dea8848b04aeb12c7ea3f382 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 4 Dec 2008 07:42:48 +0000 Subject: 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 --- crawl-ref/source/mon-util.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'crawl-ref/source/mon-util.cc') 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; -- cgit v1.2.3-54-g00ecf