diff options
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; |