summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-28 18:43:36 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-28 18:43:36 +0000
commit21c54e7245bb00f366db098092362e9c84f2e59b (patch)
treeaa9aa0faeefe0a8513a24d0b469141ce5eaf7ca0 /crawl-ref/source/libutil.cc
parentcc38b1d0b48c8083b0762eae2072b553fe7f5ed8 (diff)
downloadcrawl-ref-21c54e7245bb00f366db098092362e9c84f2e59b.tar.gz
crawl-ref-21c54e7245bb00f366db098092362e9c84f2e59b.zip
Better messages for explore finding multiple non-stacking items (say "two leather armours" instead of "leather armour and leather armour").
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2245 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index 001e3c7128..ef40fe2af3 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -297,6 +297,8 @@ std::string pluralise(const std::string &name,
else if (ends_with(name, "efreet"))
// efreet -> efreeti. Not sure this is correct.
return name + "i";
+ else if (ends_with(name, "staff"))
+ return name.substr(0, name.length() - 2) + "ves";
return name + "s";
}