summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/Kills.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-06 10:42:29 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-06 10:42:29 +0000
commitbeafe98a63d782fccf7324bc48a5f5394b46b591 (patch)
tree16fc10f0be2ac1f18665257799def758170e8da5 /crawl-ref/source/Kills.cc
parent862f907158311aa239b0a82fa4abb4a4e398861d (diff)
downloadcrawl-ref-beafe98a63d782fccf7324bc48a5f5394b46b591.tar.gz
crawl-ref-beafe98a63d782fccf7324bc48a5f5394b46b591.zip
[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
Diffstat (limited to 'crawl-ref/source/Kills.cc')
-rw-r--r--crawl-ref/source/Kills.cc20
1 files changed, 2 insertions, 18 deletions
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.