From beafe98a63d782fccf7324bc48a5f5394b46b591 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 6 Jul 2007 10:42:29 +0000 Subject: [1748837] Merge identical features when reporting explore discoveries, distinguish between stairs and portals. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1770 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/Kills.cc | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'crawl-ref/source/Kills.cc') diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc index 14516c5010..1f3b8c7d37 100644 --- a/crawl-ref/source/Kills.cc +++ b/crawl-ref/source/Kills.cc @@ -352,22 +352,6 @@ static const char *modifier_suffixes[] = "zombie", "skeleton", "simulacrum", NULL, }; -// Naively prefix A/an to a monster name. At the moment, we don't have monster -// names that demand more sophistication (maybe ynoxinul - don't know how -// that's pronounced). -static std::string article_a(const std::string &name) -{ - if (!name.length()) return name; - switch (name[0]) - { - case 'a': case 'e': case 'i': case 'o': case 'u': - case 'A': case 'E': case 'I': case 'O': case 'U': - return "An " + name; - default: - return "A " + name; - } -} - // For a non-unique monster, prefixes a suitable article if we have only one // kill, else prefixes a kill count and pluralises the monster name. static std::string n_names(const std::string &name, int n) @@ -376,10 +360,10 @@ static std::string n_names(const std::string &name, int n) { char buf[20]; snprintf(buf, sizeof buf, "%d ", n); - return buf + pluralise(name, modifier_suffixes); + return buf + pluralise(name, standard_plural_qualifiers, modifier_suffixes); } else - return article_a(name); + return article_a(name, false); } // Returns a string describing the number of times a unique has been killed. -- cgit v1.2.3-54-g00ecf