summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-20 14:54:54 -0400
committerNeil Moore <neil@s-z.org>2014-07-20 15:00:51 -0400
commite4e15622d6dc5ef54af4f73848613013e2393a3b (patch)
treebedfd3fda906692ef02d4ec87649e8b73460b591 /crawl-ref/source/invent.cc
parent28522026f31d56de63009c75b19dd5d4752a7a79 (diff)
downloadcrawl-ref-e4e15622d6dc5ef54af4f73848613013e2393a3b.tar.gz
crawl-ref-e4e15622d6dc5ef54af4f73848613013e2393a3b.zip
Simplify.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index c7abc55e0d..91eef62528 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -1010,24 +1010,12 @@ string item_class_name(int type, bool terse)
{
if (terse)
{
- // TODO: merge with base_type_string()
switch (type)
{
- case OBJ_GOLD: return "gold";
- case OBJ_WEAPONS: return "weapon";
- case OBJ_MISSILES: return "missile";
- case OBJ_ARMOUR: return "armour";
- case OBJ_WANDS: return "wand";
- case OBJ_FOOD: return "food";
- case OBJ_SCROLLS: return "scroll";
- case OBJ_JEWELLERY: return "jewellery";
- case OBJ_POTIONS: return "potion";
- case OBJ_BOOKS: return "book";
case OBJ_STAVES: return "magical staff";
- case OBJ_RODS: return "rod";
- case OBJ_ORBS: return "orb";
case OBJ_MISCELLANY: return "misc";
case OBJ_CORPSES: return "carrion";
+ default: return base_type_string((object_class_type) type);
}
}
else